-
Notifications
You must be signed in to change notification settings - Fork 9
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
How to use with mypy #37
Comments
As stated in the README and on pypi:
If you want to use mypy, why not use the original https://github.com/typeddjango/djangorestframework-stubs |
I was trying to check some cross-type-checker behaviour. And if type-checker-agnosctics is the goal - it should work with mypy also. I think there's just some misconfiguration on my part, but i have no idea where. |
AH, wait, I see your error.
That is an issue with django_filters, not restframework. For pyright, I locally added this file to my own respository which addresses that:
|
Turned out, i need to install mypy to the same venv i'm using. Global installation doesn't work. |
Is there any steps required to use it with mypy?
I have installed it:
But mypy seems to ignore it:
The text was updated successfully, but these errors were encountered: