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

Class Foo

tests/test_inspect.py:69–91  ·  view source on GitHub ↗

Foo test Second line

Source from the content-addressed store, hash-verified

67
68
69class Foo:
70 """Foo test
71
72 Second line
73 """
74
75 def __init__(self, foo: int) -> None:
76 """constructor docs."""
77 self.foo = foo
78
79 @property
80 def broken(self):
81 raise InspectError()
82
83 def method(self, a, b) -> str:
84 """Multi line
85
86 docs.
87 """
88 return "test"
89
90 def __dir__(self):
91 return ["__init__", "broken", "method"]
92
93
94class FooSubclass(Foo):

Callers 2

test_renderFunction · 0.70
test_broken_call_attrFunction · 0.70

Calls 1

NotCallableClass · 0.85

Tested by 2

test_renderFunction · 0.56
test_broken_call_attrFunction · 0.56