Add typing and a docstring to _lazily_scroll_end

This commit is contained in:
Dave Pearson
2023-03-01 11:05:15 +00:00
parent f7849bd32d
commit db708bf265

View File

@@ -1622,7 +1622,8 @@ class Widget(DOMNode):
# is, we need the layout to work out and then figure out how big
# things are). Because of this we'll create a closure over the call
# here and make our own call to call_after_refresh.
def _lazily_scroll_end():
def _lazily_scroll_end() -> None:
"""Scroll to the end of the widget."""
self._scroll_to(
0,
self.max_scroll_y,