yera.runtime.handlers.result.ansi
Render completed result blocks in ANSI terminals.
Symbols
ANSIResultHandler
Inherits:
BaseHandlerRender completed successful and failed results in ANSI terminals.
Successful values are displayed as syntax-highlighted JSON so their serialized types and nested structure remain visible. Failed results show the exception type and message, with the captured traceback when one is available.
Methods
push — Render a completed result event.
ANSIResultHandler.push
push(
event: OutputEvent,
) → NoneRender a completed result event.
Parameters
event
type: OutputEvent
Output event containing successful or failed result data.
Raises
TypeError
If the event does not contain supported result data.