MCPcopy
hub / github.com/pydantic/pydantic / test_partial

Function test_partial

tests/test_validate_call.py:965–971  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

963
964
965def test_partial():
966 def my_wrapped_function(a: int, b: int, c: int):
967 return a + b + c
968
969 my_partial_function = partial(my_wrapped_function, c=3)
970 f = validate_call(my_partial_function)
971 assert f(1, 2) == 6
972
973
974def test_validator_init():

Callers

nothing calls this directly

Calls 2

validate_callFunction · 0.90
fFunction · 0.70

Tested by

no test coverage detected