(lines: Union[List[str], str])
| 215 | |
| 216 | |
| 217 | def ident_lines(lines: Union[List[str], str]): |
| 218 | is_str = type(lines) is str |
| 219 | if is_str: |
| 220 | lines = lines.split("\n") |
| 221 | lines = [ident(line) for line in lines] |
| 222 | return lines if not is_str else "\n".join(lines) |
| 223 | |
| 224 | |
| 225 | def ident(line: str): |