def __str__(self): を
def __str__(self) -> str: と、
def __int__(self): を
def __int__(self) -> int: と書くべきでつか。