mirror of
https://github.com/Textualize/rich.git
synced 2025-08-04 10:08:40 +00:00
Remove extra newline
This commit is contained in:
parent
0232b2b850
commit
21b51aa9b3
1 changed files with 3 additions and 0 deletions
|
@ -550,16 +550,19 @@ def test_tuple_rich_repr():
|
|||
"""
|
||||
Test that can use None as key to have tuple positional values.
|
||||
"""
|
||||
|
||||
class Foo:
|
||||
def __rich_repr__(self):
|
||||
yield None, (1,)
|
||||
|
||||
assert pretty_repr(Foo()) == "Foo((1,))"
|
||||
|
||||
|
||||
def test_tuple_rich_repr_default():
|
||||
"""
|
||||
Test that can use None as key to have tuple positional values and with a default.
|
||||
"""
|
||||
|
||||
class Foo:
|
||||
def __rich_repr__(self):
|
||||
yield None, (1,), (1,)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue