Skip to content

Commit 73d0317

Browse files
authored
Merge pull request matplotlib#30237 from GameRoMan/patch-1
Add explicit `**options: Any` for `add_subplot` method
2 parents 2899656 + 1295158 commit 73d0317

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

lib/matplotlib/figure.pyi

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -89,19 +89,20 @@ class FigureBase(Artist):
8989

9090
# TODO: docstring indicates SubplotSpec a valid arg, but none of the listed signatures appear to be that
9191
@overload
92-
def add_subplot(self, *args, projection: Literal["3d"], **kwargs) -> Axes3D: ...
92+
def add_subplot(self, *args: Any, projection: Literal["3d"], **kwargs: Any) -> Axes3D: ...
9393
@overload
9494
def add_subplot(
95-
self, nrows: int, ncols: int, index: int | tuple[int, int], **kwargs
95+
self, nrows: int, ncols: int, index: int | tuple[int, int], **kwargs: Any
9696
) -> Axes: ...
9797
@overload
98-
def add_subplot(self, pos: int, **kwargs) -> Axes: ...
98+
def add_subplot(self, pos: int, **kwargs: Any) -> Axes: ...
9999
@overload
100-
def add_subplot(self, ax: Axes, **kwargs) -> Axes: ...
100+
def add_subplot(self, ax: Axes, **kwargs: Any) -> Axes: ...
101101
@overload
102-
def add_subplot(self, ax: SubplotSpec, **kwargs) -> Axes: ...
102+
def add_subplot(self, ax: SubplotSpec, **kwargs: Any) -> Axes: ...
103103
@overload
104-
def add_subplot(self, **kwargs) -> Axes: ...
104+
def add_subplot(self, **kwargs: Any) -> Axes: ...
105+
105106
@overload
106107
def subplots(
107108
self,

0 commit comments

Comments
 (0)