You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
When I use mypy and piq, I get an error like the following:
mypy example.py
example.py:1: error: Skipping analyzing "piq": module is installed, but missing library stubs or py.typed marker [import-untyped]
example.py:1: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
Even if I # type: ignore the error, I do not get the benefits of type safety when using piq.
Similar errors occur with other type checkers (pyre, pyright).
Is your feature request related to a problem? Please describe.
When I use
mypy
andpiq
, I get an error like the following:Even if I
# type: ignore
the error, I do not get the benefits of type safety when usingpiq
.Similar errors occur with other type checkers (
pyre
,pyright
).See https://peps.python.org/pep-0561/#packaging-type-information.
Describe the solution you'd like
Add an empty
py.typed
file topiq
. This tellsmypy
to use the types defined inpiq
.Describe alternatives you've considered
stubgen
to create atypes-piq
package.The text was updated successfully, but these errors were encountered: