Skip to content

Commit

Permalink
merge conflicts II
Browse files Browse the repository at this point in the history
  • Loading branch information
zm711 authored Nov 25, 2023
1 parent bbccb4a commit 29a6380
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions neo/core/baseneo.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def _check_annotations(value):
"""
if isinstance(value, np.ndarray):
if not issubclass(value.dtype.type, ALLOWED_ANNOTATION_TYPES):
raise ValueError(f"Invalid annotation. NumPy arrays with dtype {value.dtype.type} "
raise ValueError(f"Invalid annotation. NumPy arrays with dtype {value.dtype.type}"
f"are not allowed")
elif isinstance(value, dict):
for element in value.values():
Expand All @@ -42,7 +42,7 @@ def _check_annotations(value):
for element in value:
_check_annotations(element)
elif not isinstance(value, ALLOWED_ANNOTATION_TYPES):
raise ValueError(f"Invalid annotation. Annotations of type {type(value)} are not "
raise ValueError(f"Invalid annotation. Annotations of type {type(value)} are not"
f"allowed")


Expand Down

0 comments on commit 29a6380

Please sign in to comment.