From 6cc24cb046c93c967b086b13e952cc68b547b6f0 Mon Sep 17 00:00:00 2001 From: TomJGooding <101601846+TomJGooding@users.noreply.github.com> Date: Tue, 27 Aug 2024 16:51:21 +0100 Subject: [PATCH] maybe -> may be --- src/textual/widget.py | 4 ++-- src/textual/widgets/_directory_tree.py | 2 +- src/textual/widgets/_tree.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/textual/widget.py b/src/textual/widget.py index 046cddc9df..9296d20865 100644 --- a/src/textual/widget.py +++ b/src/textual/widget.py @@ -639,7 +639,7 @@ def allow_focus(self) -> bool: """Check if the widget is permitted to focus. The base class returns [`can_focus`][textual.widget.Widget.can_focus]. - This method maybe overridden if additional logic is required. + This method may be overridden if additional logic is required. Returns: `True` if the widget may be focused, or `False` if it may not be focused. @@ -650,7 +650,7 @@ def allow_focus_children(self) -> bool: """Check if a widget's children may be focused. The base class returns [`can_focus_children`][textual.widget.Widget.can_focus_children]. - This method maybe overridden if additional logic is required. + This method may be overridden if additional logic is required. Returns: `True` if the widget's children may be focused, or `False` if the widget's children may not be focused. diff --git a/src/textual/widgets/_directory_tree.py b/src/textual/widgets/_directory_tree.py index 16f9d0a100..de685a8380 100644 --- a/src/textual/widgets/_directory_tree.py +++ b/src/textual/widgets/_directory_tree.py @@ -336,7 +336,7 @@ async def watch_path(self) -> None: await self.reload() def process_label(self, label: TextType) -> Text: - """Process a str or Text into a label. Maybe overridden in a subclass to modify how labels are rendered. + """Process a str or Text into a label. May be overridden in a subclass to modify how labels are rendered. Args: label: Label. diff --git a/src/textual/widgets/_tree.py b/src/textual/widgets/_tree.py index c424d9889d..18c11e6832 100644 --- a/src/textual/widgets/_tree.py +++ b/src/textual/widgets/_tree.py @@ -706,7 +706,7 @@ def last_line(self) -> int: def process_label(self, label: TextType) -> Text: """Process a `str` or `Text` value into a label. - Maybe overridden in a subclass to change how labels are rendered. + May be overridden in a subclass to change how labels are rendered. Args: label: Label.