Skip to content

Commit

Permalink
FIX: typo in comment
Browse files Browse the repository at this point in the history
  • Loading branch information
genematx committed Sep 6, 2024
1 parent 91f0f98 commit e68e0e5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tiled/server/pydantic_array.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class BuiltinDtype(BaseModel):
@classmethod
def from_numpy_dtype(cls, dtype) -> "BuiltinDtype":
# Extract datetime units from the dtype string representation,
# e.g. `'<M8[ns]'` has `units = 's'`.
# e.g. `'<M8[ns]'` has `units = 'ns'`.
units = ""
if dtype.kind in ("m", "M"):
if res := re.search(r"\[(.+)\]$", dtype.str):
Expand Down
2 changes: 1 addition & 1 deletion tiled/structures/array.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ class BuiltinDtype:
@classmethod
def from_numpy_dtype(cls, dtype) -> "BuiltinDtype":
# Extract datetime units from the dtype string representation,
# e.g. `'<M8[ns]'` has `units = 's'`.
# e.g. `'<M8[ns]'` has `units = 'ns'`.
units = ""
if dtype.kind in ("m", "M"):
if res := re.search(r"\[(.+)\]$", dtype.str):
Expand Down

0 comments on commit e68e0e5

Please sign in to comment.