def __init__(self, left, lower, upper, right):
        """
        Create an atomic interval.

        If a bound is set to infinity (regardless of its sign), the corresponding boundary will
        be exclusive.

        :param left: Boolean indicating whether the left boundary is inclusive (True) or exclusive (False).
        :param lower: lower bound value.
        :param upper: upper bound value.
        :param right: Boolean indicating whether the right boundary is inclusive (True) or exclusive (False).
        """
        self._left = left if lower not in [inf, -inf] else OPEN
        self._lower = lower
        self._upper = upper
        self._right = right if upper not in [inf, -inf] else OPEN

        if self.is_empty():
            self._left = OPEN
            self._lower = inf
            self._upper = -inf
            self._right = OPEN
def __init__ ( self , left , lower , upper , right ) : self . _left = left if lower not in [ inf , - inf ] else OPEN self . _lower = lower self . _upper = upper self . _right = right if upper not in [ inf , - inf ] else OPEN if self . is_empty ( ) : self . _left = OPEN self . _lower = inf self . _upper = - inf self . _right = OPEN
Create an atomic interval.

        If a bound is set to infinity (regardless of its sign), the corresponding boundary will
        be exclusive.

        :param left: Boolean indicating whether the left boundary is inclusive (True) or exclusive (False).
        :param lower: lower bound value.
        :param upper: upper bound value.
        :param right: Boolean indicating whether the right boundary is inclusive (True) or exclusive (False).