mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 21:14:48 +08:00
Make bool() args positional-only (#6239)
This commit is contained in:
@@ -675,29 +675,29 @@ class memoryview(Sized, Sequence[int]):
|
||||
class bool(int):
|
||||
def __new__(cls: Type[_T], __o: object = ...) -> _T: ...
|
||||
@overload
|
||||
def __and__(self, x: bool) -> bool: ...
|
||||
def __and__(self, __x: bool) -> bool: ...
|
||||
@overload
|
||||
def __and__(self, x: int) -> int: ...
|
||||
def __and__(self, __x: int) -> int: ...
|
||||
@overload
|
||||
def __or__(self, x: bool) -> bool: ...
|
||||
def __or__(self, __x: bool) -> bool: ...
|
||||
@overload
|
||||
def __or__(self, x: int) -> int: ...
|
||||
def __or__(self, __x: int) -> int: ...
|
||||
@overload
|
||||
def __xor__(self, x: bool) -> bool: ...
|
||||
def __xor__(self, __x: bool) -> bool: ...
|
||||
@overload
|
||||
def __xor__(self, x: int) -> int: ...
|
||||
def __xor__(self, __x: int) -> int: ...
|
||||
@overload
|
||||
def __rand__(self, x: bool) -> bool: ...
|
||||
def __rand__(self, __x: bool) -> bool: ...
|
||||
@overload
|
||||
def __rand__(self, x: int) -> int: ...
|
||||
def __rand__(self, __x: int) -> int: ...
|
||||
@overload
|
||||
def __ror__(self, x: bool) -> bool: ...
|
||||
def __ror__(self, __x: bool) -> bool: ...
|
||||
@overload
|
||||
def __ror__(self, x: int) -> int: ...
|
||||
def __ror__(self, __x: int) -> int: ...
|
||||
@overload
|
||||
def __rxor__(self, x: bool) -> bool: ...
|
||||
def __rxor__(self, __x: bool) -> bool: ...
|
||||
@overload
|
||||
def __rxor__(self, x: int) -> int: ...
|
||||
def __rxor__(self, __x: int) -> int: ...
|
||||
def __getnewargs__(self) -> tuple[int]: ...
|
||||
|
||||
class slice(object):
|
||||
|
||||
Reference in New Issue
Block a user