Skip to main content

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

NameTypeDescription
namestrThe name of the configuration setting that contains an invalid value.
apiSemanticAnalyzerPluginInterfaceThe plugin interface used to report the failure to the Mypy semantic analyzer.
contextContextThe AST context used to determine the line and column numbers where the error should be reported.

Returns

TypeDescription
NoneNothing is returned; the function performs a side effect by reporting a failure to the semantic analyzer.