U æ·€gzã@s†ddlmZGdd„deƒZedkr‚ddlmZeƒZeeeeƒƒeeeeƒƒGdd„dƒZ e ƒZ eee eƒƒeedeƒƒd S) é)ÚABCc@s$eZdZdZeeedœdd„ƒZdS)ÚRichRenderablea#An abstract base class for Rich renderables. Note that there is no need to extend this class, the intended use is to check if an object supports the Rich renderable protocol. For example:: if isinstance(my_object, RichRenderable): console.print(my_object) )ÚotherÚreturncCst|dƒpt|dƒS)z6Check if this class supports the rich render protocol.Ú__rich_console__Ú__rich__)Úhasattr)Úclsr©r úB/opt/hc_python/lib/python3.8/site-packages/pip/_vendor/rich/abc.pyÚ__subclasshook__szRichRenderable.__subclasshook__N)Ú__name__Ú __module__Ú __qualname__Ú__doc__Ú classmethodÚtypeÚboolr r r r r rs rÚ__main__)ÚTextc@s eZdZdS)ÚFooN)r rrr r r r rsrÚN) Úabcrrr Úpip._vendor.rich.textrÚtÚprintÚ isinstancerÚfr r r r Ús