We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Bug Report
Mypy complains when I try to call get on an empty dict.
To Reproduce
x = {}.get("x")
Expected Behavior
No error.
Actual Behavior
a.py:1: error: No overload variant of "get" of "dict" matches argument type "str" [call-overload] a.py:1: note: Possible overload variants: a.py:1: note: def get(self, Never, /) -> None a.py:1: note: def get(self, Never, Never, /) -> Never a.py:1: note: def [_T] get(self, Never, _T, /) -> _T Found 1 error in 1 file (checked 1 source file)
Your Environment
The text was updated successfully, but these errors were encountered:
d or {}
d
dict
Never
Successfully merging a pull request may close this issue.
Bug Report
Mypy complains when I try to call get on an empty dict.
To Reproduce
Expected Behavior
No error.
Actual Behavior
Your Environment
The text was updated successfully, but these errors were encountered: