pydoc_fork

pydoc_fork.reporter.format_class

 

Roughly a UI component for classes

Modules

`from` Modules

Functions

cast(typ, val)
Cast a value to a type.
 
This returns the value unchanged.  To the type checker this
signals that the return value has the designated type, but at
runtime we intentionally don't check anything (we want this
to be as fast as possible).
classify_class_attrs(the_object: pydoc_fork.inspector.custom_types.TypeLike) -> list[tuple[str, str, type, object]]
Wrap inspect.classify_class_attrs, with fixup for data descriptors.
classlink(the_object: pydoc_fork.inspector.custom_types.TypeLike | type, modname: str) -> str
Make a link for a class.
classname(the_object: pydoc_fork.inspector.custom_types.TypeLike | type, modname: str) -> str
Get a class name and qualify it with a module name if necessary.
docclass(the_object: pydoc_fork.inspector.custom_types.TypeLike, name: str = '', mod: str = '', funcs: dict[str, str] | None = None, classes: dict[str, str] | None = None) -> str
Produce HTML documentation for a class object.
docother(the_object: pydoc_fork.inspector.custom_types.TypeLike, name: str = '') -> str
Produce HTML documentation for a data object.
document_data(the_object: pydoc_fork.inspector.custom_types.TypeLike, name: str = '') -> str
Produce html documentation for a data descriptor.
format_tree(tree: list[typing.Any], modname: str, parent: Any | None = None) -> str
Creates a representation of class inheritance.
getdoc(the_object: pydoc_fork.inspector.custom_types.TypeLike) -> str
Get the doc string or comments for an object.
markup(text: str, funcs: dict[Any, str] | None = None, classes: dict[Any, str] | None = None, methods: dict[Any, str] | None = None) -> str
Replace all linkable things with links of appropriate syntax.
 
Handle either an ad hoc markup language, or RST or Markdown.
funcs, classes, methods are name/symbol to URL maps.
section(title: str, contents: str = '', width: int = 6, prelude: str = '', marginalia: str = '', gap: str = ' ', section_class: str = 'theme-sub-section') -> str
Format a section with a heading.
sort_attributes(attrs: list[typing.Any], the_object: pydoc_fork.inspector.custom_types.TypeLike | type) -> None
Sort the attrs list in-place by _fields and then alphabetically by name
visiblename(name: str, all_things: list[str] | None = None, obj: Any | None = None) -> bool
Decide whether to show documentation on a variable.

Data

JINJA_ENV = <jinja2.environment.Environment object>