Skip to content

Commit 6910680

Browse files
committed
Fix typos
1 parent 8dbfc8d commit 6910680

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

rich/ansi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ def __init__(self) -> None:
120120
self.style = Style.null()
121121

122122
def decode(self, terminal_text: str) -> Iterable[Text]:
123-
"""Decode ANSI codes in an interable of lines.
123+
"""Decode ANSI codes in an iterable of lines.
124124
125125
Args:
126126
lines (Iterable[str]): An iterable of lines of terminal output.

rich/filesize.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"""Functions for reporting filesizes. Borrowed from https://github.com/PyFilesystem/pyfilesystem2
33
44
The functions declared in this module should cover the different
5-
usecases needed to generate a string representation of a file size
5+
use cases needed to generate a string representation of a file size
66
using several different units. Since there are many standards regarding
77
file size units, three different functions have been implemented.
88

rich/traceback.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ def extract(
337337
from rich import _IMPORT_CWD
338338

339339
def safe_str(_object: Any) -> str:
340-
"""Don't allow exceptions from __str__ to propegate."""
340+
"""Don't allow exceptions from __str__ to propagate."""
341341
try:
342342
return str(_object)
343343
except Exception:

tests/test_tree.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ def test_render_tree_hide_root_win32():
139139
def test_tree_measure():
140140
tree = Tree("foo")
141141
tree.add("bar")
142-
tree.add("musroom risotto")
142+
tree.add("mushroom risotto")
143143
console = Console()
144144
measurement = Measurement.get(console, console.options, tree)
145145
assert measurement == Measurement(11, 19)

tools/cats.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1500,7 +1500,7 @@
15001500
},
15011501
{
15021502
"_id": "5b1b455f841d9700146158db",
1503-
"text": "The Egyptian Mau breed was saved from extinciton when Russian princess Natalie Trubetskaya was given a Mau that was imported from the Middle East. When she emigrated to New York City in 1956, she brought along three Mau cats. She used these kitties to establish the Fatima Egyptian Mau cattery, which produced many of the ancestors of today’s Egyptian Maus in America.",
1503+
"text": "The Egyptian Mau breed was saved from extinction when Russian princess Natalie Trubetskaya was given a Mau that was imported from the Middle East. When she emigrated to New York City in 1956, she brought along three Mau cats. She used these kitties to establish the Fatima Egyptian Mau cattery, which produced many of the ancestors of today’s Egyptian Maus in America.",
15041504
"type": "cat",
15051505
"user": {
15061506
"_id": "5a9ac18c7478810ea6c06381",
@@ -2193,7 +2193,7 @@
21932193
},
21942194
{
21952195
"_id": "5c609758e54902001453302c",
2196-
"text": "According to the American Society for the Prevention of Cruelty of Animals, newborn kittens get all the nutrition they need duing the first four weeks of life fom their mother's milk. If you are taking care of a kitten without its mother, or if the mother isn't producing enough milk, you can feed the kitten a commercial milk substitute.",
2196+
"text": "According to the American Society for the Prevention of Cruelty of Animals, newborn kittens get all the nutrition they need during the first four weeks of life fom their mother's milk. If you are taking care of a kitten without its mother, or if the mother isn't producing enough milk, you can feed the kitten a commercial milk substitute.",
21972197
"type": "cat",
21982198
"user": {
21992199
"_id": "5a9ac18c7478810ea6c06381",
@@ -2656,7 +2656,7 @@
26562656
{
26572657
"_id": "5d38b2510f1c57001592f12e",
26582658
"type": "cat",
2659-
"text": "Courgars are the largest wild cats that can purr.",
2659+
"text": "Cougars are the largest wild cats that can purr.",
26602660
"user": {
26612661
"_id": "5a9ac18c7478810ea6c06381",
26622662
"name": {
@@ -2768,7 +2768,7 @@
27682768
{
27692769
"_id": "5e80e7cc2d4b850015003072",
27702770
"type": "cat",
2771-
"text": "Cats can climb on trees faster than squirels.",
2771+
"text": "Cats can climb on trees faster than squirrels.",
27722772
"user": {
27732773
"_id": "5e80e6c72d4b85001500306e",
27742774
"name": {
@@ -3284,4 +3284,4 @@
32843284
"userUpvoted": null
32853285
}
32863286
]
3287-
}
3287+
}

0 commit comments

Comments
 (0)