Return a new Source object deindented.
(self)
| 102 | return start, end |
| 103 | |
| 104 | def deindent(self) -> "Source": |
| 105 | """Return a new Source object deindented.""" |
| 106 | newsource = Source() |
| 107 | newsource.lines[:] = deindent(self.lines) |
| 108 | return newsource |
| 109 | |
| 110 | def __str__(self) -> str: |
| 111 | return "\n".join(self.lines) |