-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MyPy error thrown when importing using from #56
Comments
Will raise a PR at a later date, just noting here for visibility. |
@wheelereng I wonder if you might be running a different mypy version or options, as the mypy build passes on CI: https://github.com/scrapinghub/price-parser/actions/runs/3409870069/jobs/5672160520 (this build is from a PR but it has no diff with master except for adding CI config). |
This is an issue when $ cat t.py
from price_parser import Price
$ mypy --no-implicit-reexport t.py
t.py:1: error: Module "price_parser" does not explicitly export attribute "Price" [attr-defined]
Found 1 error in 1 file (checked 1 source file) |
When type checking with MyPy, an error is thrown when using
from price_parser import parse_price
, namely:I suspect this is due to the entities not being defined in
__all__
The text was updated successfully, but these errors were encountered: