diff --git a/src/flake8/processor.py b/src/flake8/processor.py index 6b7d3c4..4b96205 100644 --- a/src/flake8/processor.py +++ b/src/flake8/processor.py @@ -218,7 +218,7 @@ class FileProcessor: (previous_row, previous_column) = end return comments, logical, mapping - def build_ast(self) -> ast.AST: + def build_ast(self) -> ast.Module: """Build an abstract syntax tree from the list of lines.""" return ast.parse("".join(self.lines))