pydoc_fork.reporter.html_repr_class
index
../../pydoc_fork/reporter/html_repr_class.py

Class for safely making an HTML representation of a Python object.

 
Modules
 
pydoc_fork.reporter.inline_styles
re

 
`from` Modules
 
reprlib
pydoc_fork.reporter.string_utils

 
Classes
 
reprlib.Repr(builtins.object)
HTMLRepr(reprlib.Repr)

 
class HTMLRepr(reprlib.Repr)
HTMLRepr() -> None
 
Class for safely making an HTML representation of a Python object.
 
 
Method resolution order:
HTMLRepr
reprlib.Repr
builtins.object

Methods defined here:
__init__(self) -> None
Some maximums
repr(self, x: Any) -> str
Delegates to Repr.repr
repr1(self, x: Any, level: int) -> str
Not sure, is dead code?
repr_instance(self, x: Any, level: int) -> str
Repr, but squash it into a window
repr_str = repr_string(self, x: str, _: int) -> str
repr_string(self, x: str, _: int) -> str
Repr, but squash it into a window
repr_unicode = repr_string(self, x: str, _: int) -> str

Static methods defined here:
escape(text: str) -> str
Simple html escaping

Methods inherited from reprlib.Repr:
repr_array(self, x, level)
repr_deque(self, x, level)
repr_dict(self, x, level)
repr_frozenset(self, x, level)
repr_int(self, x, level)
repr_list(self, x, level)
repr_set(self, x, level)
repr_tuple(self, x, level)

 
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).
cram(text: str, maximum_length: int) -> str
Omit part of a string if needed to make it fit in a maximum length.
replace(text: str, *pairs: str) -> str
Do a series of global replacements on a string.
>>> replace("abc xyz", "xyz", "abc")
'abc abc'
stripid(text: str) -> str
Remove the hexadecimal id from a Python object representation.