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"
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:
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:
pyannotate_tools.annotations.__main__.ModifiedRefactoringTool:51-62pyannotate_tools.fixes.fix_annotate_jsonpyannotate_tools.fixes.fix_annotate
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: