module documentation

Like astroid's inference context utilities, but more simple.

Class InferenceContext Provide context for inference.
Function copy_context Clone a context if given, or return a fresh context.
Variable OptionalInferenceContext Undocumented
Variable _InferenceCache Undocumented
def copy_context(context, cache=None, **kwargs): (source)

Clone a context if given, or return a fresh context.

  • If context is None, cache dict must be passed.
  • If context and cache are not None, override the new context cache.
Parameters
context:InferenceContext|NoneUndocumented
cache:_InferenceCache|NoneUndocumented
**kwargs:AnyUndocumented
Returns
InferenceContextUndocumented
OptionalInferenceContext = (source)

Undocumented

_InferenceCache = (source)

Undocumented