8000 make the default positional-or-keyword in Mapping.get and MutableMapping.pop by Akuli · Pull Request #6694 · python/typeshed · GitHub
[go: up one dir, main page]

Skip to content

make the default positional-or-keyword in Mapping.get and MutableMapping.pop #6694

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jan 22, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Merge branch 'master' into environ
  • Loading branch information
JelleZijlstra authored Jan 22, 2022
commit 6768d3655702bb24b142490ede796431f8b2b43e
2 changes: 1 addition & 1 deletion stdlib/typing.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ class MutableMapping(Mapping[_KT, _VT], Generic[_KT, _VT]):
@overload
def pop(self, __key: _KT) -> _VT: ...
@overload
def pop(self, __key: _KT, default: _VT | _T = ...) -> _VT | _T: ...
def pop(self, __key: _KT, default: _VT | _T) -> _VT | _T: ...
def popitem(self) -> tuple[_KT, _VT]: ...
# This overload should be allowed only if the value type is compatible with None.
@overload
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.
0