from abc import ABC, abstractmethod
class BasketballPlayer(ABC):
move1 = 'pass'
move2 = 'dribble'
move3 = 'shoot'
@property
@abstractmethod
def name(self):
pass
class Player2(BasketballPlayer):
def name(self):
pass
y = Player2()
I expect an error on the line y = Player2()
because the name is suddenly declared as a method instead of a property. Is this a bug? or something I did wrong?