loaders ยป integer
integer() โ Integer
integer_items() โ list
integer_list() โ list
Accepts integers only (float is not clipped but triggers an error), returns an integer.
enogood: -13
bad: 0.3
python>>> document = Eno.parse(input)
>>> document.integer('good')
-13
>>> document.integer('bad')
ValidationError: 'bad' must contain an integer, for instance '42' or '-21'.