Skip to content

Commit

Permalink
fix errors
Browse files Browse the repository at this point in the history
  • Loading branch information
mhils committed Aug 13, 2024
1 parent 88e289a commit bed56bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pdoc/doc_ast.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit bed56bd

Please sign in to comment.