black formatted

This commit is contained in:
Will McGugan 2020-07-15 11:42:11 +01:00
parent 7df0374f42
commit b83baecea4
10 changed files with 4 additions and 11 deletions

View File

@ -2,4 +2,3 @@ from rich import print
print("If your terminal supports links, the following text should be clickable:")
print("[link=https://www.willmcgugan.com][i]Visit [red]my[/red][/i] [yellow]Blog[/]")

View File

@ -276,4 +276,3 @@ EIGHT_BIT_PALETTE = Palette(
(238, 238, 238),
]
)

View File

@ -69,4 +69,3 @@ if __name__ == "__main__":
print(f'platform="{platform.system()}"')
print(repr(features))

View File

@ -460,4 +460,3 @@ if __name__ == "__main__": # pragma: no cover
console.print(columns)
# console.save_html("box.html", inline_styles=True)

View File

@ -29,4 +29,3 @@ class Pretty:
text = Text(pretty_str)
measurement = Measurement.get(console, text, max_width)
return measurement

View File

@ -915,4 +915,3 @@ if __name__ == "__main__": # pragma: no coverage
time.sleep(0.01)
if random.randint(0, 100) < 1:
progress.log(next(examples))

View File

@ -412,7 +412,7 @@ class Text(JupyterMixin):
"""Strip whitespace from end of text."""
self.plain = self.plain.rstrip()
def rstrip_end(self, size: int):
def rstrip_end(self, size: int) -> None:
"""Remove whitespace beyond a certain width at the end of the text.
Args:

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -87,4 +87,3 @@ def test_shortcuts():
assert Align.right("foo").renderable == "foo"
assert Align.center("foo").align == "center"
assert Align.center("foo").renderable == "foo"