From 8939a55b4e632f021a423b4508810b2720a7f3b3 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Sun, 12 Dec 2021 15:09:38 +0100 Subject: scripts: improve code quality --- scripts/generate_card.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/generate_card.py') 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: -- cgit v1.2.3