stdlib: builtins.type.__base__ can be None (#11040)

This commit is contained in:
Xuehai Pan
2023-11-18 22:03:56 +08:00
committed by GitHub
parent 62ccb32b22
commit aa15fafc33

View File

@@ -161,8 +161,9 @@ class classmethod(Generic[_T, _P, _R_co]):
def __wrapped__(self) -> Callable[Concatenate[type[_T], _P], _R_co]: ...
class type:
# object.__base__ is None. Otherwise, it would be a type.
@property
def __base__(self) -> type: ...
def __base__(self) -> type | None: ...
__bases__: tuple[type, ...]
@property
def __basicsize__(self) -> int: ...