stdlib: add argument default values (#9501)

This commit is contained in:
Jelle Zijlstra
2023-01-18 00:37:34 -08:00
committed by GitHub
parent 6cb934291f
commit ddfaca3200
272 changed files with 2529 additions and 2467 deletions

View File

@@ -96,7 +96,7 @@ class partialmethod(Generic[_T]):
@overload
def __init__(self, __func: _Descriptor, *args: Any, **keywords: Any) -> None: ...
if sys.version_info >= (3, 8):
def __get__(self, obj: Any, cls: type[Any] | None = ...) -> Callable[..., _T]: ...
def __get__(self, obj: Any, cls: type[Any] | None = None) -> Callable[..., _T]: ...
else:
def __get__(self, obj: Any, cls: type[Any] | None) -> Callable[..., _T]: ...
@@ -137,7 +137,7 @@ if sys.version_info >= (3, 8):
def register(self, cls: Callable[..., _T], method: None = ...) -> Callable[..., _T]: ...
@overload
def register(self, cls: type[Any], method: Callable[..., _T]) -> Callable[..., _T]: ...
def __get__(self, obj: _S, cls: type[_S] | None = ...) -> Callable[..., _T]: ...
def __get__(self, obj: _S, cls: type[_S] | None = None) -> Callable[..., _T]: ...
class cached_property(Generic[_T]):
func: Callable[[Any], _T]