unbound local error in stringifying type

This commit is contained in:
sneakers-the-rat 2024-10-11 00:02:16 -07:00
parent 1187b37b2d
commit 2991d360e1
Signed by untrusted user who does not match committer: jonny
GPG key ID: 6DCB96EF1E4D232D

View file

@ -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