MCPcopy
hub / github.com/pydantic/pydantic / deepcopy_info

Function deepcopy_info

pydantic-core/tests/validators/test_function.py:17–23  ·  view source on GitHub ↗
(info: core_schema.ValidationInfo)

Source from the content-addressed store, hash-verified

15
16
17def deepcopy_info(info: core_schema.ValidationInfo) -> dict[str, Any]:
18 return {
19 'context': deepcopy(info.context),
20 'data': deepcopy(info.data),
21 'field_name': deepcopy(info.field_name),
22 'config': deepcopy(info.config),
23 }
24
25
26def test_function_before():

Callers 1

fFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected