Skip to content

Commit a67c316

Browse files
authored
Add a few missing dunders in builtins (#7214)
1 parent 2878050 commit a67c316

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

stdlib/builtins.pyi

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -660,6 +660,7 @@ class bytearray(MutableSequence[int], ByteString):
660660
def __le__(self, __x: bytes) -> bool: ...
661661
def __gt__(self, __x: bytes) -> bool: ...
662662
def __ge__(self, __x: bytes) -> bool: ...
663+
def __alloc__(self) -> int: ...
663664

664665
@final
665666
class memoryview(Sized, Sequence[int]):
@@ -998,6 +999,7 @@ class property:
998999
fget: Callable[[Any], Any] | None
9991000
fset: Callable[[Any, Any], None] | None
10001001
fdel: Callable[[Any], None] | None
1002+
__isabstractmethod__: bool
10011003
def __init__(
10021004
self,
10031005
fget: Callable[[Any], Any] | None = ...,
@@ -1420,6 +1422,7 @@ class reversed(Iterator[_T], Generic[_T]):
14201422
def __init__(self, __sequence: SupportsLenAndGetItem[_T]) -> None: ...
14211423
def __iter__(self: Self) -> Self: ...
14221424
def __next__(self) -> _T: ...
1425+
def __length_hint__(self) -> int: ...
14231426

14241427
def repr(__obj: object) -> str: ...
14251428
@overload

0 commit comments

Comments
 (0)