import pkgutil


def ignore_module(module: pkgutil.ModuleInfo) -> bool:
    """Return whether the module with name `name` should be ignored."""
    return any(name.startswith("_") for name in module.name.split("."))