Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 087a142

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

File tree

Expand file treeCollapse file tree

2 files changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+2
-2
lines changed

‎lib/matplotlib/figure.pyi

Copy file name to clipboardExpand all lines: lib/matplotlib/figure.pyi
+1-1Lines 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

Copy file name to clipboardExpand all lines: lib/matplotlib/pyplot.py
+1-1Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.