-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Pyright fails to find cookies
member of Django's HttpResponse
#5927
Comments
Pyright isn't "failing to discover members" in this case. It's simply telling you that the evaluated type of the member is This appears to be a bug in the type stubs. The |
I see, sorry for the noise. Will see about getting this fixed upstream. |
This definition makes it usable even in pyright's strict mode. See microsoft/pyright#5927 for details.
This definition makes it usable even in pyright's strict mode. See microsoft/pyright#5927 for details.
This definition makes it usable even in pyright's strict mode. See microsoft/pyright#5927 for details.
…1702) This definition makes it usable even in pyright's strict mode. See microsoft/pyright#5927 for details.
Describe the bug
Pyright fails to discover members on
HttResponse
but only in strict mode, the following code works fine on mypy (no matter the mode).Code or Screenshots
django
anddjango-stubs
are installed. The relevant type in the stubs file is defined here: https://github.com/typeddjango/django-stubs/blob/87f48b3ae62cd983c72f2e9639e80a9a7c6e487f/django-stubs/http/response.pyi#L26 -- are the stubs somehow not used or am I doing something wrong?The output:
VS Code extension or command-line
pyright command-line version 1.1.326
The text was updated successfully, but these errors were encountered: