self reference a class with typing.Self (python)

해결방안: typing.Self를 사용하면 된다. 다만, python3.11이상 버전에서만 된다는거 알고가셈.

python version < 3.11인 경우에도 해결방안이 존재하긴 하다. typing-extensions 패키지를 설치하여 from typing_extensions import Self하면 된다.