MCPcopy
hub / github.com/pydantic/pydantic / error_invalid_config_value

Function error_invalid_config_value

pydantic/mypy.py:1270–1272  ·  view source on GitHub ↗

Emits an error when the config value is invalid.

(name: str, api: SemanticAnalyzerPluginInterface, context: Context)

Source from the content-addressed store, hash-verified

1268
1269
1270def error_invalid_config_value(name: str, api: SemanticAnalyzerPluginInterface, context: Context) -> None:
1271 """Emits an error when the config value is invalid."""
1272 api.fail(f'Invalid value for "Config.{name}"', context, code=ERROR_CONFIG)
1273
1274
1275def error_required_dynamic_aliases(api: SemanticAnalyzerPluginInterface, context: Context) -> None:

Callers 1

get_config_updateMethod · 0.70

Calls 1

failMethod · 0.80

Tested by

no test coverage detected