releso.exceptions.output_styling
- releso.exceptions.output_styling(message: str, stylings: List[Stylings]) str
Style the string according to the given styles.
If ANSI styling is available the message is styled by an the defined styling. Only the first 3 Stylings are actually used the others will be ignored.
Valid stylings can be found in the enum: ReLeSO.exceptions.Stylings
- Parameters:
message (str) – string to style
stylings (List[Stylings]) – Stylings to apply to the message.
- Returns:
ANSI encoded styled message.
- Return type:
(str)