mirror of
https://github.com/p2p-ld/numpydantic.git
synced 2024-11-14 18:54:28 +00:00
unbound local error in stringifying type
This commit is contained in:
parent
1187b37b2d
commit
2991d360e1
1 changed files with 2 additions and 0 deletions
|
@ -152,6 +152,8 @@ class NDArrayMeta(_NDArrayMeta, implementation="NDArray"):
|
||||||
result = str(dtype)
|
result = str(dtype)
|
||||||
elif isinstance(dtype, tuple):
|
elif isinstance(dtype, tuple):
|
||||||
result = ", ".join([str(dt) for dt in dtype])
|
result = ", ".join([str(dt) for dt in dtype])
|
||||||
|
else:
|
||||||
|
result = str(dtype)
|
||||||
return result
|
return result
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue