zarr-developers / VirtualiZarr

Create virtual Zarr stores from archival data files using xarray syntax
https://virtualizarr.readthedocs.io/en/latest/
Apache License 2.0
68 stars 10 forks source link

Unable to type hint new StringDType #151

Open TomNicholas opened 2 weeks ago

TomNicholas commented 2 weeks ago

In https://github.com/zarr-developers/VirtualiZarr/pull/107 we now use the new numpy variable-length StringDType to store paths in-memory in the Manifest, but I had to ignore some typing errors to satisfy mypy. Turns out this is an upstream issue (https://github.com/numpy/numpy/issues/26747). I actually don't really understand what they're talking about in that issue, but once there is a clear recommendation we can remove the type: ignores here.