Jan-28-2023, 10:03 PM
(This post was last modified: Jan-28-2023, 10:05 PM by MathisDELAGE.)
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.
