class_docstr: Griffe extension for `@markdown.util.deprecated` decorator support.
class_docstr_tok: ["Griffe","extension","for","`","@","markdown.util.deprecated","`","decorator","support","."]
code: def _insert_message(
      self, obj: Function | Class, message: str
  ) -> None:
      if not obj.docstring:
          obj.docstring = Docstring("", parent=obj)
      sections = obj.docstring.parsed
      sections.insert(
          0,
          DocstringSectionAdmonition(
              kind="warning", text=message, title="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 1 for calling the DeprecatedExtension obj's underlying member method code with example usage: obj._insert_message(obj, message) without return types