(self, cls: type)
| 650 | self.do_cmd((cmd, [])) |
| 651 | |
| 652 | def last_command_is(self, cls: type) -> bool: |
| 653 | if not self.last_command: |
| 654 | return False |
| 655 | return issubclass(cls, self.last_command) |
| 656 | |
| 657 | def restore(self) -> None: |
| 658 | """Clean up after a run.""" |