Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 5726fe3

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

File tree

Expand file treeCollapse file tree

3 files changed

+0
-3
lines changed
Filter options
Expand file treeCollapse file tree

3 files changed

+0
-3
lines changed

‎lib/matplotlib/artist.pyi

Copy file name to clipboardExpand all lines: lib/matplotlib/artist.pyi
-1Lines 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

Copy file name to clipboardExpand all lines: lib/matplotlib/patches.pyi
-1Lines 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

Copy file name to clipboardExpand all lines: lib/matplotlib/transforms.pyi
-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.