@classmethod
    def pyfloat(cls, left_digits=None, right_digits=None, positive=False):
        left_digits = left_digits or cls.random_int(1, sys.float_info.dig)
        right_digits = right_digits or cls.random_int(0, left_digits - sys.float_info.dig)
        sign = 1 if positive or cls.random_int(0, 1) else -1

        return float("{0}.{1}".format(
            sign * cls.random_number(left_digits), cls.random_number(right_digits)
        ))
dataset/ETHPy150Open joke2k/faker/faker/providers/python/__init__.py/Provider.pyfloat/swapped operands of `-`