diff --git a/pdoc/doc_ast.py b/pdoc/doc_ast.py index e4cde15d..fe008d6f 100644 --- a/pdoc/doc_ast.py +++ b/pdoc/doc_ast.py @@ -265,7 +265,9 @@ 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", args=ast.arguments(), body=[], decorator_list=[]) # type: ignore + return ast.FunctionDef( + name="pdoc_empty", args=ast.arguments(), body=[], decorator_list=[] + ) # type: ignore def _parse( diff --git a/test/testdata/enums.txt b/test/testdata/enums.txt index 44aeb4d5..fbc939ac 100644 --- a/test/testdata/enums.txt +++ b/test/testdata/enums.txt @@ -17,7 +17,7 @@ > - + @@ -35,7 +35,7 @@ - + @@ -43,16 +43,16 @@ - + - + - + - - + + @@ -61,8 +61,8 @@ - - + + @@ -78,8 +78,8 @@ - - + + > > \ No newline at end of file diff --git a/test/testdata/flavors_google.txt b/test/testdata/flavors_google.txt index 7b0720ad..7a8e477b 100644 --- a/test/testdata/flavors_google.txt +++ b/test/testdata/flavors_google.txt @@ -10,7 +10,7 @@ - + > - + > v, r…> - a set-li…> - a set-l…> - an obj…> + + + - None. …> - a shallo…> + + > diff --git a/test/testdata/misc_py311.txt b/test/testdata/misc_py311.txt index bd38268c..27b58aee 100644 --- a/test/testdata/misc_py311.txt +++ b/test/testdata/misc_py311.txt @@ -1,8 +1,8 @@ - - + + > > \ No newline at end of file diff --git a/test/testdata/misc_py312.txt b/test/testdata/misc_py312.txt index fc7d488f..415a981b 100755 --- a/test/testdata/misc_py312.txt +++ b/test/testdata/misc_py312.txt @@ -16,13 +16,13 @@ v, r…> - a set-li…> - a set-l…> - an obj…> + + + - None. …> - a shallo…> + + > @@ -32,12 +32,12 @@ v, r…> - a set-li…> - a set-l…> - an obj…> + + + - None. …> - a shallo…> + + > > \ No newline at end of file