From bed56bded3c3cc7ad61ad6bcf6a69299820dfde0 Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Tue, 13 Aug 2024 18:00:10 +0200 Subject: [PATCH] fix errors --- pdoc/doc_ast.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdoc/doc_ast.py b/pdoc/doc_ast.py index 4c4faeff..e4cde15d 100644 --- a/pdoc/doc_ast.py +++ b/pdoc/doc_ast.py @@ -265,7 +265,7 @@ def _parse_function(source: str) -> ast.FunctionDef | ast.AsyncFunctionDef: # we have a lambda function, # to simplify the API return the ast.FunctionDef stub. pass - return ast.FunctionDef(name="pdoc_empty", body=[], decorator_list=[]) # type: ignore + return ast.FunctionDef(name="pdoc_empty", args=ast.arguments(), body=[], decorator_list=[]) # type: ignore def _parse(