Skip to main content

error_required_dynamic_aliases

Emits required dynamic aliases error.

This will be called when `warn_required_dynamic_aliases=True`.
def error_required_dynamic_aliases(
api: SemanticAnalyzerPluginInterface,
context: Context
) - > None

Emits required dynamic aliases error. This will be called when warn_required_dynamic_aliases=True.

Parameters

NameTypeDescription
apiSemanticAnalyzerPluginInterfaceThe semantic analyzer plugin interface used to report the failure message
contextContextThe AST context (such as a node or line number) where the error occurred

Returns

TypeDescription
NoneNothing; this function is called for its side effect of reporting a failure to the semantic analyzer