-
-
Notifications
You must be signed in to change notification settings - Fork 485
PyCharm gets weird about self.request.GET.get #799
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
Can you please paste Looks related to python/typeshed#6597 |
My guess is that comes from the existing type hinting in
|
Ok, here's what I think is going on.
Related python/typeshed#6694 |
So it’s an error in pycharm? As a matter of fact I don’t understand their message. My It nearly seems like they think I’m missing the |
It looks like it is a error with PyCharm. Do they use our stubs? Or do the use their own version? You can send a PR with this sample as a test case (if we don't have one). Just to be sure. |
This looks related to #555, this thread and this YouTrack issue. Nothing we can fix here I'm afraid. BTW, |
Bug report
What's wrong
PyCharm complains about the types here, even though
mypy
doesn't.Hinting
request: WSGIRequest
solves the issue with PyCharm though.How is that should be
There should not be any issue with the types. Is PyCharm wrong about complaining here? Is django-stubs wrong about typing
request
withHttpRequest
and not something else likeWSGIRequest
?System information
python
version: Python 3.10.0django
version: 4.0mypy
version: mypy 0.930django-stubs
version: 1.9.0django-stubs-ext
version: 0.3.1The text was updated successfully, but these errors were encountered: