class_docstr: Griffe extension for `@markdown.util.deprecated` decorator support.
class_docstr_tok: ["Griffe","extension","for","`","@","markdown.util.deprecated","`","decorator","support","."]
docstr: Add section to docstrings of deprecated functions.
docstr_tok: ["Add","section","to","docstrings","of","deprecated","functions","."]
code: def on_function_instance(
      self, node: ast.AST | ObjectNode, func: Function
  ) -> None:  # noqa: ARG002
      """Add section to docstrings of deprecated functions."""
      if message := _deprecated(func):
          self._insert_message(func, message)
          func.labels.add("deprecated")
  
file_path: markdown/scripts/griffe_extensions.py
imports: from __future__ import annotations
  import ast
  from typing import TYPE_CHECKING
  import textwrap
  from griffe import Docstring, Extension
  from griffe.docstrings.dataclasses import DocstringSectionAdmonition, DocstringSectionText
label_desc: Use image node_id 3 for calling the DeprecatedExtension obj's underlying member method code with example usage: obj.on_function_instance(node, func) without return types