Skip to content

Commit

Permalink
'Solution'
Browse files Browse the repository at this point in the history
  • Loading branch information
spa7id committed Oct 2, 2024
1 parent d474b6c commit bad3df2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ def hide(self) -> None:


class Carnivore(Animal):
def bite(self, herb: Herbivore) -> None:
@staticmethod
def bite(herb: Herbivore) -> None:
if isinstance(herb, Herbivore):
if not herb.hidden:
herb.health -= 50
Expand Down

0 comments on commit bad3df2

Please sign in to comment.