fix: add explicit list[ast.AST] type annotation for stack in collect_existing_class_names
This commit is contained in:
parent
3994f255a9
commit
a508ef6a6c
1 changed files with 1 additions and 1 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in a new issue