MCPcopy Index your code
hub / github.com/bpython/bpython / NoInteraction

Class NoInteraction

bpython/repl.py:358–371  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

356
357
358class NoInteraction(Interaction):
359 def __init__(self, config: Config):
360 super().__init__(config)
361
362 def confirm(self, s: str) -> bool:
363 return False
364
365 def notify(
366 self, s: str, n: float = 10.0, wait_for_keypress: bool = False
367 ) -> None:
368 pass
369
370 def file_prompt(self, s: str) -> str | None:
371 return None
372
373
374class SourceNotFound(Exception):

Callers 1

__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected