module documentation
(source)

A few useful function/method decorators.
Class cachedproperty Provides a cached property equivalent to the stacking of @cached and @property, but more efficient.
Function cached Simple decorator to cache result of method calls without args.
Function deprecate​_default​_argument​_values Decorator which emitts a DeprecationWarning if any arguments specified are None or not passed at all.
Function path​_wrapper return the given infer function wrapped to handle the path
Function raise​_if​_nothing​_inferred Undocumented
Function yes​_if​_nothing​_inferred Undocumented
Constant P Undocumented
Constant R Undocumented
@wrapt.decorator
def cached(func, instance, args, kwargs): (source)
Simple decorator to cache result of method calls without args.
def deprecate_default_argument_values(astroid_version='3.0', **arguments): (source)

Decorator which emitts a DeprecationWarning if any arguments specified are None or not passed at all.

Arguments should be a key-value mapping, with the key being the argument to check and the value being a type annotation as string for the value of the argument.

Parameters
astroid​_version:strUndocumented
**arguments:strUndocumented
Returns
Callable[[Callable[P, R]], Callable[P, R]]Undocumented
def path_wrapper(func): (source)

return the given infer function wrapped to handle the path

Used to stop inference if the node has already been looked at for a given InferenceContext to prevent infinite recursion

@wrapt.decorator
def raise_if_nothing_inferred(func, instance, args, kwargs): (source)

Undocumented

@wrapt.decorator
def yes_if_nothing_inferred(func, instance, args, kwargs): (source)

Undocumented

Undocumented

Value
ParamSpec('P')

Undocumented

Value
TypeVar('R')