Closed
Description
The documentation for float
doesn't explicitly allow int-like strings, although it does give one as an example. E.g. although float('10')
works and returns a float, the documentation implies that it shouldn't.
Linked PRs
- gh-100428: Make int documentation more accurate #100436
- gh-100428: Make float documentation more accurate #100437
- [3.10] gh-100428: Make float documentation more accurate (GH-100437) #100510
- [3.11] gh-100428: Make float documentation more accurate (GH-100437) #100511
- [3.11] gh-100428: Make int documentation more accurate (GH-100436) #100674
- [3.10] gh-100428: Make int documentation more accurate (GH-100436) #100675