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
When installing anomalib as a package, mypy starts to complain about missing type stubs. Seeing that anomalib is mostly (if not fully) typed, it would be nice to make the package PEP561 compliant (currently I ignore anomalib for mypy)
Describe the solution you'd like
Make the package PEP 561 compliant. Could potentially be as easy as adding a py.typed at the root of the shipped package directory. Note that I am not an expert in building/shipping python packages, so I might also be wrong on this
[Task: 1015] Make anomalib PEP 561 compliant for mypy
This enables PEP 561 compliance for mypy via adding py.typed and MANIFEST.in.
Fixes#1015
Signed-off-by: Yuan, Jinjie <[email protected]>
Signed-off-by: Kang Wenjing <[email protected]>
What is the motivation for this task?
When installing anomalib as a package, mypy starts to complain about missing type stubs. Seeing that anomalib is mostly (if not fully) typed, it would be nice to make the package PEP561 compliant (currently I ignore
anomalib
for mypy)Describe the solution you'd like
Make the package PEP 561 compliant. Could potentially be as easy as adding a
py.typed
at the root of the shipped package directory. Note that I am not an expert in building/shipping python packages, so I might also be wrong on thisAdditional context
https://mypy.readthedocs.io/en/stable/installed_packages.html#creating-pep-561-compatible-packages
The text was updated successfully, but these errors were encountered: