File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ 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 } "
36+ raise ValueError (f"Invalid annotation. NumPy arrays with dtype { value .dtype .type } "
3737 f"are not allowed" )
3838 elif isinstance (value , dict ):
3939 for element in value .values ():
@@ -42,7 +42,7 @@ def _check_annotations(value):
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 "
45+ raise ValueError (f"Invalid annotation. Annotations of type { type (value )} are not"
4646 f"allowed" )
4747
4848
You can’t perform that action at this time.
0 commit comments