Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion stdlib/builtins.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ _P = ParamSpec("_P")
_StartT = TypeVar("_StartT", covariant=True, default=Any)
_StopT = TypeVar("_StopT", covariant=True, default=Any)
_StepT = TypeVar("_StepT", covariant=True, default=Any)
_TypeT_co = TypeVar("_TypeT_co", default=Any, covariant=True)

class object:
__doc__: str | None
Expand Down Expand Up @@ -167,7 +168,7 @@ class classmethod(Generic[_T, _P, _R_co]):
@property
def __wrapped__(self) -> Callable[Concatenate[type[_T], _P], _R_co]: ...

class type:
class type(Generic[_TypeT_co]):
# object.__base__ is None. Otherwise, it would be a type.
@property
def __base__(self) -> type | None: ...
Expand Down