Bug: `gt` and `lt` is not handled properly for floats
guacs opened this issue · 0 comments
guacs commented
Description
See the MCVE.
URL to code causing the issue
No response
MCVE
from polyfactory.value_generators.constrained_numbers import get_increment, get_value_or_none
gt = 10.192
minimum, maximum = get_value_or_none(float, gt=gt)
assert minimum is not None and minimum > gt, f"{minimum=}"
Steps to reproduce
No response
Screenshots
No response
Logs
No response
Release Version
main
Platform
- Linux
- Mac
- Windows
- Other (Please specify in the description above)
Funding
- If you would like to see an issue prioritized, make a pledge towards it!
- We receive the pledge once the issue is completed & verified