Description
Create openvariant/_core.pyi with complete type annotations for all classes and functions exposed by the Rust extension. Add openvariant/py.typed (PEP 561).
Files
openvariant/_core.pyi — NEW
openvariant/py.typed — NEW
Definition of Done
Documentation needed: Update README.md to mention PEP 561 compatibility.
Tests needed:
- Add
mypy to CI: mypy openvariant/ --ignore-missing-imports must exit 0
Description
Create
openvariant/_core.pyiwith complete type annotations for all classes and functions exposed by the Rust extension. Addopenvariant/py.typed(PEP 561).Files
openvariant/_core.pyi— NEWopenvariant/py.typed— NEWDefinition of Done
Annotation,VariantReader,cat_task,count_task,group_by_task,find_filesmypy openvariant/runs clean (no missing stubs errors)py.typedpresent for downstream type-checking supportDocumentation needed: Update
README.mdto mention PEP 561 compatibility.Tests needed:
mypyto CI:mypy openvariant/ --ignore-missing-importsmust exit 0