-
Notifications
You must be signed in to change notification settings - Fork 18
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
pylance and pylint are unable to resolve package content #79
Comments
So this isn't a bug in the package? I'm happy to look at a PR if there's some additional justification for modifying the structure; is there usually an |
I can open a PR to address this issue. Explicitly adding public APIs to |
Describe the bug
VS Code fails to resolve functions imported from
simplification
(e.g., viafrom simplification.cutil import simplify_coords_vw_idx
), and pylint fails on GitLab's CI/CD withE0611: No name 'simplify_coords_vw_idx' in module 'simplification.cutil' (no-name-in-module)
despite all tests passing (i.e., the import works at runtime).System (please complete the following information)
x86_64
simplification 0.7.10
,python 3.12
,pylint 2.17.7
Additional context
I suppose a solution might be to add an
__init__.py
to thesrc
directory. For Python 3.3+, that's not strictly required due to namespace packages existing, but it seems pylint cannot handle that perfectly yet, nor can VS Code's Pylance.pylint-dev/pylint#4057
The text was updated successfully, but these errors were encountered: