Skip to content

Commit e66c098

Browse files
authored
Merge pull request #6240 from TomJGooding/docs-fix-misc-typos
docs: fix miscellaneous typos
2 parents 422852a + 9f1673f commit e66c098

File tree

16 files changed

+20
-21
lines changed

16 files changed

+20
-21
lines changed

docs/FAQ.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ We recommend any of the following terminals:
297297

298298
Textual will not generate escape sequences for the 16 themeable *ANSI* colors.
299299

300-
This is an intentional design decision we took for for the following reasons:
300+
This is an intentional design decision we took for the following reasons:
301301

302302
- Not everyone has a carefully chosen ANSI color theme. Color combinations which may look fine on your system, may be unreadable on another machine. There is very little an app author or Textual can do to resolve this. Asking users to simply pick a better theme is not a good solution, since not all users will know how.
303303
- ANSI colors can't be manipulated in the way Textual can do with other colors. Textual can blend colors and produce light and dark shades from an original color, which is used to create more readable text and user interfaces. Color blending will also be used to power future accessibility features.

docs/css_types/position.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# <position>
22

3-
The `<position>` CSS type defines how the the `offset` rule is applied..
3+
The `<position>` CSS type defines how the `offset` rule is applied.
44

55

66
## Syntax

docs/guide/styles.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ In addition to color names, you can also use any of the following ways of expres
6262

6363
- RGB hex colors starts with a `#` followed by three pairs of one or two hex digits; one for the red, green, and blue color components. For example, `#f00` is an intense red color, and `#9932CC` is *dark orchid*.
6464
- RGB decimal color start with `rgb` followed by a tuple of three numbers in the range 0 to 255. For example `rgb(255,0,0)` is intense red, and `rgb(153,50,204)` is *dark orchid*.
65-
- HSL colors start with `hsl` followed by a angle between 0 and 360 and two percentage values, representing Hue, Saturation and Lightness. For example `hsl(0,100%,50%)` is intense red and `hsl(280,60%,49%)` is *dark orchid*.
65+
- HSL colors start with `hsl` followed by an angle between 0 and 360 and two percentage values, representing Hue, Saturation and Lightness. For example `hsl(0,100%,50%)` is intense red and `hsl(280,60%,49%)` is *dark orchid*.
6666

6767

6868
The background and color styles also accept a [Color][textual.color.Color] object which can be used to create colors dynamically.

docs/guide/widgets.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ Setting `border_title` will display text within the top border, and setting `bor
165165
The default value for these attributes is empty string, which disables the title.
166166
You can change the default value for the title attributes with the [`BORDER_TITLE`][textual.widget.Widget.BORDER_TITLE] and [`BORDER_SUBTITLE`][textual.widget.Widget.BORDER_SUBTITLE] class variables.
167167

168-
Let's demonstrate setting a title, both as a class variable and a instance variable:
168+
Let's demonstrate setting a title, both as a class variable and an instance variable:
169169

170170

171171
=== "hello06.py"

docs/how-to/style-inline-apps.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Your apps will typically run inline without modification, but you may want to ma
99
This How-To will explain how.
1010

1111
Let's look at an inline app.
12-
The following app displays the the current time (and keeps it up to date).
12+
The following app displays the current time (and keeps it up to date).
1313

1414
```python hl_lines="31"
1515
--8<-- "docs/examples/how-to/inline01.py"

src/textual/app.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,7 @@ def __init__(
561561
will be loaded in order.
562562
watch_css: Reload CSS if the files changed. This is set automatically if
563563
you are using `textual run` with the `dev` switch.
564-
ansi_color: Allow ANSI colors if `True`, or convert ANSI colors to to RGB if `False`.
564+
ansi_color: Allow ANSI colors if `True`, or convert ANSI colors to RGB if `False`.
565565
566566
Raises:
567567
CssPathError: When the supplied CSS path(s) are an unexpected type.
@@ -1824,7 +1824,7 @@ def deliver_screenshot(
18241824
) -> str | None:
18251825
"""Deliver a screenshot of the app.
18261826
1827-
This with save the screenshot when running locally, or serve it when the app
1827+
This will save the screenshot when running locally, or serve it when the app
18281828
is running in a web browser.
18291829
18301830
Args:
@@ -3438,7 +3438,6 @@ def _register_child(
34383438
Args:
34393439
parent: Parent node.
34403440
child: The child widget to register.
3441-
widgets: The widget to register.
34423441
before: A location to mount before.
34433442
after: A location to mount after.
34443443
"""

src/textual/css/styles.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ class StylesBase:
283283
"""
284284

285285
layout = LayoutProperty()
286-
"""Set the layout of the widget, defining how it's children are laid out.
286+
"""Set the layout of the widget, defining how its children are laid out.
287287
288288
Valid values are "grid", "stream", "horizontal", or "vertical" or None to clear any layout
289289
that was set at runtime.
@@ -395,7 +395,7 @@ class StylesBase:
395395
transitions = TransitionsProperty()
396396

397397
tint = ColorProperty("transparent")
398-
"""Set the tint of the widget. This allows you apply a opaque color above the widget.
398+
"""Set the tint of the widget. This allows you apply an opaque color above the widget.
399399
400400
You can specify an opacity after a color e.g. "blue 10%"
401401
"""

src/textual/dom.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1134,7 +1134,7 @@ def check_consume_key(self, key: str, character: str | None) -> bool:
11341134
def _get_title_style_information(
11351135
self, background: Color
11361136
) -> tuple[Color, Color, VisualStyle]:
1137-
"""Get a Visual Style object for for titles.
1137+
"""Get a Visual Style object for titles.
11381138
11391139
Args:
11401140
background: The background color.
@@ -1157,7 +1157,7 @@ def _get_title_style_information(
11571157
def _get_subtitle_style_information(
11581158
self, background: Color
11591159
) -> tuple[Color, Color, VisualStyle]:
1160-
"""Get a Rich Style object for for titles.
1160+
"""Get a Rich Style object for subtitles.
11611161
11621162
Args:
11631163
background: The background color.

src/textual/screen.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -730,7 +730,7 @@ def clear_selection(self) -> None:
730730
self._select_end = None
731731

732732
def _select_all_in_widget(self, widget: Widget) -> None:
733-
"""Select a widget and all it's children.
733+
"""Select a widget and all its children.
734734
735735
Args:
736736
widget: Widget to select.

src/textual/scroll_view.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class ScrollView(ScrollableContainer):
1919
2020
!!! note
2121
22-
This is the typically wrong class for making something scrollable. If you want to make something scroll, set it's
22+
This is the typically wrong class for making something scrollable. If you want to make something scroll, set its
2323
`overflow` style to auto or scroll. Or use one of the pre-defined scrolling containers such as [VerticalScroll][textual.containers.VerticalScroll].
2424
"""
2525

0 commit comments

Comments
 (0)