MCPcopy
hub / github.com/pydantic/pydantic / f

Function f

pydantic-core/tests/test_validation_context.py:9–10  ·  view source on GitHub ↗
(input_value, info)

Source from the content-addressed store, hash-verified

7
8def test_after(py_and_json: PyAndJson):
9 def f(input_value, info):
10 return input_value + f'| context: {info.context}'
11
12 v = py_and_json(core_schema.with_info_after_validator_function(f, core_schema.str_schema()))
13

Callers

nothing calls this directly

Calls 1

validatorFunction · 0.70

Tested by

no test coverage detected