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

Method _schedule_refresh

bpython/curtsiesfrontend/repl.py:493–502  ·  view source on GitHub ↗

Arrange for the bpython display to be refreshed soon. This method will be called when the Repl wants the display to be refreshed at a known point in the future, and as such it should interrupt a pending request to the user for input. Because the worst-case effect of

(self, when: float)

Source from the content-addressed store, hash-verified

491 return (50, 10)
492
493 def _schedule_refresh(self, when: float):
494 """Arrange for the bpython display to be refreshed soon.
495
496 This method will be called when the Repl wants the display to be
497 refreshed at a known point in the future, and as such it should
498 interrupt a pending request to the user for input.
499
500 Because the worst-case effect of not refreshing
501 is only having an out of date UI until the user enters input, a
502 default NOP implementation is provided."""
503
504 # The methods below must be overridden in subclasses.
505

Callers 1

schedule_refreshMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected