missed files

This commit is contained in:
Will McGugan 2020-03-01 14:45:44 +00:00
parent 2a53a15284
commit 6246b1de16
3 changed files with 11 additions and 0 deletions

BIN
imgs/traceback.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 MiB

BIN
imgs/traceback_windows.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 401 KiB

11
rich/protocol.py Normal file
View File

@ -0,0 +1,11 @@
from typing import Any
def is_renderable(test_renderable: Any) -> bool:
"""Check if an object may be rendered by Rich."""
return (
isinstance(test_renderable, str)
or hasattr(test_renderable, "__console__")
or hasattr(test_renderable, "__rich__")
)