U cfo@s\ddlmZmZmZmZddlmZer4ddlmZdZ ee dddZ e dd d d Z d S) )AnycastSet TYPE_CHECKING)isclassRenderableType-aihwerij235234ljsdnp34ksodfipwoe234234jlskjdf) check_objectreturncCst|tpt|dpt|dS)z+Check if an object may be rendered by Rich.__rich____rich_console__) isinstancestrhasattr)r rG/opt/hc_python/lib/python3.8/site-packages/pip/_vendor/rich/protocol.py is_renderable s  rr) renderabler cCsnddlm}t}t|drdt|sdt|tr6t|St|d}|}t|}||krXqd| |qt ||S)zCast an object to a renderable by calling __rich__ if present. Args: renderable (object): A potentially renderable object Returns: object: The result of recursively calling __rich__. rrr ) pip._vendor.rich.consolersetrr _GIBBERISHreprgetattrtypeaddr)rrrich_visited_set cast_methodrenderable_typerrr rich_casts    rN)typingrrrrinspectrrrrboolrobjectrrrrrs