Skip to content

Commit 2d98a45

Browse files
authored
Merge pull request #6115 from TomJGooding/docs-fix-misc-typos
docs: fix miscellaneous typos
2 parents 288c309 + 3f91935 commit 2d98a45

File tree

5 files changed

+4
-7
lines changed

5 files changed

+4
-7
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
5050

5151
### Added
5252

53-
- Added `bar_renderable` to `ProgressBar` widget https://github.com/Textualize/textual/pull/5963
53+
- Added `BAR_RENDERABLE` to `ProgressBar` widget https://github.com/Textualize/textual/pull/5963
5454
- Added `OptionList.set_options` https://github.com/Textualize/textual/pull/6048
5555
- Added `TextArea.suggestion` https://github.com/Textualize/textual/pull/6048
5656
- Added `TextArea.placeholder` https://github.com/Textualize/textual/pull/6048

docs/how-to/design-a-layout.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Textual's layout system is flexible enough to accommodate just about any applica
1010
The initial design of your application is best done with a sketch.
1111
You could use a drawing package such as [Excalidraw](https://excalidraw.com/) for your sketch, but pen and paper is equally as good.
1212

13-
Start by drawing a rectangle to represent a blank terminal, then draw a rectangle for each element in your application. Annotate each of the rectangles with the content they will contain, and note wether they will scroll (and in what direction).
13+
Start by drawing a rectangle to represent a blank terminal, then draw a rectangle for each element in your application. Annotate each of the rectangles with the content they will contain, and note whether they will scroll (and in what direction).
1414

1515
For the purposes of this article we are going to design a layout for a Twitter or Mastodon client, which will have a header / footer and a number of columns.
1616

src/textual/widget.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1267,7 +1267,7 @@ def render_str(self, text_content: str | Content) -> Content:
12671267
def arrange(self, size: Size, optimal: bool = False) -> DockArrangeResult:
12681268
"""Arrange child widgets.
12691269
1270-
This method is best left along, unless you have a deep understanding of what it does.
1270+
This method is best left alone, unless you have a deep understanding of what it does.
12711271
12721272
Args:
12731273
size: Size of container.

src/textual/widgets/_button.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,6 @@ def success(
398398
399399
Args:
400400
label: The text that appears within the button.
401-
disabled: Whether the button is disabled or not.
402401
name: The name of the button.
403402
id: The ID of the button in the DOM.
404403
classes: The CSS classes of the button.
@@ -434,7 +433,6 @@ def warning(
434433
435434
Args:
436435
label: The text that appears within the button.
437-
disabled: Whether the button is disabled or not.
438436
name: The name of the button.
439437
id: The ID of the button in the DOM.
440438
classes: The CSS classes of the button.
@@ -470,7 +468,6 @@ def error(
470468
471469
Args:
472470
label: The text that appears within the button.
473-
disabled: Whether the button is disabled or not.
474471
name: The name of the button.
475472
id: The ID of the button in the DOM.
476473
classes: The CSS classes of the button.

src/textual/widgets/_option_list.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ def option_count(self) -> int:
313313

314314
@property
315315
def highlighted_option(self) -> Option | None:
316-
"""The currently highlighted options, or `None` if no option is highlighted,
316+
"""The currently highlighted option, or `None` if no option is highlighted.
317317
318318
Returns:
319319
An Option, or `None`.

0 commit comments

Comments
 (0)