From 23c0543644af2a4abc9e3ba4929eaf1e4f940d16 Mon Sep 17 00:00:00 2001 From: pwalkow <pawel.walkowiak@hotmail.com> Date: Thu, 23 Nov 2023 09:41:33 +0100 Subject: [PATCH] fix pep8 --- src/dictionaries/morphosyntactic/ner_file.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/dictionaries/morphosyntactic/ner_file.py b/src/dictionaries/morphosyntactic/ner_file.py index 55a4b65..809738f 100644 --- a/src/dictionaries/morphosyntactic/ner_file.py +++ b/src/dictionaries/morphosyntactic/ner_file.py @@ -95,8 +95,10 @@ class NERFileMorphosyntacticDictionary(MorphosyntacticDictionary): try: if entry_type in self._dictionary \ and morpho_tag in self._dictionary[entry_type] \ - and len(list(self._dictionary[ - entry_type][morpho_tag].keys())) > 0: + and len(list( + self._dictionary[ + entry_type][morpho_tag].keys()) + ) > 0: lemma = random.choice( list(self._dictionary[entry_type][morpho_tag].keys()) ) -- GitLab