From 477760812504b9f2b65d981bb68e3fb389dfdc66 Mon Sep 17 00:00:00 2001 From: Nate McMaster Date: Sun, 22 Nov 2020 16:15:49 -0800 Subject: [PATCH] Add annotation for collections.ChainMap.__missing__(key) 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 --- stdlib/3/collections/__init__.pyi | 1 + 1 file changed, 1 insertion(+) diff --git a/stdlib/3/collections/__init__.pyi b/stdlib/3/collections/__init__.pyi index 52470a3bf567..600e3d5001a8 100644 --- a/stdlib/3/collections/__init__.pyi +++ b/stdlib/3/collections/__init__.pyi @@ -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