-
-
Notifications
You must be signed in to change notification settings - Fork 105
CIMultiDict has incompatible type Dict[istr, str] #644
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
Comments
Would you make a Pull Request with fix? |
Yes! |
I don't quite understand how to fix it. |
* Fix #644 * Add changelog * Get path obj from stem * Fix changelog
The PR breaks aiohttp and almost every project that depends on multidict. |
@asvetlov will this be implemented in future? i assume currently the only solution is to override typing annotation on user side |
Long story short
The
mypy
checks fail if the dictionary keys passed to the constructor are of theistr
type.Expected behaviour
The
mypy
checks have passed.Actual behaviour
Error from
mypy
:Steps to reproduce
Run
mypy
on this script:Your environment
Python v3.9.4
aiohttp v3.7.4.post0
multidict v5.1.0
mypy v0.910
The text was updated successfully, but these errors were encountered: