Path 1: 54 calls (1.0)

list (54)

tuple (54)

True (44) False (10)

GeneratorExit (44)

1def _except_handlers_ignores_exceptions(
2    handlers: nodes.ExceptHandler,
3    exceptions: tuple[type[ImportError], type[ModuleNotFoundError]],
4) -> bool:
5    func = partial(error_of_type, error_type=exceptions)
6    return any(func(handler) for handler in handlers)