From 65f961d0f6d2fbbac325385de4c7e6a0b0cb7d66 Mon Sep 17 00:00:00 2001 From: madcpf Date: Mon, 2 Oct 2023 15:11:39 -0700 Subject: [PATCH] Update enums.py --- unitary/examples/quantum_chinese_chess/enums.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unitary/examples/quantum_chinese_chess/enums.py b/unitary/examples/quantum_chinese_chess/enums.py index fe5172f4..128f1843 100644 --- a/unitary/examples/quantum_chinese_chess/enums.py +++ b/unitary/examples/quantum_chinese_chess/enums.py @@ -99,4 +99,4 @@ def symbol(type_: "Type", color: Color, lang: Language = Language.EN) -> str: return type_.value[2] elif color == Color.BLACK: return type_.value[3] - return "Unexpected combinations" + raise ValueError("Unexpected combinations of language and color.")