Skip to content

Commit c37449c

Browse files
timhoffmmeeseeksmachine
authored andcommitted
Backport PR #28518: [TYP] Fix overload of pyplot.subplots
1 parent 7b73bf3 commit c37449c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/matplotlib/figure.pyi

+1-1
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ class FigureBase(Artist):
132132
height_ratios: Sequence[float] | None = ...,
133133
subplot_kw: dict[str, Any] | None = ...,
134134
gridspec_kw: dict[str, Any] | None = ...,
135-
) -> Axes | np.ndarray: ...
135+
) -> Any: ...
136136
def delaxes(self, ax: Axes) -> None: ...
137137
def clear(self, keep_observers: bool = ...) -> None: ...
138138
def clf(self, keep_observers: bool = ...) -> None: ...

lib/matplotlib/pyplot.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1597,7 +1597,7 @@ def subplots(
15971597
subplot_kw: dict[str, Any] | None = ...,
15981598
gridspec_kw: dict[str, Any] | None = ...,
15991599
**fig_kw
1600-
) -> tuple[Figure, Axes | np.ndarray]:
1600+
) -> tuple[Figure, Any]:
16011601
...
16021602

16031603

0 commit comments

Comments
 (0)