Skip to content

Commit

Permalink
linter suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
brandon-groundlight committed Dec 10, 2024
1 parent b0e6ccb commit 790dcdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/groundlight/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -1113,7 +1113,7 @@ def add_label(
raise TypeError("rois must be a list of ROI objects. CLI support is not implemented")

# NOTE: bool is a subclass of int
if type(label) == int: # noqa: E721
if type(label) == int: # noqa: E721 pylint: disable=unidiomatic-typecheck
label = str(label)
elif not isinstance(label, (str, Label)):
raise TypeError("label must be a string or integer")
Expand Down

0 comments on commit 790dcdd

Please sign in to comment.