Skip to content

Commit

Permalink
Rework axes/__init__.pyi to not use __all__
Browse files Browse the repository at this point in the history
  • Loading branch information
ksunden committed Sep 25, 2023
1 parent 27a0884 commit 0c6a3b0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
13 changes: 5 additions & 8 deletions lib/matplotlib/axes/__init__.pyi
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
__all__ = [
'Axes',
'Subplot',
'SubplotBase',
]

from typing import TypeVar

from ._axes import *
from ._axes import Axes as Subplot
from ._axes import Axes as Axes


_T = TypeVar("_T")

# Backcompat.
Subplot = Axes

class _SubplotBaseMeta(type):
def __instancecheck__(self, obj) -> bool: ...

Expand Down
1 change: 0 additions & 1 deletion lib/matplotlib/axes/_base.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@ class _AxesBase(martist.Artist):
def clear(self) -> None: ...
def cla(self) -> None: ...

# Could be made generic, but comments indicate it may be temporary anyway
class ArtistList(Sequence[_T]):
def __init__(
self,
Expand Down

0 comments on commit 0c6a3b0

Please sign in to comment.