MCPcopy
hub / github.com/pydantic/pydantic / Plugin2

Class Plugin2

tests/test_plugins.py:430–437  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

428 return a
429
430 class Plugin2:
431 def new_schema_validator(self, schema, schema_type, schema_type_path, schema_kind, config, plugin_settings):
432 assert schema_type.__name__ == 'my_wrapped_function'
433 assert schema_type_path == SchemaTypePath(
434 'tests.test_plugins', 'partial(test_plugin_path_validate_call.<locals>.my_wrapped_function)'
435 )
436 assert schema_kind == 'validate_call'
437 return CustomOnValidatePython(), None, None
438
439 plugin = Plugin2()
440 with install_plugin(plugin):

Callers 1

Calls

no outgoing calls

Tested by 1