Skip to content

Commit

Permalink
fix: after review
Browse files Browse the repository at this point in the history
  • Loading branch information
sashokpilipok7 committed Oct 5, 2023
1 parent 42e92a0 commit 9233db5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app/main.py
Original file line number Diff line number Diff line change
@@ -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)

Expand Down

0 comments on commit 9233db5

Please sign in to comment.