code quality fixes
This commit is contained in:
@@ -64,7 +64,7 @@ def convert_label_studio_output(label_studio_output: dict) -> tuple[Annotation,
|
||||
annotation_data[key] = value
|
||||
annotation_data[uncertainty_key] = uncertainty_value
|
||||
# Create the Annotation object
|
||||
annotation = Annotation(**annotation_data)
|
||||
annotation = Annotation(**annotation_data) # type: ignore[arg-type]
|
||||
return annotation, job_id
|
||||
|
||||
|
||||
@@ -79,7 +79,9 @@ def sync_label_studio_annotations(
|
||||
if not minio_adapter.is_connected:
|
||||
raise ConnectionError("minio_adapter must be connected to MinIO")
|
||||
if not isinstance(annotation_repository, AnnotationRepository):
|
||||
raise ValueError("annotation_repository must be an instance of AnnotationRepository")
|
||||
raise ValueError(
|
||||
"annotation_repository must be an instance of AnnotationRepository"
|
||||
)
|
||||
if not annotation_repository.is_connected:
|
||||
raise ConnectionError("annotation_repository must be connected to MinIO")
|
||||
# List annotations in repository
|
||||
|
||||
Reference in New Issue
Block a user