(self, txt: str)
| 44 | self.out.write(txt) |
| 45 | |
| 46 | def maybe_dedent(self, txt: str) -> None: |
| 47 | parens = txt.count("(") - txt.count(")") |
| 48 | if parens < 0: |
| 49 | self.indents.pop() |
| 50 | braces = txt.count("{") - txt.count("}") |
| 51 | if braces < 0 or is_label(txt): |
| 52 | self.indents.pop() |
| 53 | |
| 54 | def maybe_indent(self, txt: str) -> None: |
| 55 | parens = txt.count("(") - txt.count(")") |
no test coverage detected