[Answered ]-How do I type a custom User model manager for mypy in Django?

1👍

Specifying that my manager is for AbstractUser seems to have worked:

from django.contrib.auth.models import UserManager, AbstractUser

class MyUserManager(UserManager[AbstractUser]):
    ...
👤John

Leave a comment