Skip to content

Commit 41ac572

Browse files
Docstring for Application._invalidate_handler.
1 parent 6f36fe6 commit 41ac572

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

prompt_toolkit/application/application.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,11 @@ def gather_events():
474474

475475
def _invalidate_handler(self, sender):
476476
"""
477-
Handler to allow invalidate to be called with the correct signature.
477+
Handler for invalidate events coming from UIControls.
478+
479+
(This handles the difference in signature between event handler and
480+
`self.invalidate`. It also needs to be a method -not a nested
481+
function-, so that we can remove it again .)
478482
"""
479483
self.invalidate()
480484

0 commit comments

Comments
 (0)