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 have a custom user model that inherits from AbstractBaseUser, but when I do something like request.user.id, pyright thinks that user is of type AbstractBaseUser (instead of my class MyUser) and it can't find the id property (or any other properties).
My custom User class is specified in my Django settings: AUTH_USER_MODEL = 'userauth.MyUser'.
I notice Mypy is aware of Django settings. Is pyright not equipped to do that or am I doing something else wrong?
The text was updated successfully, but these errors were encountered:
I have a custom user model that inherits from AbstractBaseUser, but when I do something like
request.user.id
, pyright thinks thatuser
is of type AbstractBaseUser (instead of my class MyUser) and it can't find theid
property (or any other properties).My custom User class is specified in my Django settings:
AUTH_USER_MODEL = 'userauth.MyUser'
.I notice Mypy is aware of Django settings. Is pyright not equipped to do that or am I doing something else wrong?
The text was updated successfully, but these errors were encountered: