feat: classify conditional imports - #33
Conversation
|
Validation:
Note: full |
|
I found one blocker around relative conditional imports.
Please add coverage for conditional relative imports, especially |
|
@copilot resolve the merge conflicts in this pull request |
|
@copilot resolve the merge conflicts in this pull request |
1 similar comment
|
@copilot resolve the merge conflicts in this pull request |
Resolved by merging |
Pull Request
Adds first-class classification for conditional imports inside
tryblocks that handleImportErrororModuleNotFoundError.These imports are now marked with
ImportKind.CONDITIONAL_IMPORT, allowing dependency graphs and reports to distinguish optional/fallback dependencies from regular runtime imports.This PR includes regression tests for conditional imports in raw import extraction and graph extraction, plus a short README note documenting the behavior.
Change Type