@@ -261,13 +261,13 @@ def _analyze_data_types(result: AnalysisResult) -> list:
261261_NAME_TYPE_KEYWORDS : List [tuple ] = [
262262 ("list" , ("list" , "items" )),
263263 ("dict" , ("dict" , "map" )),
264- ("str" , ("text" , "string" )),
265- ("int" , ("count" , "index" )),
264+ ("str" , ("text" , "string" )),
265+ ("int" , ("count" , "index" )),
266266]
267267_DOC_TYPE_KEYWORDS : List [tuple ] = [
268268 ("list" , ("list" ,)),
269269 ("dict" , ("dict" ,)),
270- ("str" , ("string" , "text" )),
270+ ("str" , ("string" , "text" )),
271271]
272272
273273
@@ -353,8 +353,12 @@ def _type_consolidations(data_types: list) -> list:
353353 if len (sims ) > 1 :
354354 usage = sum (s ["usage_count" ] for s in sims )
355355 if usage > 10 :
356- result .append ({"type_signature" : sig , "similar_types" : [s ["type_name" ] for s in sims ],
357- "total_usage" : usage , "potential_reduction" : len (sims ) - 1 })
356+ result .append ({
357+ "type_signature" : sig ,
358+ "similar_types" : [s ["type_name" ] for s in sims ],
359+ "total_usage" : usage ,
360+ "potential_reduction" : len (sims ) - 1 ,
361+ })
358362 return result
359363
360364
0 commit comments