From bea33b792467575889d0b92e87ea1f0e6255d47e Mon Sep 17 00:00:00 2001 From: Justus Magin Date: Thu, 17 Oct 2024 20:37:30 +0200 Subject: [PATCH] try using an annotated variable --- virtualizarr/manifests/manifest.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/virtualizarr/manifests/manifest.py b/virtualizarr/manifests/manifest.py index 552bb67b..1604312d 100644 --- a/virtualizarr/manifests/manifest.py +++ b/virtualizarr/manifests/manifest.py @@ -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"), )