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)
| 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 |