diff --git a/tiled/server/pydantic_array.py b/tiled/server/pydantic_array.py index 952a5c8ba..4e466f7fb 100644 --- a/tiled/server/pydantic_array.py +++ b/tiled/server/pydantic_array.py @@ -28,7 +28,7 @@ class BuiltinDtype(BaseModel): endianness: Endianness kind: Kind itemsize: int - units: str = "" + units: Optional[str] = None __endianness_map = { ">": "big", @@ -43,7 +43,7 @@ class BuiltinDtype(BaseModel): def from_numpy_dtype(cls, dtype) -> "BuiltinDtype": # Extract datetime units from the dtype string representation, # e.g. `'": "big", @@ -92,7 +92,7 @@ class BuiltinDtype: def from_numpy_dtype(cls, dtype) -> "BuiltinDtype": # Extract datetime units from the dtype string representation, # e.g. `'