Passing float instead of integer to a function raises more likely TypeError instead of ValueError.
TypeError
ValueError
(see for example https://github.com/python/cpython/commit/f066bd94b9225a5a3c4ade5fc3ff81e3c49b7b32)
May be more interesting to switch to TypeError instead.
Loading collection data...
Passing float instead of integer to a function raises more likely
TypeError
instead ofValueError
.(see for example https://github.com/python/cpython/commit/f066bd94b9225a5a3c4ade5fc3ff81e3c49b7b32)
May be more interesting to switch to
TypeError
instead.