8000 Make Mapping.get(default) more constrained by ndmitchell · Pull Request #14360 · python/typeshed · GitHub
[go: up one dir, main page]

Skip to content

Make Mapping.get(default) more constrained #14360

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 18 commits into from
Jul 2, 2025
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
Update inifile.pyi
  • Loading branch information
ndmitchell authored Jul 2, 2025
commit 0e544364030c322a609beba35fcca19bf19d3bf0
2 changes: 1 addition & 1 deletion stubs/inifile/inifile.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class IniData(MutableMapping[str, str]):
def to_dict(self) -> dict[str, str]: ...
def __len__(self) -> int: ...
@overload
def get(self, name: str) -> str | None: ...
def get(self, name: str, default: None = None) -> str | None: ...
@overload
def get(self, name: str, default: str) -> str: ...
@overload
Expand Down
Loading
0