MCPcopy
hub / github.com/pydantic/pydantic / Plugin1

Class Plugin1

tests/test_plugins.py:414–421  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

412 pass
413
414 class Plugin1:
415 def new_schema_validator(self, schema, schema_type, schema_type_path, schema_kind, config, plugin_settings):
416 assert schema_type.__name__ == 'foo'
417 assert schema_type_path == SchemaTypePath(
418 'tests.test_plugins', 'test_plugin_path_validate_call.<locals>.foo'
419 )
420 assert schema_kind == 'validate_call'
421 return CustomOnValidatePython(), None, None
422
423 plugin = Plugin1()
424 with install_plugin(plugin):

Callers 1

Calls

no outgoing calls

Tested by 1