MCPcopy
hub / github.com/pydantic/pydantic / PickleModelTwo

Class PickleModelTwo

tests/test_construction.py:353–359  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

351 b: int = 10
352
353 class PickleModelTwo(BaseModel):
354 _foo_ = PrivateAttr({'private'})
355
356 a: float
357 b: int = 10
358 c: str = 'foobar'
359 d: PickleModel
360
361 m = module.PickleModelTwo(a=24, d=module.PickleModel(a='123.45'))
362 m2 = pickle.loads(pickle.dumps(m))

Callers

nothing calls this directly

Calls 1

PrivateAttrFunction · 0.90

Tested by

no test coverage detected