module documentation

Undocumented

Class cachedproperty Provides a cached property equivalent to the stacking of @cached and @property, but more efficient.
Function deprecated This is a decorator which can be used to mark functions as deprecated. It will result in a warning being emitted when the function is used.
Function inference_path record the inference path and avoid infinite recursion
Function log_yielded_result decorators to log the yield result for any func the yielded result is parsed as first argument. Use {0} in the string to place the yielded result. E.g. >>> @log_yielded_result("the function foo returned {0}...
Function lru_cache_context cache the infer() returned results by comparing the state of the context. It's different than @functools.lru_cache since it's not comparing the object itself, but the state. All the relevant attribute in context are hashed, along with the unique_id of context for comparing different instances.
Function yield_at_least_once Undocumented
Constant BASE_MANAGER Undocumented
def deprecated(func): (source)

This is a decorator which can be used to mark functions as deprecated. It will result in a warning being emitted when the function is used.

def inference_path(func): (source)

record the inference path and avoid infinite recursion

def log_yielded_result(msg, *var, log_level=logging.INFO): (source)

decorators to log the yield result for any func the yielded result is parsed as first argument. Use {0} in the string to place the yielded result. E.g. >>> @log_yielded_result("the function foo returned {0}. Extra is:{1}, {2}", ... "extra1", "extra2") ... def foo(): ... yield from [1, 2, 3]

def lru_cache_context(user_function): (source)

cache the infer() returned results by comparing the state of the context. It's different than @functools.lru_cache since it's not comparing the object itself, but the state. All the relevant attribute in context are hashed, along with the unique_id of context for comparing different instances.

def yield_at_least_once(node_class): (source)

Undocumented

BASE_MANAGER = (source)

Undocumented

Value
base_manager.BaseManager()