Skip to content

Commit 06dbeef

Browse files
authored
Merge pull request #6636 from maxtaran2010/fix-typos-in-docstrings
fix typos in docstrings and comments
2 parents 1d99508 + 8467453 commit 06dbeef

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/textual/_xterm_parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
"enter": "\r",
5757
"tab": "\t",
5858
}
59-
"""Explcit characters for keys, used in Kitty protocol parsing"""
59+
"""Explicit characters for keys, used in Kitty protocol parsing"""
6060

6161

6262
class XTermParser(Parser[Message]):

src/textual/content.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,7 @@ def is_same(self, content: Content) -> bool:
558558
def get_optimal_width(self, rules: RulesMap, container_width: int) -> int:
559559
"""Get optimal width of the Visual to display its content.
560560
561-
The exact definition of "optimal width" is dependant on the Visual, but
561+
The exact definition of "optimal width" is dependent on the Visual, but
562562
will typically be wide enough to display output without cropping or wrapping,
563563
and without superfluous space.
564564

src/textual/geometry.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1321,7 +1321,7 @@ def grow_maximum(self, other: Spacing) -> Spacing:
13211321
class Shape:
13221322
"""An arbitrary shape defined by a sequence of regions.
13231323
1324-
This class currently exists to filter widgets within a shape defined when the user is slecting text.
1324+
This class currently exists to filter widgets within a shape defined when the user is selecting text.
13251325
13261326
"""
13271327

src/textual/selection.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -258,10 +258,10 @@ def ordered_offsets(self) -> tuple[Offset, Offset]:
258258
return start_offset, end_offset
259259

260260
def update_end(self, pointer_offset: Offset, select_end: SelectEnd) -> SelectState:
261-
"""Update the state with the selction end.
261+
"""Update the state with the selection end.
262262
263263
Args:
264-
pointer_offset: Current mosue position.
264+
pointer_offset: Current mouse position.
265265
select_end: Selection end.
266266
267267
Returns:

0 commit comments

Comments
 (0)