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
AbstractBaseUser does not appear to be properly type hinted
# This causes the following MyPy error...# Item "AbstractBaseUser" of "Union[AbstractBaseUser, AnonymousUser]" has no attribute "is_superuser"@method_decorator(user_passes_test(lambdau: u.is_superuser), name="dispatch")classGeneralSettingsView(UpdateView):
...
How is that should be
All expected attributes off AbstractBaseUser should be exposed to MyPy
System information
OS:
python version: 3.10
django version: 4.1
mypy version: 0.982
django-stubs version: 1.13
django-stubs-ext version: 0.7.0
The text was updated successfully, but these errors were encountered:
Bug report
What's wrong
AbstractBaseUser
does not appear to be properly type hintedHow is that should be
All expected attributes off
AbstractBaseUser
should be exposed to MyPySystem information
python
version: 3.10django
version: 4.1mypy
version: 0.982django-stubs
version: 1.13django-stubs-ext
version: 0.7.0The text was updated successfully, but these errors were encountered: