From be53049434e8ad16627e6751fe20c5bd3c1dc07f Mon Sep 17 00:00:00 2001 From: D Petetskyi <4477617@gmail.com> Date: Fri, 13 Dec 2024 20:50:04 +0200 Subject: [PATCH] dict changed to str --- app/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/main.py b/app/main.py index 85af64fb..7a5690fb 100644 --- a/app/main.py +++ b/app/main.py @@ -8,7 +8,7 @@ def __init__( self.hidden = hidden self.alive.append(self) - def __repr__(self) -> dict: + def __repr__(self) -> str: animal = (f"{{Name: {self.name}, Health: {self.health}," f" Hidden: {self.hidden}}}") return animal