MCPcopy
hub / github.com/pydantic/pydantic / Python

Class Python

tests/test_plugins.py:277–285  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

275 log = []
276
277 class Python(ValidatePythonHandlerProtocol):
278 def on_enter(self, input, **kwargs) -> None:
279 log.append(f'python enter input={input} kwargs={kwargs}')
280
281 def on_success(self, result: Any) -> None:
282 log.append(f'python success result={result}')
283
284 def on_error(self, error: ValidationError) -> None:
285 log.append(f'python error error={error}')
286
287 class Json(ValidateJsonHandlerProtocol):
288 def on_enter(self, input, **kwargs) -> None:

Callers 1

new_schema_validatorMethod · 0.85

Calls

no outgoing calls

Tested by 1

new_schema_validatorMethod · 0.68