Skip to content

Commit

Permalink
maybe -> may be
Browse files Browse the repository at this point in the history
  • Loading branch information
TomJGooding committed Aug 27, 2024
1 parent 3316eb7 commit 6cc24cb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/textual/widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion src/textual/widgets/_directory_tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion src/textual/widgets/_tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 6cc24cb

Please sign in to comment.