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

Skip to content

Commit 5726fe3

Browse files
committed
Remove explicit __init_subclass__ type hints
Instead, fall back to the `object.__init_subclass__` definition.
1 parent ca71f62 commit 5726fe3

File tree

3 files changed

+0
-3
lines changed

3 files changed

+0
-3
lines changed

lib/matplotlib/artist.pyi

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ class _Unset: ...
2828

2929
class Artist:
3030
zorder: float
31-
def __init_subclass__(cls): ...
3231
stale_callback: Callable[[Artist, bool], None] | None
3332
figure: Figure | SubFigure | None
3433
clipbox: BboxBase | None

lib/matplotlib/patches.pyi

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,6 @@ def draw_bbox(
319319
) -> None: ...
320320

321321
class _Style:
322-
def __init_subclass__(cls) -> None: ...
323322
def __new__(cls, stylename, **kwargs): ...
324323
@classmethod
325324
def get_styles(cls) -> dict[str, type]: ...

lib/matplotlib/transforms.pyi

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,6 @@ class Transform(TransformNode):
181181
# Implemented as a standard attr in base class, but functionally readonly and some subclasses implement as such
182182
@property
183183
def has_inverse(self) -> bool: ...
184-
def __init_subclass__(cls) -> None: ...
185184
def __add__(self, other: Transform) -> Transform: ...
186185
@property
187186
def depth(self) -> int: ...

0 commit comments

Comments
 (0)