mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 04:54:47 +08:00
stdlib: correct many pos-or-kw arg names in dunder methods (#7451)
This commit is contained in:
@@ -89,7 +89,7 @@ class EnumMeta(ABCMeta):
|
||||
|
||||
def __iter__(self: type[_EnumMemberT]) -> Iterator[_EnumMemberT]: ...
|
||||
def __reversed__(self: type[_EnumMemberT]) -> Iterator[_EnumMemberT]: ...
|
||||
def __contains__(self: type[Any], member: object) -> bool: ...
|
||||
def __contains__(self: type[Any], obj: object) -> bool: ...
|
||||
def __getitem__(self: type[_EnumMemberT], name: str) -> _EnumMemberT: ...
|
||||
@_builtins_property
|
||||
def __members__(self: type[_EnumMemberT]) -> types.MappingProxyType[str, _EnumMemberT]: ...
|
||||
@@ -205,9 +205,9 @@ class IntFlag(int, Flag):
|
||||
def __or__(self: Self, other: int) -> Self: ...
|
||||
def __and__(self: Self, other: int) -> Self: ...
|
||||
def __xor__(self: Self, other: int) -> Self: ...
|
||||
def __ror__(self: Self, n: int) -> Self: ...
|
||||
def __rand__(self: Self, n: int) -> Self: ...
|
||||
def __rxor__(self: Self, n: int) -> Self: ...
|
||||
def __ror__(self: Self, other: int) -> Self: ...
|
||||
def __rand__(self: Self, other: int) -> Self: ...
|
||||
def __rxor__(self: Self, other: int) -> Self: ...
|
||||
|
||||
if sys.version_info >= (3, 11):
|
||||
class StrEnum(str, ReprEnum):
|
||||
|
||||
Reference in New Issue
Block a user