@property
    def _sup(self):
        if not self:
            raise NotImplementedError
        if self.step > 0:
            return self.stop - self.step
        else:
            return self.start
dataset/ETHPy150Open sympy/sympy/sympy/sets/fancysets.py/Range._sup/original