Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dask/dask
/ prep_dataclass
Function
prep_dataclass
dask/tests/test_delayed.py:182–185 ·
view source on GitHub ↗
(a)
Source
from the content-addressed store, hash-verified
180
b: int = field(init=False)
# type: ignore[annotation-unchecked]
181
182
def
prep_dataclass(a):
183
data = ADataClass(a=a)
184
data.b = 4
185
return
data
186
187
with_class = delayed({
"data"
: prep_dataclass(3)})
188
Callers
2
test_delayed_with_eager_dataclass_with_set_init_false_field
Function · 0.85
test_delayed_with_dataclass_with_set_init_false_field
Function · 0.85
Calls
1
ADataClass
Class · 0.70
Tested by
no test coverage detected