exception documentation

class NameInferenceError(InferenceError): (source)

View In Hierarchy

Raised when a name lookup fails, corresponds to NameError. Standard attributes: name: The name for which lookup failed, as a string. scope: The node representing the scope in which the lookup occurred. context: InferenceContext object.

Method __init__ Undocumented
Instance Variable context Undocumented
Instance Variable name Undocumented
Instance Variable scope Undocumented

Inherited from InferenceError:

Instance Variable arg Undocumented
Instance Variable assign_path Undocumented
Instance Variable attribute Undocumented
Instance Variable call_site Undocumented
Instance Variable caller Undocumented
Instance Variable frame Undocumented
Instance Variable func Undocumented
Instance Variable keyword_arguments Undocumented
Instance Variable node Undocumented
Instance Variable positional_arguments Undocumented
Instance Variable stmts Undocumented
Instance Variable target Undocumented
Instance Variable targets Undocumented
Instance Variable unknown Undocumented
Instance Variable unpacked_args Undocumented
Instance Variable unpacked_kwargs Undocumented

Inherited from AstroidError (via InferenceError, ResolveError):

Method __str__ Undocumented
Instance Variable message Undocumented
def __init__(self, message: str = '{name!r} not found in {scope!r}.', name: str|None = None, scope: nodes.LocalsDictNodeNG|None = None, context: InferenceContext|None = None, **kws: Any): (source)

Undocumented

Undocumented