def __nonzero__(self):
        # type: () -> bool
        """Return whether I know any known-good hashes."""
        return bool(self._allowed)
Return whether I know any known-good hashes.
product/gradle-plugin/src/main/python/pip/_internal/utils/hashes.py