File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -33,17 +33,17 @@ def _check_annotations(value):
3333 """
3434 if isinstance (value , np .ndarray ):
3535 if not issubclass (value .dtype .type , ALLOWED_ANNOTATION_TYPES ):
36- raise ValueError (f"Invalid annotation. NumPy arrays with dtype { value .dtype .type } "
37- "are not allowed" )
36+ raise ValueError (f"Invalid annotation. NumPy arrays with dtype { value .dtype .type } "
37+ f "are not allowed" )
3838 elif isinstance (value , dict ):
3939 for element in value .values ():
4040 _check_annotations (element )
4141 elif isinstance (value , (list , tuple )):
4242 for element in value :
4343 _check_annotations (element )
4444 elif not isinstance (value , ALLOWED_ANNOTATION_TYPES ):
45- raise ValueError (f"Invalid annotation. Annotations of type { type (value )} are not"
46- "allowed" )
45+ raise ValueError (f"Invalid annotation. Annotations of type { type (value )} are not "
46+ f "allowed" )
4747
4848
4949def merge_annotation (a , b ):
You can’t perform that action at this time.
0 commit comments