Skip to content
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

Support relative imports in ATAV qualifier handling #538

Merged
merged 1 commit into from
Nov 10, 2021

Commits on Oct 28, 2021

  1. Support relative imports in ATAV qualifier handling

    Based on diff review of Instagram#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
    
    ```
    stroxler committed Oct 28, 2021
    Configuration menu
    Copy the full SHA
    20b0070 View commit details
    Browse the repository at this point in the history