mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 13:04:46 +08:00
stdlib: add argument default values (#9501)
This commit is contained in:
@@ -151,9 +151,9 @@ OrderedDict = _Alias()
|
||||
|
||||
def get_type_hints(
|
||||
obj: Callable[..., Any],
|
||||
globalns: dict[str, Any] | None = ...,
|
||||
localns: dict[str, Any] | None = ...,
|
||||
include_extras: bool = ...,
|
||||
globalns: dict[str, Any] | None = None,
|
||||
localns: dict[str, Any] | None = None,
|
||||
include_extras: bool = False,
|
||||
) -> dict[str, Any]: ...
|
||||
def get_args(tp: Any) -> tuple[Any, ...]: ...
|
||||
def get_origin(tp: Any) -> Any | None: ...
|
||||
@@ -291,9 +291,9 @@ class ParamSpec:
|
||||
self,
|
||||
name: str,
|
||||
*,
|
||||
bound: None | type[Any] | str = ...,
|
||||
contravariant: bool = ...,
|
||||
covariant: bool = ...,
|
||||
bound: None | type[Any] | str = None,
|
||||
contravariant: bool = False,
|
||||
covariant: bool = False,
|
||||
default: type[Any] | str | None = ...,
|
||||
) -> None: ...
|
||||
@property
|
||||
|
||||
Reference in New Issue
Block a user