継承元のAbstractBaseUserの型定義 vs overrideした定義
>> mypy blog/models.py
blog/models.py:47: error: Incompatible types in assignment (expression
has type "TextField[Union[str, Combinable, None], Optional[str]]", base
class "AbstractBaseUser" defined the type as "CharField[Union[str, int,
Combinable], str]")
44
もともと、passwordはNOT NULLのCharFieldで、型ヒントはstr型です。
カスタマイズしたpasswordはNULLABLEはTextFieldで、型ヒントはOptional[str]型で
す。