Skip to content

Commit

Permalink
unbound local error in stringifying type
Browse files Browse the repository at this point in the history
  • Loading branch information
sneakers-the-rat committed Oct 11, 2024
1 parent 1187b37 commit 2991d36
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/numpydantic/ndarray.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,8 @@ def _dtype_to_str(cls, dtype: Any) -> str:
result = str(dtype)
elif isinstance(dtype, tuple):
result = ", ".join([str(dt) for dt in dtype])
else:
result = str(dtype)
return result


Expand Down

0 comments on commit 2991d36

Please sign in to comment.