def overlaps(self, other):
        """Tell if self is partly contained in other."""
        return self.network_address in other or (
            self.broadcast_address in other or (
                other.network_address in self or (
                    other.broadcast_address in self)))
Tell if self is partly contained in other.
product/gradle-plugin/src/main/python/pip/_vendor/ipaddress.py