Anexen / pyxirr

Rust-powered collection of financial functions.
https://anexen.github.io/pyxirr/
The Unlicense
172 stars 16 forks source link

Missing InvalidPaymentsError exception declaration in .pyi causes mypy missing import error #35

Closed dmurphway closed 1 year ago

dmurphway commented 1 year ago

Importing InvalidPaymentsError as: from pyxirr import InvalidPaymentsError results in an import error being flagged by mypy.

Workaround needed to run is: from pyxirr import InvalidPaymentsError # type: ignore [attr-defined]

Explicitly declaring the exception name in the .pyi file should solve this issue.

Anexen commented 1 year ago

Fixed in v0.8.1