Skip to content

Commit

Permalink
try using an annotated variable
Browse files Browse the repository at this point in the history
  • Loading branch information
keewis committed Oct 17, 2024
1 parent ac700a9 commit bea33b7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion virtualizarr/manifests/manifest.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,11 @@ 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
)
return cls.from_arrays(
paths=np.array((), dtype=np.dtypes.StringDType),
paths=paths,
offsets=np.array((), dtype="uint64"),
lengths=np.array((), dtype="uint64"),
)
Expand Down

0 comments on commit bea33b7

Please sign in to comment.