Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0c6a3b0

Browse files
committed
Rework axes/__init__.pyi to not use __all__
1 parent 27a0884 commit 0c6a3b0

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

lib/matplotlib/axes/__init__.pyi

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
1-
__all__ = [
2-
'Axes',
3-
'Subplot',
4-
'SubplotBase',
5-
]
6-
71
from typing import TypeVar
82

9-
from ._axes import *
10-
from ._axes import Axes as Subplot
3+
from ._axes import Axes as Axes
4+
115

126
_T = TypeVar("_T")
137

8+
# Backcompat.
9+
Subplot = Axes
10+
1411
class _SubplotBaseMeta(type):
1512
def __instancecheck__(self, obj) -> bool: ...
1613

lib/matplotlib/axes/_base.pyi

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,6 @@ class _AxesBase(martist.Artist):
131131
def clear(self) -> None: ...
132132
def cla(self) -> None: ...
133133

134-
# Could be made generic, but comments indicate it may be temporary anyway
135134
class ArtistList(Sequence[_T]):
136135
def __init__(
137136
self,

0 commit comments

Comments
 (0)