We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a1a5846 commit e2fd822Copy full SHA for e2fd822
neo/core/baseneo.py
@@ -46,7 +46,8 @@ def _check_annotations(value):
46
raise ValueError(f"Invalid annotation. NumPy arrays with dtype {value.dtype.type}" f"are not allowed")
47
elif isinstance(value, dict):
48
for key, element in value.items():
49
- _check_annotations(key)
+ if not isinstance(key, str):
50
+ raise TypeError(f"Annotations keys must be strings not of type {type(key)}")
51
_check_annotations(element)
52
elif isinstance(value, (list, tuple)):
53
for element in value:
0 commit comments