You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using vscode with Pylance and I would like to know if it is normal that the types for Model.objects.filter arguments are Any. So if I do this it does not complain:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
I am using vscode with Pylance and I would like to know if it is normal that the types for
Model.objects.filter
arguments areAny
. So if I do this it does not complain:When I ctrl + click it redirects me to this line that shows that there is not type checking for the filter argument.
django-stubs/django-stubs/db/models/manager.pyi
Line 116 in e566001
Is there a way to have type checking for these arguments please?
Beta Was this translation helpful? Give feedback.
All reactions