Skip to content

Commit 62546ed

Browse files
authored
Add annotation for collections.ChainMap.__missing__(key) (#4784)
This method has been present in the CPython implementation since its introduction in 3.3. https://github.com/python/cpython/blob/v3.3.0/Lib/collections/__init__.py\#L783
1 parent 2044603 commit 62546ed

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

stdlib/3/collections/__init__.pyi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,3 +321,4 @@ class ChainMap(MutableMapping[_KT, _VT], Generic[_KT, _VT]):
321321
def __getitem__(self, k: _KT) -> _VT: ...
322322
def __iter__(self) -> Iterator[_KT]: ...
323323
def __len__(self) -> int: ...
324+
def __missing__(self, key: _KT) -> _VT: ... # undocumented

0 commit comments

Comments
 (0)