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

Lines changed: 1 addition & 1 deletion
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
@@ -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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy