Closed jmcnamara closed 10 years ago
It looks like I had a slightly older version of valedictory on the machine I was testing on. This issues doesn't occur on the latest PyPi version or the GitHub master.
Sorry for the noise. Closing.
Brief followup:
I had installed the module as follows:
$ pip install validictory
And got the 0.9.3 release. Installing as follows picked up the latest release:
$ pip install --pre validictory
Hi,
Integer maximum and minimum exceptions are reported as floats.
Here is an example based on one of the examples in the docs:
Running this give:
While this isn't strictly incorrect it looks a little odd.
Replacing the format string
%f
with%g
in the error handler would probably be a sufficient fix rather than varying the format string based on the validation type.Regards,
John