st.number_input(
"Percentage",
min_value=Decimal("0.001"),
max_value=Decimal("100.0"),
value=Decimal("0.001"),
step=Decimal("0.001")
)
results in
StreamlitMixedNumericTypesError(value=value, min_value=min_value, max_value=max_value, step=step)
streamlit.errors.StreamlitMixedNumericTypesError: All numerical arguments must be of the same type.
value
has Decimal type.
min_value
has Decimal type.
max_value
has Decimal type.
step
has Decimal type.
Besides expecting this to work, the error doesn’t really make sense. Any ideas?