mirror of https://github.com/Textualize/rich.git
black formatted
This commit is contained in:
parent
7df0374f42
commit
b83baecea4
|
@ -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[/]")
|
||||
|
||||
|
|
|
@ -276,4 +276,3 @@ EIGHT_BIT_PALETTE = Palette(
|
|||
(238, 238, 238),
|
||||
]
|
||||
)
|
||||
|
||||
|
|
|
@ -69,4 +69,3 @@ if __name__ == "__main__":
|
|||
|
||||
print(f'platform="{platform.system()}"')
|
||||
print(repr(features))
|
||||
|
||||
|
|
|
@ -460,4 +460,3 @@ if __name__ == "__main__": # pragma: no cover
|
|||
console.print(columns)
|
||||
|
||||
# console.save_html("box.html", inline_styles=True)
|
||||
|
||||
|
|
|
@ -29,4 +29,3 @@ class Pretty:
|
|||
text = Text(pretty_str)
|
||||
measurement = Measurement.get(console, text, max_width)
|
||||
return measurement
|
||||
|
||||
|
|
|
@ -915,4 +915,3 @@ if __name__ == "__main__": # pragma: no coverage
|
|||
time.sleep(0.01)
|
||||
if random.randint(0, 100) < 1:
|
||||
progress.log(next(examples))
|
||||
|
||||
|
|
|
@ -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
|
@ -76,7 +76,7 @@ def test_align_width():
|
|||
words = "Deep in the human unconscious is a pervasive need for a logical universe that makes sense. But the real universe is always one step beyond logic"
|
||||
console.print(Align(words, "center", width=30))
|
||||
result = console.file.getvalue()
|
||||
expected = " Deep in the human unconscious \n is a pervasive need for a \n logical universe that makes \n sense. But the real universe \n is always one step beyond \n logic \n"
|
||||
expected = " Deep in the human unconscious \n is a pervasive need for a \n logical universe that makes \n sense. But the real universe \n is always one step beyond \n logic \n"
|
||||
assert result == expected
|
||||
|
||||
|
||||
|
@ -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"
|
||||
|
||||
|
|
Loading…
Reference in New Issue