class_docstr: Render documentation for an attribute (layout.DocAttribute)
class_docstr_tok: ["Render","documentation","for","an","attribute","(","layout.DocAttribute",")"]
code: def render_signature(self) -> Block:
      if self.kind in ("type", "typevar"):
          return self.render_type_signature()
  
      name = self.signature_name if self.show_signature_name else ""
      annotation = (
          pretty_code(str(self.render_annotation()))
          if self.show_signature_annotation
          else ""
      )
      declaration = str(
          self.render_variable_definition(
              name, annotation, self.obj.value
          )
      )
      return Div(
          Code(declaration).html, Attr(classes=["doc-signature"])
      )
  
file_path: plotnine/doc/_renderers/render/docattribute.py
imports: from __future__ import annotations
  from dataclasses import dataclass
  from typing import TYPE_CHECKING
  from quartodoc.pandoc.blocks import Block, Div
  from quartodoc.pandoc.components import Attr
  from quartodoc.pandoc.inlines import Code
  from ..format import interlink_identifiers, pretty_code
  from .doc import RenderDoc
label_desc: Use image node_id 2 for calling the __RenderDocAttribute obj's underlying member method code with example usage: obj.render_signature() and returns: Div, self