Make bool() args positional-only (#6239)

This commit is contained in:
Alex Waygood
2021-11-04 19:16:35 +00:00
committed by GitHub
parent 6ed392ba5f
commit e608205c05

View File

@@ -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):