diff --git a/src/textual/_xterm_parser.py b/src/textual/_xterm_parser.py index df9112370c..6474cd256d 100644 --- a/src/textual/_xterm_parser.py +++ b/src/textual/_xterm_parser.py @@ -56,7 +56,7 @@ "enter": "\r", "tab": "\t", } -"""Explcit characters for keys, used in Kitty protocol parsing""" +"""Explicit characters for keys, used in Kitty protocol parsing""" class XTermParser(Parser[Message]): diff --git a/src/textual/content.py b/src/textual/content.py index 8d4c65ca97..ec8505b4bf 100644 --- a/src/textual/content.py +++ b/src/textual/content.py @@ -558,7 +558,7 @@ def is_same(self, content: Content) -> bool: def get_optimal_width(self, rules: RulesMap, container_width: int) -> int: """Get optimal width of the Visual to display its content. - The exact definition of "optimal width" is dependant on the Visual, but + The exact definition of "optimal width" is dependent on the Visual, but will typically be wide enough to display output without cropping or wrapping, and without superfluous space. diff --git a/src/textual/geometry.py b/src/textual/geometry.py index b8b065b832..8229383f6a 100644 --- a/src/textual/geometry.py +++ b/src/textual/geometry.py @@ -1321,7 +1321,7 @@ def grow_maximum(self, other: Spacing) -> Spacing: class Shape: """An arbitrary shape defined by a sequence of regions. - This class currently exists to filter widgets within a shape defined when the user is slecting text. + This class currently exists to filter widgets within a shape defined when the user is selecting text. """ diff --git a/src/textual/selection.py b/src/textual/selection.py index 9b586f92e1..72d6a098a0 100644 --- a/src/textual/selection.py +++ b/src/textual/selection.py @@ -258,10 +258,10 @@ def ordered_offsets(self) -> tuple[Offset, Offset]: return start_offset, end_offset def update_end(self, pointer_offset: Offset, select_end: SelectEnd) -> SelectState: - """Update the state with the selction end. + """Update the state with the selection end. Args: - pointer_offset: Current mosue position. + pointer_offset: Current mouse position. select_end: Selection end. Returns: