@@ -96,9 +96,9 @@ def export_grouped(self, result: AnalysisResult, output_path: str) -> None:
9696 )
9797
9898 def export_data_flow (
99- self , result : AnalysisResult , output_path : str , compact : bool = True
99+ self , result : AnalysisResult , output_path : str , _compact : bool = True
100100 ) -> None :
101- """Export detailed data flow analysis."""
101+ """Export detailed data flow analysis; _compact accepted for API compat ."""
102102 flow_data = self .analyzer .analyze_data_flow (result )
103103 flow_data .update (
104104 {"project_path" : result .project_path , "analysis_type" : "data_flow" }
@@ -115,9 +115,9 @@ def export_data_flow(
115115 )
116116
117117 def export_data_structures (
118- self , result : AnalysisResult , output_path : str , compact : bool = True
118+ self , result : AnalysisResult , output_path : str , _compact : bool = True
119119 ) -> None :
120- """Export data structure analysis."""
120+ """Export data structure analysis; _compact accepted for API compat ."""
121121 structure_data = self .analyzer .analyze_data_structures (result )
122122 structure_data .update (
123123 {"project_path" : result .project_path , "analysis_type" : "data_structures" }
@@ -290,8 +290,8 @@ def _build_nodes(
290290 nodes [fn ] = self ._create_node (fi , fn , calls_in_counts .get (fn , 0 ))
291291 return nodes
292292
293- def _create_node (self , fi : FunctionInfo , fn : str , calls_in : int ) -> Dict :
294- """Create node dict with function metadata."""
293+ def _create_node (self , fi : FunctionInfo , _fn : str , calls_in : int ) -> Dict :
294+ """Create node dict with function metadata; _fn accepted for API compat ."""
295295 return {
296296 "name" : fi .name ,
297297 "module" : fi .module ,
@@ -408,7 +408,6 @@ def _render_calls_header(
408408 self , result : AnalysisResult , nodes : Dict , edges : List , modules : Dict
409409 ) -> List [str ]:
410410 """Render header section for calls.toon.yaml."""
411- nfuncs = len (result .functions )
412411 all_cc = [self ._get_cc (fi ) for fi in result .functions .values ()]
413412 avg_cc = round (sum (all_cc ) / len (all_cc ), 1 ) if all_cc else 0.0
414413
@@ -436,8 +435,8 @@ def _render_hubs(self, nodes: Dict) -> List[str]:
436435 )
437436 return lines
438437
439- def _render_modules (self , modules : Dict , nodes : Dict , edges : List ) -> List [str ]:
440- """Render modules section with functions and call relationships."""
438+ def _render_modules (self , modules : Dict , nodes : Dict , _edges : List ) -> List [str ]:
439+ """Render modules section with functions and call relationships; _edges for API compat ."""
441440 lines = ["MODULES:" ]
442441 for module , funcs in sorted (modules .items ()):
443442 lines .append (f" { module } [{ len (funcs )} funcs]" )
0 commit comments