Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
test_dataclasses_pickleable
Method · 0.70
Calls
1
field
Function · 0.85
Tested by
1
test_dataclasses_pickleable
Method · 0.56