8000 Try Literal approach · fedora-python/matplotlib@ef1be0a · GitHub
[go: up one dir, main page]

Skip to content

Commit ef1be0a

Browse files
committed
Try Literal approach
1 parent dc8f66e commit ef1be0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/figure.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ class FigureBase(Artist):
9191

9292
# TODO: docstring indicates SubplotSpec a valid arg, but none of the listed signatures appear to be that
9393
@overload
94-
def add_subplot(self, *args, projection="3d", **kwargs) -> mpl_toolkits.mplot3d.Axes3D: ...
94+
def add_subplot(self, *args, projection: Literal["3d"], **kwargs) -> mpl_toolkits.mplot3d.Axes3D: ...
9595
@overload
9696
def add_subplot(
9797
self, nrows: int, ncols: int, index: int | tuple[int, int], **kwargs

0 commit comments

Comments
 (0)
0