From bad3df26c566c5a631ce608869110f1a7578923c Mon Sep 17 00:00:00 2001 From: Volodymyr Pankiv Date: Wed, 2 Oct 2024 17:31:08 +0300 Subject: [PATCH] 'Solution' --- app/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/main.py b/app/main.py index 3ff48e4e..16c8f1f4 100644 --- a/app/main.py +++ b/app/main.py @@ -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