From 9233db5af168cbae34cb5d94d42411f9ffe28b8a Mon Sep 17 00:00:00 2001 From: Oleksandr Pylypenko Date: Thu, 5 Oct 2023 23:35:55 +0300 Subject: [PATCH] fix: after review --- app/main.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/main.py b/app/main.py index 59399f7e..eba46697 100644 --- a/app/main.py +++ b/app/main.py @@ -1,10 +1,9 @@ class Animal: alive = [] - default_health = 100 - def __init__(self, name: str, health: int = None) -> None: + def __init__(self, name: str, health: int = 100) -> None: self.name = name - self.health = health if health is not None else self.default_health + self.health = health self.hidden = False Animal.alive.append(self)