Skip to content

Commit c37505d

Browse files
authored
Apply suggestion from @aseembits93
1 parent dd4577c commit c37505d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

codeflash/code_utils/code_extractor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ def resolve_star_import(module_name: str, project_root: Path) -> set[str]:
449449
and isinstance(node.targets[0], ast.Name)
450450
and node.targets[0].id == "__all__"
451451
):
452-
if isinstance(node.value, (ast.list, ast.tuple)):
452+
if isinstance(node.value, (ast.List, ast.Tuple)):
453453
all_names = []
454454
for elt in node.value.elts:
455455
if isinstance(elt, ast.Constant) and isinstance(elt.value, str):

0 commit comments

Comments
 (0)