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

Function f

pydantic-core/tests/validators/test_function.py:27–28  ·  view source on GitHub ↗
(input_value, _info)

Source from the content-addressed store, hash-verified

25
26def test_function_before():
27 def f(input_value, _info):
28 return input_value + ' Changed'
29
30 v = SchemaValidator(core_schema.with_info_before_validator_function(f, core_schema.str_schema()))
31

Callers

nothing calls this directly

Calls 8

plain_reprFunction · 0.85
deepcopy_infoFunction · 0.85
MyErrorClass · 0.85
valFunction · 0.85
validatorFunction · 0.50
handlerFunction · 0.50
decodeMethod · 0.45
copyMethod · 0.45

Tested by

no test coverage detected