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

Apply type annotations from a stub. #265

Merged
merged 1 commit into from
Mar 23, 2020
Merged

Commits on Mar 23, 2020

  1. Apply annotations from stub.

    Basically move the apply_annotations code from Pyre.
    
    Make it a ContextAwareTransformer named ApplyTypeAnnotationsVisitor. Use GatherImportsVisitor to collect imports. Add a static method `add_stub_to_context` so that users can schedule a stub whose types are to be applied later. Use `assertCodemod` and `data_provider` in the tests. Add documentation. Remove fixmes.
    pradeep90 committed Mar 23, 2020
    Configuration menu
    Copy the full SHA
    b8c49ef View commit details
    Browse the repository at this point in the history