loaders ยป number

number() โ†’ Integer
number_items() โ†’ list
number_list() โ†’ list

An alias for the integer loader.

enogood: -13
bad: 0.3
python>>> document = Eno.parse(input)

>>> document.number('good')
-13
>>> document.number('bad')
ValidationError: 'bad' must contain an integer, for instance '42' or '-21'.