We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fbb9a5e commit 41bac6cCopy full SHA for 41bac6c
stdlib/typing.pyi
@@ -795,11 +795,11 @@ class MutableMapping(Mapping[_KT, _VT]):
795
def __delitem__(self, key: _KT, /) -> None: ...
796
def clear(self) -> None: ...
797
@overload
798
- def pop(self, key: Any, /) -> _VT: ...
+ def pop(self, key: object, /) -> _VT: ...
799
800
- def pop(self, key: Any, default: _VT, /) -> _VT: ...
+ def pop(self, key: object, default: _VT, /) -> _VT: ...
801
802
- def pop(self, key: Any, default: _T, /) -> _VT | _T: ...
+ def pop(self, key: object, default: _T, /) -> _VT | _T: ...
803
def popitem(self) -> tuple[_KT, _VT]: ...
804
# This overload should be allowed only if the value type is compatible with None.
805
#
0 commit comments