Declare typing support via py.typed
file
#1566
Labels
help wanted
Issue could use help from someone with familiarity on the topic
types
V3
Related to compatibility with V3 spec
Milestone
Running mypy on code that uses the latest version of
zarr
fails with the error message "module is installed, but missing library stubs or py.typed marker". A quick look atzarr
's source indicates that it is using type annotations, but because there is nopy.typed
file, mypy will not use the annotations when type-checking code that useszarr
.To resolve this, please do the following:
zarr
are type-annotated and validated by mypy.py.typed
inside thezarr/
package.zarr/py.typed
file is included in sdists & wheels built from the project. This may involve configuration specific to your build backend (setuptools) that is beyond the scope of this comment.dist/zarr-{version}.tar.gz
file created when building the project) by runningtar ztf dist/zarr-{version}.tar.gz
on it.dist/zarr-{version}-*-*-*.whl
file created when building the project) by runningzipinfo -1 dist/zarr-{version}-*-*-*.whl
on it.Further references:
The text was updated successfully, but these errors were encountered: