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

Class dataclass1

Lib/test/test_pprint.py:90–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88
89@dataclasses.dataclass
90class dataclass1:
91 field1: str
92 field2: int
93 field3: bool = False
94 field4: int = dataclasses.field(default=1, repr=False)
95
96@dataclasses.dataclass
97class dataclass2:

Callers 2

test_small_dataclassMethod · 0.85
test_larger_dataclassMethod · 0.85

Calls 1

fieldMethod · 0.80

Tested by 2

test_small_dataclassMethod · 0.68
test_larger_dataclassMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…