From d73b3d5a253b7a6fd94abd71489698270dfc16dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20Ke=C3=9Fler?= Date: Thu, 10 Oct 2024 13:39:48 +0200 Subject: [PATCH] fix return value type --- src/hanabi/live/variants.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hanabi/live/variants.py b/src/hanabi/live/variants.py index 0ba1c89..ca21e83 100644 --- a/src/hanabi/live/variants.py +++ b/src/hanabi/live/variants.py @@ -23,7 +23,7 @@ def get_all_variant_ids() -> List[int]: return [var_id for (var_id,) in database.cur.fetchall()] -def variant_name(var_id) -> Optional[int]: +def variant_name(var_id) -> Optional[str]: database.cur.execute( "SELECT name FROM variants WHERE id = %s", (var_id,)