I am trying to do an orderly job with my type hints to have a code that is easier to add to.
I have made the following classes:
class Player(ABC)
@abstractmethod
def some_function():
pass
class SomeSubclass(Player):
def some_function():
#some meaningfull code
pass
p1: Type[Player] = SomeSubclass()
In the last line I get an expected type error by PyCharm:
Expected Type 'Type[Player]' got 'SomeSubclass' instead
Do I use the wrong Typehint or am I missing something else?