Skip to content

Commit

Permalink
Update app/main.py
Browse files Browse the repository at this point in the history
Co-authored-by: Viktoriia Rybenchuk <[email protected]>
  • Loading branch information
Artem-user-19 and viktoria-rybenchuk authored Oct 4, 2023
1 parent e822226 commit 7b1416b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def hide(self) -> None:


class Carnivore(Animal):
def bite(self, herbivore: str) -> list:
def bite(self, herbivore: Herbivore) -> list:
if isinstance(herbivore, Herbivore) and not herbivore.hidden:
herbivore.health -= 50
if herbivore.health <= 0:
Expand Down

0 comments on commit 7b1416b

Please sign in to comment.