From 34c71c413105154ab3405605e0f405e503c2d963 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20Schr=C3=B6der?= <fschroeder@techfak.uni-bielefeld.de> Date: Thu, 7 Mar 2024 17:56:44 +0100 Subject: [PATCH] Added doc string to to_dict method of the Effect class --- cooperative_cuisine/items.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cooperative_cuisine/items.py b/cooperative_cuisine/items.py index da74f68a..fbfa2dab 100644 --- a/cooperative_cuisine/items.py +++ b/cooperative_cuisine/items.py @@ -472,6 +472,11 @@ class Effect: """For fire: how much the player still has to extinguish.""" def to_dict(self) -> EffectState: + """Converts the current object to a dictionary representation. + + Returns: + dict: A dictionary representation of the object. + """ return { "id": self.uuid, "type": self.name, -- GitLab