Cleanup: suppress unused Python warnings
Suppress unused warnings using the "vulture" utility. - Include public definitions in the modules `__all__`. - Mark arguments & variables as unused with a "_" prefix.
This commit is contained in:
@@ -239,7 +239,7 @@ def compute_summary(data_by_source_file, source_file_order):
|
||||
if execution_count > 0:
|
||||
run_lines.add(line_index)
|
||||
|
||||
for function_name, instantiation_fdata in fdata["instantiations"].items():
|
||||
for _function_name, instantiation_fdata in fdata["instantiations"].items():
|
||||
num_instantiated_functions += 1
|
||||
if instantiation_fdata["execution_count"] > 0:
|
||||
num_instantiated_functions_run += 1
|
||||
|
||||
Reference in New Issue
Block a user