-
Notifications
You must be signed in to change notification settings - Fork 188
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support relative imports in ATAV qualifier handling
Based on diff review of #536, I investigated relatvie import handling and realized that with minor changes we can now handle them correctly. Relative imports aren't likely in code coming from an automated tool, but they could happen in hand-written stubs if anyone tries to use this codemod tool to merge stubs with code. Added a new test: ``` > python -m unittest libcst.codemod.visitors.tests.test_apply_type_annotations ............................................. ---------------------------------------------------------------------- Ran 45 tests in 2.195s OK ```
- Loading branch information
Showing
2 changed files
with
42 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters