Declare typing support via py.typed
file
#433
Labels
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
Running mypy on code that uses the latest version of
pypistats
fails with the error message "module is installed, but missing library stubs or py.typed marker". A quick look atpypistats
'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 usespypistats
.To resolve this, please do the following:
pypistats
are type-annotated and validated by mypy.py.typed
insidesrc/pypistats/
.pypistats/py.typed
file is included in sdists & wheels built from the project. This may involve configuration specific to your build backend (hatch) that is beyond the scope of this comment.Further references:
The text was updated successfully, but these errors were encountered: