-
-
Notifications
You must be signed in to change notification settings - Fork 485
django_stubs_ext.monkeypatch() does not work properly #557
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
Try |
Thanks a lot! 🔥 🔥 🔥 It solved Does it exist any known way to resolve Looks like this workaround is the only way: python/mypy#2087 (comment) |
I use I would love to get more typing support here, because sometimes I make typos like I am going to close this ticket. Feel free to reopen it or open new ones! 👍 |
When I do this, I get |
Bug report
What's wrong
I have
django_stubs
anddjango_stubs_ext
installed.I have called
monkeypatch()
in the base Django settings file.But still, got
mypy
errors for an absolutely generic Django Admin code:admin.py
mypy errors
How is that should be
According to this issue (#507), calling
monkeypatch()
should resolve this problem. But, for some reason, it wasn't.System information
python
version: 3.9django
version: 3.1.5mypy
version: 0.790django-stubs
version: 1.7.0django_stubs_ext
version: 0.1.0The text was updated successfully, but these errors were encountered: