streamsight.utils.arg_to_str
- streamsight.utils.arg_to_str(arg: type | str) str
Converts a type to its name or returns the string.
- Parameters:
arg (Union[type, str]) – Argument to convert to string.
- Returns:
String representation of the argument.
- Return type:
str
- Raises:
TypeError – If the argument is not a string or a type.