Fix typos

This commit is contained in:
Calum Young 2022-09-04 10:58:02 +01:00
parent 8dbfc8d0f4
commit 6910680877
5 changed files with 9 additions and 9 deletions

View file

@ -120,7 +120,7 @@ class AnsiDecoder:
self.style = Style.null()
def decode(self, terminal_text: str) -> Iterable[Text]:
"""Decode ANSI codes in an interable of lines.
"""Decode ANSI codes in an iterable of lines.
Args:
lines (Iterable[str]): An iterable of lines of terminal output.

View file

@ -2,7 +2,7 @@
"""Functions for reporting filesizes. Borrowed from https://github.com/PyFilesystem/pyfilesystem2
The functions declared in this module should cover the different
usecases needed to generate a string representation of a file size
use cases needed to generate a string representation of a file size
using several different units. Since there are many standards regarding
file size units, three different functions have been implemented.

View file

@ -337,7 +337,7 @@ class Traceback:
from rich import _IMPORT_CWD
def safe_str(_object: Any) -> str:
"""Don't allow exceptions from __str__ to propegate."""
"""Don't allow exceptions from __str__ to propagate."""
try:
return str(_object)
except Exception:

View file

@ -139,7 +139,7 @@ def test_render_tree_hide_root_win32():
def test_tree_measure():
tree = Tree("foo")
tree.add("bar")
tree.add("musroom risotto")
tree.add("mushroom risotto")
console = Console()
measurement = Measurement.get(console, console.options, tree)
assert measurement == Measurement(11, 19)

View file

@ -1500,7 +1500,7 @@
},
{
"_id": "5b1b455f841d9700146158db",
"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 todays Egyptian Maus in America.",
"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 todays Egyptian Maus in America.",
"type": "cat",
"user": {
"_id": "5a9ac18c7478810ea6c06381",
@ -2193,7 +2193,7 @@
},
{
"_id": "5c609758e54902001453302c",
"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.",
"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.",
"type": "cat",
"user": {
"_id": "5a9ac18c7478810ea6c06381",
@ -2656,7 +2656,7 @@
{
"_id": "5d38b2510f1c57001592f12e",
"type": "cat",
"text": "Courgars are the largest wild cats that can purr.",
"text": "Cougars are the largest wild cats that can purr.",
"user": {
"_id": "5a9ac18c7478810ea6c06381",
"name": {
@ -2768,7 +2768,7 @@
{
"_id": "5e80e7cc2d4b850015003072",
"type": "cat",
"text": "Cats can climb on trees faster than squirels.",
"text": "Cats can climb on trees faster than squirrels.",
"user": {
"_id": "5e80e6c72d4b85001500306e",
"name": {
@ -3284,4 +3284,4 @@
"userUpvoted": null
}
]
}
}