Returns a function's signature and docstring formatted in markdown.
(cls, func)
| 56 | |
| 57 | |
| 58 | def get_function_docstring(cls, func) -> str: |
| 59 | """Returns a function's signature and docstring formatted in markdown.""" |
| 60 | return f"```python\ndef {cls.__name__}.{func.__name__}{inspect.signature(func)}:\n```\n{get_docstring(func)}\n\n" |
| 61 | |
| 62 | |
| 63 | def get_class_docstring(cls, filter_funcs=()) -> str: |
no test coverage detected