diff --git a/app/main.py b/app/main.py index 9672b2d0..f70db17d 100644 --- a/app/main.py +++ b/app/main.py @@ -7,13 +7,15 @@ def __init__(self, name: str, health: int = 100) -> None: self.hidden = False Animal.alive.append(self) - def reduce_health(self, amount) -> None: + def reduce_health(self, amount: int) -> None: self.health -= amount if self.health <= 0: Animal.alive.remove(self) def __repr__(self) -> str: - return f"{{Name: {self.name}, Health: {self.health}, Hidden: {self.hidden}}}" + return (f"{{Name: {self.name}, " + f"Health: {self.health}, " + f"Hidden: {self.hidden}}}") class Herbivore(Animal):