get_count returns 2 when the float 1.0 is passed in, this leads to bad pluralizations if you have a float input
Open
- Dominant language
- Python
- Stars
- 1.1k
- Forks
- 127
- PR merge metrics
- No merged PRs in 30d
Description
This appears to be related to the way the value is converted to a string and then back to an int only if it's `1` vs `1.0`
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the issue by calling get_count with 1.0, then inspect the conversion path described in the report. Add a regression test showing that 1.0 produces the intended count and pluralization behavior; the issue provides no file or test path, so locate the existing get_count implementation and tests first.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100