Skip to content

Commit

Permalink
Resolve complaint by flake (E721)
Browse files Browse the repository at this point in the history
  • Loading branch information
juhoinkinen committed Feb 23, 2024
1 parent e3a26b1 commit f04f0be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion annif/backend/yake.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def is_trained(self):

@property
def label_types(self) -> list[URIRef]:
if type(self.params["label_types"]) == str: # Label types set by user
if isinstance(self.params["label_types"], str): # Label types set by user
label_types = [lt.strip() for lt in self.params["label_types"].split(",")]
self._validate_label_types(label_types)
else:
Expand Down

0 comments on commit f04f0be

Please sign in to comment.