MCPcopy
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
330def 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)

Calls

no outgoing calls