(self, cls: type)
| 607 | self.do_cmd((cmd, [])) |
| 608 | |
| 609 | def last_command_is(self, cls: type) -> bool: |
| 610 | if not self.last_command: |
| 611 | return False |
| 612 | return issubclass(cls, self.last_command) |
| 613 | |
| 614 | def restore(self) -> None: |
| 615 | """Clean up after a run.""" |