Skip to content

Commit a5429d2

Browse files
JelleZijlstragvanrossum
authored andcommitted
add missing methods to DictMixin (#2054)
Fixes #1896.
1 parent 035774e commit a5429d2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

stdlib/2/UserDict.pyi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ class IterableUserDict(UserDict[_KT, _VT], Generic[_KT, _VT]):
1717

1818
class DictMixin(Iterable[_KT], Container[_KT], Sized, Generic[_KT, _VT]):
1919
def has_key(self, key: _KT) -> bool: ...
20+
def __len__(self) -> int: ...
21+
def __iter__(self) -> Iterator[_KT]: ...
2022

2123
# From typing.Mapping[_KT, _VT]
2224
# (can't inherit because of keys())

0 commit comments

Comments
 (0)