Skip to content

Commit

Permalink
Solution with correct type annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
weuis committed Sep 14, 2023
1 parent 047b009 commit 956287b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ class Animal:
def __init__(
self,
name: str,
health: int | None = 100,
hidden: bool | None = False
health: int = 100,
hidden: bool = False
) -> None:
self.name = name
self.health = health
Expand Down

0 comments on commit 956287b

Please sign in to comment.