From 3122748303a10480938172c53a6e129df3e1a80d Mon Sep 17 00:00:00 2001 From: Dave Pearson Date: Wed, 1 Mar 2023 14:47:56 +0000 Subject: [PATCH] Tidy up the docstring of Widget.scroll_page_up Delivering on a promise made in #1920. --- src/textual/widget.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/textual/widget.py b/src/textual/widget.py index 012fd919b0..5a848f72d3 100644 --- a/src/textual/widget.py +++ b/src/textual/widget.py @@ -1892,12 +1892,11 @@ def scroll_page_up( """Scroll one page up. Args: - animate: Animate scroll. Defaults to True. - speed: Speed of scroll if animate is True. Or None to use duration. - duration: Duration of animation, if animate is True and speed is None. - easing: An easing method for the scrolling animation. Defaults to "None", - which will result in Textual choosing the configured default scrolling easing function. - force: Force scrolling even when prohibited by overflow styling. Defaults to `False`. + animate: Animate scroll. + speed: Speed of scroll if animate is `True`; or `None` to use `duration`. + duration: Duration of animation, if `animate` is `True` and `speed` is `None`. + easing: An easing method for the scrolling animation. + force: Force scrolling even when prohibited by overflow styling. """ self.scroll_to( y=self.scroll_y - self.container_size.height,