objects.filter type detection / type hint?

I have 'user = User.objects.filter(username=email)', yet after this statement pycharm does not realize that "user" is a "User" object.
Other than a manual type assertion, is there anything I can do?
1 comment
Comment actions Permalink
It is not reproducible for me (please look at the screenshot).
Please try File->Invalidate Caches->Invalidate and Restart.
In case it does not help please provide a sample project to reproduce this issue.


Please sign in to leave a comment.