Skip to content

Commit

Permalink
Merge branch 'multiclass_label_support' of github.com:groundlight/pyt…
Browse files Browse the repository at this point in the history
…hon-sdk into multiclass_label_support
  • Loading branch information
brandon-groundlight committed Dec 10, 2024
2 parents 1e9ac4e + 9b07cf5 commit b0e6ccb
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
label = str(label)
elif not isinstance(label, (str, Label)):
raise TypeError("label must be a string or integer")
Expand Down

0 comments on commit b0e6ccb

Please sign in to comment.