Skip to content

Conversation

@0xaaadnf
Copy link
Contributor

This PR updates the Tree-sitter queries to capture Python import alias names
in both import x as y and from module import x as y statements.

Alias names are now spell-checked, while regular import names remain ignored,
because aliases are user-defined and can contain typos.

Implements #185

@blopker
Copy link
Owner

blopker commented Dec 31, 2025

This looks like it should work, but it would be idea to add some tests for this in test_python.rs, that way we can avoid any regressions.

@0xaaadnf 0xaaadnf force-pushed the python-import-alias-name-spellcheck branch from 2ec0b84 to b44a642 Compare January 1, 2026 06:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants