Skip to content

Commit

Permalink
fix ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
Benedikt Fuchs committed Aug 21, 2023
1 parent 731973f commit 8517e69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flair/nn/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -660,7 +660,7 @@ def multi_label_threshold(self):

@multi_label_threshold.setter
def multi_label_threshold(self, x): # setter method
if type(x) is dict:
if isinstance(x, dict):
if "default" in x:
self._multi_label_threshold = x
else:
Expand Down

0 comments on commit 8517e69

Please sign in to comment.