omnipy.components.raw.protocols
Protocols for raw-text content transformation callbacks.
| CLASS | DESCRIPTION |
|---|---|
IsModifyAllLinesCallable |
Protocol for callbacks that rewrite a list of lines in bulk. |
IsModifyContentCallable |
Protocol for callbacks that rewrite an entire raw content item. |
IsModifyEachLineCallable |
Protocol for callbacks that rewrite one line at a time. |
IsModifyAllLinesCallable
Bases: Protocol
flowchart BT
omnipy.components.raw.protocols.IsModifyAllLinesCallable[IsModifyAllLinesCallable]
click omnipy.components.raw.protocols.IsModifyAllLinesCallable href "" "omnipy.components.raw.protocols.IsModifyAllLinesCallable"
Protocol for callbacks that rewrite a list of lines in bulk.
Used by:
- Reference Code reference
Source code in src/omnipy/components/raw/protocols.py
IsModifyContentCallable
Bases: Protocol
flowchart BT
omnipy.components.raw.protocols.IsModifyContentCallable[IsModifyContentCallable]
click omnipy.components.raw.protocols.IsModifyContentCallable href "" "omnipy.components.raw.protocols.IsModifyContentCallable"
Protocol for callbacks that rewrite an entire raw content item.
Used by:
- Reference Code reference
Source code in src/omnipy/components/raw/protocols.py
IsModifyEachLineCallable
Bases: Protocol
flowchart BT
omnipy.components.raw.protocols.IsModifyEachLineCallable[IsModifyEachLineCallable]
click omnipy.components.raw.protocols.IsModifyEachLineCallable href "" "omnipy.components.raw.protocols.IsModifyEachLineCallable"
Protocol for callbacks that rewrite one line at a time.
Used by:
- Reference Code reference