def _has_stubs(pkg_config):
    """ See if a stub file for any of the modules will be generated.
    pkg_config is the package configuration.
    """
    for module_config in pkg_config.modules:
        if module_config.pep484_stub_file:
            return True
    return False
