Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
2 changes: 1 addition & 1 deletion stdlib/builtins.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -805,7 +805,7 @@ class bytearray(MutableSequence[int], ByteString):
def __alloc__(self) -> int: ...

@final
class memoryview(Sized, Sequence[int]):
class memoryview(Sequence[int]):
@property
def format(self) -> str: ...
@property
Expand Down
3 changes: 1 addition & 2 deletions stdlib/typing.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -452,8 +452,7 @@ class Container(Protocol[_T_co]):
def __contains__(self, __x: object) -> bool: ...

@runtime_checkable
class Collection(Iterable[_T_co], Container[_T_co], Protocol[_T_co]):
# Implement Sized (but don't have it as a base class).
class Collection(Sized, Iterable[_T_co], Container[_T_co], Protocol[_T_co]):
@abstractmethod
def __len__(self) -> int: ...

Expand Down