Skip to content

Latest commit

 

History

History
48 lines (27 loc) · 3.05 KB

File metadata and controls

48 lines (27 loc) · 3.05 KB
graph LR
    CLI_Orchestrator["CLI Orchestrator"]
    Code_Modifier["Code Modifier"]
    Annotation_Outputter["Annotation Outputter"]
    CLI_Orchestrator -- "Delegates the task of applying annotations to source files." --> Code_Modifier
    CLI_Orchestrator -- "Delegates the task of dumping collected annotations to a file." --> Annotation_Outputter
    click CLI_Orchestrator href "https://github.com/CodeBoarding/GeneratedOnBoardings/blob/main/pyannotate/CLI_Orchestrator.md" "Details"
Loading

CodeBoardingDemoContact

Details

The CLI Orchestrator operates within the pyannotate_tools.annotations subsystem, which is responsible for the static code transformation phase of pyannotate.

CLI Orchestrator [Expand]

The central control point for the pyannotate_tools.annotations subsystem. It parses command-line arguments, determines the execution mode (either dumping collected type information or applying static annotations to source files), and orchestrates the flow between the different processing stages of the static code transformation phase.

Related Classes/Methods:

Code Modifier

Applies type annotations to source code files based on the collected type information. It leverages the lib2to3 framework for robust code refactoring, ensuring correct and safe modifications.

Related Classes/Methods:

Annotation Outputter

Writes collected type information to a specified output, typically a JSON file, for persistence, debugging, or as an intermediate artifact for other tools.

Related Classes/Methods: