Skip to content

Commit 9cd2812

Browse files
n-takumasaksunden
andauthored
[TYP] Get rid of the type ignores
Co-authored-by: Kyle Sunden <[email protected]>
1 parent 8e48282 commit 9cd2812

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/matplotlib/pyplot.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1440,7 +1440,7 @@ def subplot(*args, **kwargs) -> Axes:
14401440
return ax
14411441

14421442

1443-
@overload # type: ignore[misc]
1443+
@overload
14441444
def subplots(
14451445
nrows: Literal[1] = ...,
14461446
ncols: Literal[1] = ...,
@@ -1457,14 +1457,14 @@ def subplots(
14571457
...
14581458

14591459

1460-
@overload # type: ignore[misc]
1460+
@overload
14611461
def subplots(
14621462
nrows: int = ...,
14631463
ncols: int = ...,
14641464
*,
14651465
sharex: bool | Literal["none", "all", "row", "col"] = ...,
14661466
sharey: bool | Literal["none", "all", "row", "col"] = ...,
1467-
squeeze: Literal[False] = ...,
1467+
squeeze: Literal[False],
14681468
width_ratios: Sequence[float] | None = ...,
14691469
height_ratios: Sequence[float] | None = ...,
14701470
subplot_kw: dict[str, Any] | None = ...,

0 commit comments

Comments
 (0)