Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit ee3f5d1

Browse files
committedMar 20, 2024·
WIP: Fix dtype creation fail
1 parent d2eb0dc commit ee3f5d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎h5pyd/_hl/h5type.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -877,7 +877,7 @@ def createDataType(typeItem):
877877
raise KeyError("no 'field' elements provided")
878878
subtypes = []
879879
for field in fields:
880-
if isinstance(field, dict):
880+
if type(field) is not dict:
881881
raise TypeError("Expected dictionary type for field")
882882
if 'name' not in field:
883883
raise KeyError("'name' missing from field")

0 commit comments

Comments
 (0)
Please sign in to comment.