(x: object, additional_info: str = "")
| 63 | If an element of the input is not str, a type error will be raised.""" |
| 64 | |
| 65 | def complain(x: object, additional_info: str = "") -> Never: |
| 66 | raise argparse.ArgumentTypeError( |
| 67 | f"Expected a list or a stringified version thereof, but got: '{x}', of type {type(x).__name__}.{additional_info}" |
| 68 | ) |
| 69 | |
| 70 | if isinstance(v, str): |
| 71 | items = [p.strip() for p in re.split(split_regex, v)] |