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
CIMultiDict().get("str") fails in mypy
CIMultiDict().get("str")
import multidict a = multidict.CIMultiDict({"a": "b"}) a.get("Hey")
Should pass in mypy
foo.py:5: error: No overload variant of "get" of "Mapping" matches argument type "str" foo.py:5: note: Possible overload variants: foo.py:5: note: def get(self, key: istr) -> Optional[str] foo.py:5: note: def [_T] get(self, istr, Union[str, _T]) -> Union[str, _T]
Write the above code in foo.py, run mypy foo.py with the most recent multidict & mypy
mypy foo.py
Python 3.8.10
mypy==0.931 multidict==6.0.1
The text was updated successfully, but these errors were encountered:
Fixed by #688 Sorry for the inconvinience.
Sorry, something went wrong.
Ow thank you for the quick fix !
No branches or pull requests
Long story short
CIMultiDict().get("str")
fails in mypyExpected behaviour
Should pass in mypy
Actual behaviour
Steps to reproduce
Write the above code in foo.py, run
mypy foo.py
with the most recent multidict & mypyYour environment
Python 3.8.10
The text was updated successfully, but these errors were encountered: