MCPcopy Index your code
hub / github.com/python/cpython / last_command_is

Method last_command_is

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

Source from the content-addressed store, hash-verified

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

Callers 1

doMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected