KEMBAR78
Plugin: Use mypy to enrich AST with types · Issue #12513 · python/mypy · GitHub
Skip to content

Plugin: Use mypy to enrich AST with types #12513

@jepperaskdk

Description

@jepperaskdk

With the inspect/ast modules I can get an AST of e.g. a function and inspect variables - but in terms of types, I can only get the annotations from the signature (AFAIK).

Can mypy enrich the rest of the tree with types? And preferably expose this so that plugins can be written for it?

Does mypy already build a typed AST under the hood? Can you point me to where it happens?

Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    featuretopic-pluginsThe plugin API and ideas for new plugins

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions