Skip to content

Commit 8d0da3e

Browse files
committed
fixed error
1 parent a12c420 commit 8d0da3e

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

libs/labelbox/src/labelbox/schema/bulk_import_request.py

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -787,10 +787,8 @@ def validate_feature_schemas(
787787
# A union with custom construction logic to improve error messages
788788
class NDClassification(
789789
SpecialUnion,
790-
Type[
791-
Union[ # type: ignore
792-
NDText, NDRadio, NDChecklist
793-
]
790+
Type[ # type: ignore
791+
Union[NDText, NDRadio, NDChecklist]
794792
],
795793
): ...
796794

@@ -966,8 +964,8 @@ class NDMask(NDBaseTool):
966964
# A union with custom construction logic to improve error messages
967965
class NDTool(
968966
SpecialUnion,
969-
Type[
970-
Union[ # type: ignore
967+
Type[ # type: ignore
968+
Union[
971969
NDMask,
972970
NDTextEntity,
973971
NDPoint,
@@ -981,10 +979,8 @@ class NDTool(
981979

982980
class NDAnnotation(
983981
SpecialUnion,
984-
Type[
985-
Union[ # type: ignore
986-
NDTool, NDClassification
987-
]
982+
Type[ # type: ignore
983+
Union[NDTool, NDClassification]
988984
],
989985
):
990986
@classmethod

0 commit comments

Comments
 (0)