From 56d590cf4b6eea1156082f406cef1ec0714699d5 Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Tue, 13 Aug 2024 17:45:28 +0200 Subject: [PATCH] silence lint errors --- pdoc/doc_ast.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pdoc/doc_ast.py b/pdoc/doc_ast.py index ff86e8fa..e42bb7ef 100644 --- a/pdoc/doc_ast.py +++ b/pdoc/doc_ast.py @@ -245,7 +245,7 @@ def _parse_class(source: str) -> ast.ClassDef: t = tree.body[0] assert isinstance(t, ast.ClassDef) return t - return ast.ClassDef(body=[], decorator_list=[]) + return ast.ClassDef(body=[], decorator_list=[]) # type: ignore @cache @@ -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(body=[], decorator_list=[]) + return ast.FunctionDef(body=[], decorator_list=[]) # type: ignore def _parse(