MCPcopy Index your code
hub / github.com/python/cpython / R

Class R

Lib/test/test_dataclasses/__init__.py:2197–2199  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2195 y: int = field(default=0, init=False)
2196 @dataclass
2197 class R:
2198 x: int
2199 y: List[int] = field(default_factory=list)
2200 q = Q(1)
2201 q.y = 2
2202 samples = [P(1), P(1, 2), Q(1), q, R(1), R(1, [2, 3, 4])]

Callers 1

Calls 1

fieldFunction · 0.85

Tested by 1