def test_float_min_and_max_value_does_not_crash(
    left_digits: Optional[int],
    right_digits: Optional[int],
    min_value: Optional[float],
    max_value: Optional[float],
):
    """
    Float arguments to randrange are deprecated from Python 3.10. This is a regression
    test to check that `pydecimal` does not cause a crash on any code path.
    """
    Faker().pydecimal(left_digits, right_digits, min_value=min_value, max_value=max_value)

    Float arguments to randrange are deprecated from Python 3.10. This is a regression
    test to check that `pydecimal` does not cause a crash on any code path.
    
tests/providers/test_python.py