Skip to content

Commit

Permalink
class insted self 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
roffi37 committed Oct 11, 2023
1 parent 60c33e5 commit cbd4da3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ def __init__(self, name: str,
self.name = name
self.health = health
self.hidden = hidden
self.alive.append(self)
Animal.alive.append(self)

def __repr__(self) -> str:
return (f"{{Name: {self.name}, "
Expand Down

0 comments on commit cbd4da3

Please sign in to comment.