diff --git a/src/numpydantic/ndarray.py b/src/numpydantic/ndarray.py index 6969d44..fa0fdc9 100644 --- a/src/numpydantic/ndarray.py +++ b/src/numpydantic/ndarray.py @@ -152,6 +152,8 @@ class NDArrayMeta(_NDArrayMeta, implementation="NDArray"): result = str(dtype) elif isinstance(dtype, tuple): result = ", ".join([str(dt) for dt in dtype]) + else: + result = str(dtype) return result