Annotate copy for MappingProxyType (#2955)

This commit is contained in:
Michael A. Smith
2019-05-05 14:10:59 -04:00
committed by Jelle Zijlstra
parent c4b249c9a8
commit 54069f4341

View File

@@ -77,6 +77,7 @@ class MappingProxyType(Mapping[_KT, _VT], Generic[_KT, _VT]):
def __getitem__(self, k: _KT) -> _VT: ...
def __iter__(self) -> Iterator[_KT]: ...
def __len__(self) -> int: ...
def copy(self) -> Mapping[_KT, _VT]: ...
class SimpleNamespace:
def __init__(self, **kwargs: Any) -> None: ...