Dedent the text and expand the tabs.
(text: str)
| 31 | return "None" |
| 32 | |
| 33 | def dedent(text: str) -> str: |
| 34 | """ |
| 35 | Dedent the text and expand the tabs. |
| 36 | """ |
| 37 | clean = "\n".join(line.strip() for line in text.splitlines()) |
| 38 | return clean |
| 39 | |
| 40 | def generate_unique_id(prefix: str = "session") -> str: |
| 41 | """Generate a unique id using timestamp and UUID.""" |