From a8fd08230877eece4bdd35672e6be9fc08127cb8 Mon Sep 17 00:00:00 2001 From: SIMAILA Djalim Date: Sun, 15 Jan 2023 21:57:03 +0100 Subject: [PATCH] False is not None --- truthseeker/logic/game_logic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/truthseeker/logic/game_logic.py b/truthseeker/logic/game_logic.py index be5d0fd..cce9cb5 100644 --- a/truthseeker/logic/game_logic.py +++ b/truthseeker/logic/game_logic.py @@ -133,7 +133,7 @@ class Game: reaction_id = self.reaction_table[npc_id] return read_image(f"./truthseeker/static/images/npc/{npc_id}/{reaction_id}.png") - def get_player_results(self, responses: dict) -> Union[dict, False]: + def get_player_results(self, responses: dict) -> Union[dict, None]: """ Checks the player's answers againts the reaction map. Return None when a npc is not found in the reaction table, meaning an invalid npc was sent