Skip to content

Commit 379b770

Browse files
author
brandon
committed
appease the linter
1 parent 6cfe38f commit 379b770

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/groundlight/client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ class ApiTokenError(GroundlightClientError):
6565
pass
6666

6767

68-
class Groundlight: # pylint: disable=too-many-instance-attributes
68+
class Groundlight: # pylint: disable=too-many-instance-attributes,too-many-public-methods
6969
"""
7070
Client for accessing the Groundlight cloud service. Provides methods to create visual detectors,
7171
submit images for analysis, and retrieve predictions.
@@ -443,7 +443,7 @@ def create_detector( # noqa: PLR0913
443443
pipeline_config=pipeline_config,
444444
metadata=metadata,
445445
)
446-
elif mode == ModeEnum.COUNT:
446+
if mode == ModeEnum.COUNT:
447447
if class_names is None:
448448
raise ValueError("class_names is required for counting detectors")
449449
if isinstance(class_names, list):
@@ -458,7 +458,7 @@ def create_detector( # noqa: PLR0913
458458
pipeline_config=pipeline_config,
459459
metadata=metadata,
460460
)
461-
elif mode == ModeEnum.MULTI_CLASS:
461+
if mode == ModeEnum.MULTI_CLASS:
462462
if class_names is None:
463463
raise ValueError("class_names is required for multi-class detectors")
464464
if isinstance(class_names, str):

0 commit comments

Comments
 (0)