Skip to content

Commit

Permalink
Fixed annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
Wonsky1 authored Oct 10, 2023
1 parent ce66ec4 commit 3b050d7
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):
@staticmethod
def bite(animal: Herbivore) -> None:
def bite(animal: Animal) -> None:
if not animal.hidden and isinstance(animal, Herbivore):
animal.health -= 50
if animal.health <= 0:
Expand Down

0 comments on commit 3b050d7

Please sign in to comment.