Skip to content

Commit

Permalink
explicitly cast instead
Browse files Browse the repository at this point in the history
  • Loading branch information
keewis committed Oct 17, 2024
1 parent bea33b7 commit 69c5ecb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions virtualizarr/manifests/manifest.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,9 @@ def __init__(self, entries: dict) -> None:
@classmethod
def empty(cls) -> "ChunkManifest":
"""Create an empty chunk manifest."""
paths: np.ndarray[Any, np.dtypes.StringDType] = np.array(
(), dtype=np.dtypes.StringDType
paths = cast(
np.array((), dtype=np.dtypes.StringDType),
np.ndarray[Any, np.dtypes.StringDType],
)
return cls.from_arrays(
paths=paths,
Expand Down

0 comments on commit 69c5ecb

Please sign in to comment.