-
-
Notifications
You must be signed in to change notification settings - Fork 459
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
Queryset: TypeError: 'type' object is not subscriptable #146
Comments
Any update on this? |
Short term fix:
if you have this code ( Long term fix: We really need to document this stuff... |
To make it easier to access, this means doing like this:
|
I can suggest a hack that helped me:
|
|
Code:
Output:
Reproduction: https://github.com/sobolevn/django_stubs_example
Fix:
I guess that it is related to #144 and also should be just documented properly.
Because for now it might cause a confusion for newcomers.
The text was updated successfully, but these errors were encountered: