def create_user(self, email, password=None, **extra_fields):  # type: ignore[no-untyped-def]
        """Create and save a regular User with the given email and password."""
        extra_fields.setdefault("is_staff", False)
        extra_fields.setdefault("is_superuser", False)
        return self._create_user(email, password, **extra_fields)  # type: ignore[no-untyped-call]
Create and save a regular User with the given email and password.
api/users/models.py