Skip to content

Commit 633acce

Browse files
style: auto-fix linting issues
1 parent 707703c commit 633acce

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

codeflash/languages/python/context/unused_definition_remover.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,7 @@ def extract_names_from_targets(target: cst.CSTNode) -> list[str]:
5151
return names
5252

5353

54-
def is_assignment_used(
55-
node: cst.CSTNode,
56-
definitions: dict[str, UsageInfo],
57-
name_prefix: str = "",
58-
) -> bool:
54+
def is_assignment_used(node: cst.CSTNode, definitions: dict[str, UsageInfo], name_prefix: str = "") -> bool:
5955
if isinstance(node, cst.Assign):
6056
for target in node.targets:
6157
names = extract_names_from_targets(target.target)
@@ -521,9 +517,7 @@ def remove_unused_definitions_recursively(
521517
if not section_names:
522518
return node, False
523519
return recurse_sections(
524-
node,
525-
section_names,
526-
lambda child: remove_unused_definitions_recursively(child, definitions),
520+
node, section_names, lambda child: remove_unused_definitions_recursively(child, definitions)
527521
)
528522

529523

0 commit comments

Comments
 (0)