Skip to content

Commit f5b325e

Browse files
authored
Merge pull request #28596 from meeseeksmachine/auto-backport-of-pr-28518-on-v3.9.x
Backport PR #28518 on branch v3.9.x ([TYP] Fix overload of `pyplot.subplots`)
2 parents 7b73bf3 + c37449c commit f5b325e

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)