MCPcopy Index your code
hub / github.com/RustPython/RustPython / last_command_is

Method last_command_is

Lib/_pyrepl/reader.py:652–655  ·  view source on GitHub ↗
(self, cls: type)

Source from the content-addressed store, hash-verified

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."""

Callers 1

doMethod · 0.80

Calls 1

issubclassFunction · 0.85

Tested by

no test coverage detected