Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions stdlib/2/__builtin__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,30 @@ class bytearray(MutableSequence[int]):

class bool(int):
def __init__(self, o: object = ...) -> None: ...
@overload # type: ignore
def __and__(self, x: bool) -> bool: ...
@overload # type: ignore
def __and__(self, x: int) -> int: ...
@overload # type: ignore
def __or__(self, x: bool) -> bool: ...
@overload # type: ignore
def __or__(self, x: int) -> int: ...
@overload # type: ignore
def __xor__(self, x: bool) -> bool: ...
@overload # type: ignore
def __xor__(self, x: int) -> int: ...
@overload # type: ignore
def __rand__(self, x: bool) -> bool: ...
@overload # type: ignore
def __rand__(self, x: int) -> int: ...
@overload # type: ignore
def __ror__(self, x: bool) -> bool: ...
@overload # type: ignore
def __ror__(self, x: int) -> int: ...
@overload # type: ignore
def __rxor__(self, x: bool) -> bool: ...
@overload # type: ignore
def __rxor__(self, x: int) -> int: ...

class slice(object):
start = ... # type: Optional[int]
Expand Down
24 changes: 24 additions & 0 deletions stdlib/3/builtins.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -537,6 +537,30 @@ class memoryview(Sized, Container[bytes]):

class bool(int):
def __init__(self, o: object = ...) -> None: ...
@overload # type: ignore
def __and__(self, x: bool) -> bool: ...
@overload # type: ignore
def __and__(self, x: int) -> int: ...
@overload # type: ignore
def __or__(self, x: bool) -> bool: ...
@overload # type: ignore
def __or__(self, x: int) -> int: ...
@overload # type: ignore
def __xor__(self, x: bool) -> bool: ...
@overload # type: ignore
def __xor__(self, x: int) -> int: ...
@overload # type: ignore
def __rand__(self, x: bool) -> bool: ...
@overload # type: ignore
def __rand__(self, x: int) -> int: ...
@overload # type: ignore
def __ror__(self, x: bool) -> bool: ...
@overload # type: ignore
def __ror__(self, x: int) -> int: ...
@overload # type: ignore
def __rxor__(self, x: bool) -> bool: ...
@overload # type: ignore
def __rxor__(self, x: int) -> int: ...

class slice:
start = ... # type: Optional[int]
Expand Down