10000 Tidy up Axes3D import · matplotlib/matplotlib@7299ae4 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7299ae4

Browse files
committed
Tidy up Axes3D import
1 parent ef1be0a commit 7299ae4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/figure.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from typing import TYPE_CHECKING
22
if TYPE_CHECKING:
3-
import mpl_toolkits
3+
from mpl_toolkits.mplot3d import Axes3D
44

55
from collections.abc import Callable, Hashable, Iterable, Sequence
66
import os
@@ -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: Literal["3d"], **kwargs) -> mpl_toolkits.mplot3d.Axes3D: ...
94+
def add_subplot(self, *args, projection: Literal["3d"], **kwargs) -> 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