mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 13:04:46 +08:00
add __init_subclass__ to 3.6 (#813)
See also https://github.com/python/mypy/pull/2654
This commit is contained in:
committed by
Guido van Rossum
parent
534c7c1103
commit
f9135c5aa0
@@ -47,6 +47,9 @@ class object:
|
||||
def __getattribute__(self, name: str) -> Any: ...
|
||||
def __delattr__(self, name: str) -> None: ...
|
||||
|
||||
if sys.version_info >= (3, 6):
|
||||
def __init_subclass__(cls) -> None: ...
|
||||
|
||||
class type:
|
||||
__bases__ = ... # type: Tuple[type, ...]
|
||||
__name__ = ... # type: str
|
||||
|
||||
Reference in New Issue
Block a user