1
0
Fork 0
mirror of https://github.com/morpheus65535/bazarr synced 2024-12-28 10:38:26 +00:00
bazarr/libs/rich/protocol.py
Michiel van Baak Jansen 4a0932b5d3
Update ffsubsync and srt module
* Update ffsubsync to 0.4.11
* Update srt to 3.4.1
2021-04-13 00:02:29 -04:00

12 lines
313 B
Python

from typing import Any
from .abc import RichRenderable
def is_renderable(check_object: Any) -> bool:
"""Check if an object may be rendered by Rich."""
return (
isinstance(check_object, str)
or hasattr(check_object, "__rich__")
or hasattr(check_object, "__rich_console__")
)