rich.protocol

rich.protocol.is_renderable(check_object)[ソース]

オブジェクトが Rich でレンダリング可能かどうかを確認する。

パラメータ

check_object (Any) –

戻り値の型

bool

rich.protocol.rich_cast(renderable)[ソース]

__rich__ が存在する場合、オブジェクトを呼び出してレンダリング可能にキャストする。

パラメータ

renderable (object) – レンダリング可能なオブジェクト

戻り値

__rich__ を再帰的に呼び出す結果

戻り値の型

object