format_other.py

#

Fallback docs

from pydoc_fork.custom_types import TypeLike
from pydoc_fork.formatter_html import html_repr
#

Produce HTML documentation for a data object.

def docother(
    the_object: TypeLike,
    name: str = "",  # Null safety,
) -> str:
#
    lhs = name and f"<strong>{name}</strong> = " or ""
    return lhs + html_repr(the_object)