(self, obj: Function | Class, message: str)
| 23 | """Griffe extension for `@markdown.util.deprecated` decorator support.""" |
| 24 | |
| 25 | def _insert_message(self, obj: Function | Class, message: str) -> None: |
| 26 | if not obj.docstring: |
| 27 | obj.docstring = Docstring("", parent=obj) |
| 28 | sections = obj.docstring.parsed |
| 29 | sections.insert(0, DocstringSectionAdmonition(kind="warning", text=message, title="Deprecated")) |
| 30 | |
| 31 | def on_class_instance(self, node: ast.AST | ObjectNode, cls: Class, agent: Visitor | Inspector, **kwargs: Any) -> None: # noqa: ARG002 |
| 32 | """Add section to docstrings of deprecated classes.""" |
no outgoing calls
no test coverage detected