fitzzftw.patch.protocols.LineLike¶
---
config:
height: 300px
width: 300px
title: LineLike
---
classDiagram
Protocol <|-- LineLike
Inheritage diagramm for LineLike¶
- class LineLike[source]¶
Bases:
ProtocolProtocol defining the minimal interface for a line object to be printable.
Objects implementing this protocol are compatible with the
TerminalColorMixin.print()and can be processed by the framework’s diagnostic output tools.Methods
__init__(*args, **kwargs)Attributes
The lookup key for the
_color_map.The actual string content that will be output to the terminal.
- __init__(*args, **kwargs)¶
- _color_map: dict[str, 'red' | 'green' | 'yellow' | 'cyan' | 'terminal']¶
Dictionary mapping prefixes to semantic color keys.
- prefix: str | None¶
The lookup key for the
_color_map.