mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-05 19:58:49 +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:
1 parent
20446030c5
commit
62546ed827
1 file changed
+1
@@ -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