8000 Merge pull request #28518 from adamjstewart/types/subplots · matplotlib/matplotlib@087a142 · GitHub
[go: up one dir, main page]

Skip to content

Commit 087a142

Browse files
authored
Merge pull request #28518 from adamjstewart/types/subplots
[TYP] Fix overload of `pyplot.subplots`
2 parents a04e35f + 4242506 commit 087a142

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1609,7 +1609,7 @@ def subplots(
16091609
subplot_kw: dict[str, Any] | None = ...,
16101610
gridspec_kw: dict[str, Any] | None = ...,
16111611
**fig_kw
1612-
) -> tuple[Figure, Axes | np.ndarray]:
1612+
) -> tuple[Figure, Any]:
16131613
...
16141614

16151615

0 commit comments

Comments
 (0)
0