Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions lib/matplotlib/figure.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -89,19 +89,20 @@ class FigureBase(Artist):

# TODO: docstring indicates SubplotSpec a valid arg, but none of the listed signatures appear to be that
@overload
def add_subplot(self, *args, projection: Literal["3d"], **kwargs) -> Axes3D: ...
def add_subplot(self, *args: Any, projection: Literal["3d"], **kwargs: Any) -> Axes3D: ...
@overload
def add_subplot(
self, nrows: int, ncols: int, index: int | tuple[int, int], **kwargs
self, nrows: int, ncols: int, index: int | tuple[int, int], **kwargs: Any
) -> Axes: ...
@overload
def add_subplot(self, pos: int, **kwargs) -> Axes: ...
def add_subplot(self, pos: int, **kwargs: Any) -> Axes: ...
@overload
def add_subplot(self, ax: Axes, **kwargs) -> Axes: ...
def add_subplot(self, ax: Axes, **kwargs: Any) -> Axes: ...
@overload
def add_subplot(self, ax: SubplotSpec, **kwargs) -> Axes: ...
def add_subplot(self, ax: SubplotSpec, **kwargs: Any) -> Axes: ...
@overload
def add_subplot(self, **kwargs) -> Axes: ...
def add_subplot(self, **kwargs: Any) -> Axes: ...

@overload
def subplots(
self,
Expand Down
Loading