aboutsummaryrefslogtreecommitdiff
path: root/scripts/generate_card.py
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2021-12-12 15:09:38 +0100
committerFlorian Fischer <florian.fischer@muhq.space>2021-12-12 15:10:34 +0100
commit8939a55b4e632f021a423b4508810b2720a7f3b3 (patch)
treed11f5b8715d5a9032bb055717ad7f6cfc15b9621 /scripts/generate_card.py
parent7cf6ae5f8478ac80f1123101595edef96a261d48 (diff)
downloadmuhqs-game-8939a55b4e632f021a423b4508810b2720a7f3b3.tar.gz
muhqs-game-8939a55b4e632f021a423b4508810b2720a7f3b3.zip
scripts: improve code quality
Diffstat (limited to 'scripts/generate_card.py')
-rwxr-xr-xscripts/generate_card.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/generate_card.py b/scripts/generate_card.py
index 2ec77b8c..7fb8b33a 100755
--- a/scripts/generate_card.py
+++ b/scripts/generate_card.py
@@ -103,7 +103,7 @@ def get_latex_field(card: MutableMapping,
# NOTE: normal and latex_ fields must have the same data type
# (both string or both list of strings).
if has_latex:
- assert type(latex_value) == type(normal_value)
+ assert isinstance(latex_value, type(normal_value))
# If the fetched value is not a list we are done here
if has_latex: