diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2021-12-12 15:09:38 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2021-12-12 15:10:34 +0100 |
| commit | 8939a55b4e632f021a423b4508810b2720a7f3b3 (patch) | |
| tree | d11f5b8715d5a9032bb055717ad7f6cfc15b9621 /scripts/generate_card.py | |
| parent | 7cf6ae5f8478ac80f1123101595edef96a261d48 (diff) | |
| download | muhqs-game-8939a55b4e632f021a423b4508810b2720a7f3b3.tar.gz muhqs-game-8939a55b4e632f021a423b4508810b2720a7f3b3.zip | |
scripts: improve code quality
Diffstat (limited to 'scripts/generate_card.py')
| -rwxr-xr-x | scripts/generate_card.py | 2 |
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: |
