mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-07-10 02:19:18 +08:00
Mark various dunder methods as positional-only in the stdlib (#14528)
This commit is contained in:
+15
-15
@@ -207,12 +207,12 @@ class TypeVar:
|
||||
contravariant: bool = False,
|
||||
) -> None: ...
|
||||
if sys.version_info >= (3, 10):
|
||||
def __or__(self, right: Any) -> _SpecialForm: ... # AnnotationForm
|
||||
def __ror__(self, left: Any) -> _SpecialForm: ... # AnnotationForm
|
||||
def __or__(self, right: Any, /) -> _SpecialForm: ... # AnnotationForm
|
||||
def __ror__(self, left: Any, /) -> _SpecialForm: ... # AnnotationForm
|
||||
if sys.version_info >= (3, 11):
|
||||
def __typing_subst__(self, arg: Any) -> Any: ...
|
||||
def __typing_subst__(self, arg: Any, /) -> Any: ...
|
||||
if sys.version_info >= (3, 13):
|
||||
def __typing_prepare_subst__(self, alias: Any, args: Any) -> tuple[Any, ...]: ...
|
||||
def __typing_prepare_subst__(self, alias: Any, args: Any, /) -> tuple[Any, ...]: ...
|
||||
def has_default(self) -> bool: ...
|
||||
if sys.version_info >= (3, 14):
|
||||
@property
|
||||
@@ -273,8 +273,8 @@ if sys.version_info >= (3, 11):
|
||||
def __init__(self, name: str) -> None: ...
|
||||
|
||||
def __iter__(self) -> Any: ...
|
||||
def __typing_subst__(self, arg: Never) -> Never: ...
|
||||
def __typing_prepare_subst__(self, alias: Any, args: Any) -> tuple[Any, ...]: ...
|
||||
def __typing_subst__(self, arg: Never, /) -> Never: ...
|
||||
def __typing_prepare_subst__(self, alias: Any, args: Any, /) -> tuple[Any, ...]: ...
|
||||
if sys.version_info >= (3, 14):
|
||||
@property
|
||||
def evaluate_default(self) -> EvaluateFunc | None: ...
|
||||
@@ -289,7 +289,7 @@ if sys.version_info >= (3, 10):
|
||||
else:
|
||||
def __init__(self, origin: ParamSpec) -> None: ...
|
||||
|
||||
def __eq__(self, other: object) -> bool: ...
|
||||
def __eq__(self, other: object, /) -> bool: ...
|
||||
__hash__: ClassVar[None] # type: ignore[assignment]
|
||||
|
||||
@final
|
||||
@@ -301,7 +301,7 @@ if sys.version_info >= (3, 10):
|
||||
else:
|
||||
def __init__(self, origin: ParamSpec) -> None: ...
|
||||
|
||||
def __eq__(self, other: object) -> bool: ...
|
||||
def __eq__(self, other: object, /) -> bool: ...
|
||||
__hash__: ClassVar[None] # type: ignore[assignment]
|
||||
|
||||
@final
|
||||
@@ -365,11 +365,11 @@ if sys.version_info >= (3, 10):
|
||||
@property
|
||||
def kwargs(self) -> ParamSpecKwargs: ...
|
||||
if sys.version_info >= (3, 11):
|
||||
def __typing_subst__(self, arg: Any) -> Any: ...
|
||||
def __typing_prepare_subst__(self, alias: Any, args: Any) -> tuple[Any, ...]: ...
|
||||
def __typing_subst__(self, arg: Any, /) -> Any: ...
|
||||
def __typing_prepare_subst__(self, alias: Any, args: Any, /) -> tuple[Any, ...]: ...
|
||||
|
||||
def __or__(self, right: Any) -> _SpecialForm: ...
|
||||
def __ror__(self, left: Any) -> _SpecialForm: ...
|
||||
def __or__(self, right: Any, /) -> _SpecialForm: ...
|
||||
def __ror__(self, left: Any, /) -> _SpecialForm: ...
|
||||
if sys.version_info >= (3, 13):
|
||||
def has_default(self) -> bool: ...
|
||||
if sys.version_info >= (3, 14):
|
||||
@@ -1115,9 +1115,9 @@ if sys.version_info >= (3, 12):
|
||||
# It's writable on types, but not on instances of TypeAliasType.
|
||||
@property
|
||||
def __module__(self) -> str | None: ... # type: ignore[override]
|
||||
def __getitem__(self, parameters: Any) -> GenericAlias: ... # AnnotationForm
|
||||
def __or__(self, right: Any) -> _SpecialForm: ...
|
||||
def __ror__(self, left: Any) -> _SpecialForm: ...
|
||||
def __getitem__(self, parameters: Any, /) -> GenericAlias: ... # AnnotationForm
|
||||
def __or__(self, right: Any, /) -> _SpecialForm: ...
|
||||
def __ror__(self, left: Any, /) -> _SpecialForm: ...
|
||||
if sys.version_info >= (3, 14):
|
||||
@property
|
||||
def evaluate_value(self) -> EvaluateFunc: ...
|
||||
|
||||
Reference in New Issue
Block a user