def same_partial_index(self, other):
        """
        Return whether the two indexes have the same partial index

        :param other: The other index
        :type other: Index

        :rtype: bool
        """
        if (
            self.has_option("where")
            and other.has_option("where")
            and self.get_option("where") == other.get_option("where")
        ):
            return True

        if not self.has_option("where") and not other.has_option("where"):
            return True

        return False
def same_partial_index ( self , other ) : if ( self . has_option ( "where" ) and other . has_option ( "where" ) and self . get_option ( "where" ) == other . get_option ( "where" ) ) : return True if not self . has_option ( "where" ) and not other . has_option ( "where" ) : return True return False
Return whether the two indexes have the same partial index

        :param other: The other index
        :type other: Index

        :rtype: bool