Code
Hub
Workspaces
Connect your AI tool
Indexed graphs
Engine
MCP
copy
hub
/
github.com/Textualize/rich
/ Example
Class
Example
tests/test_pretty.py:331–333 · tests/test_pretty.py::Example
Source
from the content-addressed store, hash-verified
329
330
def
test_reference_cycle_namedtuple() -> None:
331
class
Example(NamedTuple):
332
x: int
333
y: Any
334
335
test = Example(1, [Example(2, [])])
336
test.y[0].y.append(test)
Callers
4
test_reference_cycle_namedtuple
Function · 0.85
test_reference_cycle_dataclass
Function · 0.85
test_reference_cycle_attrs
Function · 0.85
test_reference_cycle_custom_repr
Function · 0.85
Calls
no outgoing calls
Tested by
4
test_reference_cycle_namedtuple
Function · 0.68
test_reference_cycle_dataclass
Function · 0.68
test_reference_cycle_attrs
Function · 0.68
test_reference_cycle_custom_repr
Function · 0.68