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

Method _schedule_refresh

doc/sphinx/source/simplerepl.py:50–55  ·  view source on GitHub ↗
(self, when="now")

Source from the content-addressed store, hash-verified

48 self.requested_events.append(bpythonevents.RefreshRequestEvent())
49
50 def _schedule_refresh(self, when="now"):
51 if when == "now":
52 self.request_refresh()
53 else:
54 dt = round(when - time.time(), 1)
55 self.out(f"please refresh in {dt} seconds")
56
57 def _request_reload(self, files_modified=("?",)):
58 e = bpythonevents.ReloadEvent()

Callers

nothing calls this directly

Calls 2

outMethod · 0.95
request_refreshMethod · 0.80

Tested by

no test coverage detected