fix: add explicit list[ast.AST] type annotation for stack in collect_existing_class_names

This commit is contained in:
claude[bot] 2026-03-16 23:33:30 +00:00
parent 3994f255a9
commit a508ef6a6c

View file

@ -577,7 +577,7 @@ def _parse_and_collect_imports(code_context: CodeStringsMarkdown) -> tuple[ast.M
def collect_existing_class_names(tree: ast.Module) -> set[str]:
class_names = set()
stack = [tree]
stack: list[ast.AST] = [tree]
while stack:
node = stack.pop()