Skip to content

Commit

Permalink
'simplify-bit-method'
Browse files Browse the repository at this point in the history
  • Loading branch information
Dogober committed Dec 10, 2024
1 parent 8dfd528 commit 005e21a
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ class Carnivore(Animal):

@staticmethod
def bite(other: Union[Carnivore, Herbivore]) -> None:
if isinstance(other, Carnivore):
return
if isinstance(other, Herbivore) and other.hidden:
return
other.health -= 50
Expand Down

0 comments on commit 005e21a

Please sign in to comment.