mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-06 12:14:27 +08:00
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
This commit is contained in:
@@ -321,3 +321,4 @@ class ChainMap(MutableMapping[_KT, _VT], Generic[_KT, _VT]):
|
||||
def __getitem__(self, k: _KT) -> _VT: ...
|
||||
def __iter__(self) -> Iterator[_KT]: ...
|
||||
def __len__(self) -> int: ...
|
||||
def __missing__(self, key: _KT) -> _VT: ... # undocumented
|
||||
|
||||
Reference in New Issue
Block a user