Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add a few missing dunders in builtins #7214

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 14, 2022
Merged
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
3 changes: 3 additions & 0 deletions stdlib/builtins.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -660,6 +660,7 @@ class bytearray(MutableSequence[int], ByteString):
def __le__(self, __x: bytes) -> bool: ...
def __gt__(self, __x: bytes) -> bool: ...
def __ge__(self, __x: bytes) -> bool: ...
def __alloc__(self) -> int: ...

@final
class memoryview(Sized, Sequence[int]):
Expand Down Expand Up @@ -998,6 +999,7 @@ class property:
fget: Callable[[Any], Any] | None
fset: Callable[[Any, Any], None] | None
fdel: Callable[[Any], None] | None
__isabstractmethod__: bool
def __init__(
self,
fget: Callable[[Any], Any] | None = ...,
Expand Down Expand Up @@ -1420,6 +1422,7 @@ class reversed(Iterator[_T], Generic[_T]):
def __init__(self, __sequence: SupportsLenAndGetItem[_T]) -> None: ...
def __iter__(self: Self) -> Self: ...
def __next__(self) -> _T: ...
def __length_hint__(self) -> int: ...

def repr(__obj: object) -> str: ...
@overload
Expand Down