module documentation
(source)

Various context related utilities, including inference and call contexts.
Class ​Call​Context Holds information for a call site.
Class ​Inference​Context Provide context for inference
Function bind​_context​_to​_node Give a context a boundnode to retrieve the correct function name or attribute value with from further inference.
Function copy​_context Clone a context if given, or return a fresh contexxt
Function _invalidate​_cache Undocumented
Constant _INFERENCE​_CACHE Undocumented
def bind_context_to_node(context, node): (source)

Give a context a boundnode to retrieve the correct function name or attribute value with from further inference.

Do not use an existing context since the boundnode could then be incorrectly propagated higher up in the call stack.

Parameters
context:Optional(context)Context to use
nodeNode to do name lookups from
node ​Node​NG:Undocumented
Returns
InferenceContextA new context
def copy_context(context): (source)
Clone a context if given, or return a fresh contexxt
Parameters
context:Optional[InferenceContext]Undocumented
Returns
InferenceContextUndocumented
def _invalidate_cache(): (source)

Undocumented

_INFERENCE_CACHE: dict = (source)

Undocumented

Value
{}