MCPcopy Create free account
hub / github.com/cloudpipe/cloudpickle / SampleDataclass

Class SampleDataclass

tests/cloudpickle_test.py:2999–3002  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2997 def test_dataclass_fields_are_preserved(self):
2998 @dataclasses.dataclass
2999 class SampleDataclass:
3000 x: int
3001 y: dataclasses.InitVar[int]
3002 z: typing.ClassVar[int]
3003
3004 PickledSampleDataclass = pickle_depickle(
3005 SampleDataclass, protocol=self.protocol

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected