MCPcopy
hub / github.com/Textualize/rich / __rich__

Method __rich__

tests/test_protocol.py:55–56  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

53def test_cast_deep():
54 class B:
55 def __rich__(self) -> Foo:
56 return Foo()
57
58 class A:
59 def __rich__(self) -> B:

Callers 2

test_rich_castFunction · 0.45
test_richFunction · 0.45

Calls 2

AClass · 0.85
FooClass · 0.70

Tested by

no test coverage detected