From aa15fafc33e2df394c28a56c57f82226057ac8ca Mon Sep 17 00:00:00 2001 From: Xuehai Pan Date: Sat, 18 Nov 2023 22:03:56 +0800 Subject: [PATCH] stdlib: `builtins.type.__base__` can be `None` (#11040) --- stdlib/builtins.pyi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stdlib/builtins.pyi b/stdlib/builtins.pyi index 665803bf3..e1cae8cfe 100644 --- a/stdlib/builtins.pyi +++ b/stdlib/builtins.pyi @@ -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: ...