pdoc/doc.py
def decorators(self) -> list[str]:
        """A list of all decorators the function is decorated with."""
        decorators = []
        # noinspection PyTypeChecker
        obj: types.FunctionType = self.obj  # type: ignore
        for t in doc_ast.parse(obj).decorator_list:
            decorators.append(f"@{doc_ast.unparse(t)}")
        return decorators
A list of all decorators the function is decorated with.
A list of all decorators the function is decorated with.
A list of all decorators the function is decorated with .
def decorators(self) -> list[str]:
        decorators = []
        obj: types.FunctionType = self.obj  
        for t in doc_ast.parse(obj).decorator_list:
            decorators.append(f"@{doc_ast.unparse(t)}")
        return decorators
def decorators ( self ) -> list [ str ] : decorators = [ ] obj : types . FunctionType = self . obj for t in doc_ast . parse ( obj ) . decorator_list : decorators . append ( f"@{doc_ast.unparse(t)}" ) return decorators
A list of all decorators the function is decorated with.
A list of all decorators the function is decorated with .
"""A list of all decorators the function is decorated with.""" # noinspection PyTypeChecker # type: ignore
self