revrt.utilities.parsing.normalize_str_list_input#

normalize_str_list_input(value, name)[source]#

Normalize a string-or-list input to a list of strings

Parameters:
  • value (str or Iterable) – Input value (e.g., a string or a list of strings) to normalize.

  • name (str) – Name of the input value (used for error messages).

Returns:

list or None – A list of strings, or None if the input value is None.

Raises:

revrtTypeError – If the input value is not a string or an iterable of strings.