From f2e4cdcd2663a815a0910a93d8984bdefce47e1a Mon Sep 17 00:00:00 2001 From: Serhii Fedorov Date: Tue, 10 Oct 2023 22:04:48 +0300 Subject: [PATCH] Adding static status for the 'bite' method in Carnivore class --- app/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/main.py b/app/main.py index f866088d..e77053c3 100644 --- a/app/main.py +++ b/app/main.py @@ -25,7 +25,8 @@ def hide(self) -> None: class Carnivore(Animal): - def bite(self, herbivore: Herbivore) -> None: + @staticmethod + def bite(herbivore: Herbivore) -> None: if isinstance(herbivore, Herbivore) and herbivore.hidden is not True: herbivore.health -= 50