error_invalid_config_value
Emits an error when the config value is invalid.
def error_invalid_config_value(
name: str,
api: SemanticAnalyzerPluginInterface,
context: Context
) - > None
Emits an error when the config value is invalid.
Parameters
| Name | Type | Description |
|---|---|---|
| name | str | The name of the configuration setting that contains an invalid value. |
| api | SemanticAnalyzerPluginInterface | The plugin interface used to report the failure to the Mypy semantic analyzer. |
| context | Context | The AST context used to determine the line and column numbers where the error should be reported. |
Returns
| Type | Description |
|---|---|
None | Nothing is returned; the function performs a side effect by reporting a failure to the semantic analyzer. |