module documentation

Abstract representation of functions defined in the module under analysis.

Class InterpreterFunction An abstract value representing a user-defined function.
Variable log Undocumented
Function _check_classes Check whether the cls of each value in `var` is a class and passes `check`.
Function _hash_all_dicts Convenience method for hashing a sequence of dicts.
Function _matches_async_generator Undocumented
Function _matches_generator Undocumented
Function _matches_generator_helper Check if type_obj matches a Generator/AsyncGenerator type.

Undocumented

def _check_classes(var, check): (source)

Check whether the cls of each value in `var` is a class and passes `check`. Args: var: A cfg.Variable or empty. check: (BaseValue) -> bool. Returns: Whether the check passes.

def _hash_all_dicts(*hash_args): (source)

Convenience method for hashing a sequence of dicts.

def _matches_async_generator(type_obj): (source)

Undocumented

def _matches_generator(type_obj): (source)

Undocumented

def _matches_generator_helper(type_obj, allowed_types): (source)

Check if type_obj matches a Generator/AsyncGenerator type.