Skip to content

Commit 1be2286

Browse files
authored
Merge pull request #635 from sbrunner/matplotlib
Fix for optional matplotlib
2 parents 6f28fc2 + f63de85 commit 1be2286

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

deskew/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
import warnings
44
from typing import TYPE_CHECKING, Any
55

6-
import matplotlib.axes
7-
import matplotlib.projections.polar
86
import numpy as np
97
import numpy.typing as npt
108
from skimage.color import rgb2gray, rgba2rgb
@@ -14,6 +12,8 @@
1412
if TYPE_CHECKING:
1513
from typing import TypeAlias
1614

15+
import matplotlib.projections.polar
16+
1717
ImageType: TypeAlias = npt.NDArray[np.integer[Any] | np.floating[Any]]
1818
ImageTypeUint64: TypeAlias = npt.NDArray[np.uint8]
1919
ImageTypeFloat64: TypeAlias = npt.NDArray[np.float64]
@@ -262,7 +262,7 @@ def determine_skew_debug_images(
262262
axe1.set_title("Corrected angles")
263263

264264
def fill_polar(
265-
axe: matplotlib.projections.polar.PolarAxes,
265+
axe: "matplotlib.projections.polar.PolarAxes",
266266
freqs: dict[np.float64, int],
267267
angles: list[float],
268268
limits: list[tuple[float, float]],

0 commit comments

Comments
 (0)