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
Next Next commit
fix
  • Loading branch information
Akuli committed Dec 26, 2021
commit 4f218bd27ce1de24c28a65116fd8a9b607296dda
4 changes: 2 additions & 2 deletions stdlib/builtins.pyi
663E
Original file line number Diff line number Diff line change
Expand Up @@ -849,9 +849,9 @@ class dict(MutableMapping[_KT, _VT], Generic[_KT, _VT]):
def fromkeys(cls, __iterable: Iterable[_T], __value: _S) -> dict[_T, _S]: ...
# Positional-only in dict, but not in MutableMapping
@overload
def get(self, __key: _KT) -> _VT_co | None: ...
def get(self, __key: _KT) -> _VT | None: ...
@overload
def get(self, __key: _KT, __default: _VT_co | _T) -> _VT_co | _T: ...
def get(self, __key: _KT, __default: _VT | _T) -> _VT | _T: ...
@overload
def pop(self, __key: _KT) -> _VT: ...
@overload
Expand Down
0