My remark still stands after checking the full file. I would like to add one more comment: the docstring sais `or less than 0` but there's no test for that.