Jan-28-2023, 10:03 PM
Hello,
I want to use a description for my parameter of my class method and that give this
If anyone have an idea.
Thanks in advance.
I want to use a description for my parameter of my class method and that give this
class Player: def __init__(self, name: str) -> None: self.name = name def battle(self, opponent: Player) -> int: print(f"Battle betwen {self.name} and {opponent.name}") return 0(It's the :Player who don't work)
If anyone have an idea.
Thanks in advance.