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
This is a follow-up to #136. I am in the process of implementing this and I use mypy for type checking.
Defining the manager using the base class BaseUserManager resolves in the following error for the following line:
objects=InventorManager()
Incompatible types in assignment (expression has type "InventorManager[Inventor]", base class "User" defined the type as "UserManager[User]") [assignment]mypy(error)
Possible Solutions
AbstractUser actually uses UserManager so I wonder if inheriting from UserManager would not be better. At the same time, it also resolves the mypy error.
Your full name so we can provide accurate credit within the book
Matthias Schoettle
The text was updated successfully, but these errors were encountered:
Location within the Book
Description
This is a follow-up to #136. I am in the process of implementing this and I use
mypy
for type checking.Defining the manager using the base class
BaseUserManager
resolves in the following error for the following line:Possible Solutions
AbstractUser
actually usesUserManager
so I wonder if inheriting fromUserManager
would not be better. At the same time, it also resolves themypy
error.Your full name so we can provide accurate credit within the book
Matthias Schoettle
The text was updated successfully, but these errors were encountered: