Details
-
Bug
-
Resolution: Unresolved
-
Not Evaluated
-
None
-
6.8.0.2
-
None
Description
A particular overload should be
def toString(self, f: float, /, format: typing.Literal["e", "E", "f", "F", "g", "G"] = ..., precision: int = ...) -> str: ...
instead of
def toString(self, f: float, /, format: int = ..., precision: int = ...) -> str: ...
That would explicitly read that the format is a single letter, one of “e”, “E”, “f”, “F”, “g”, and “G”.
I haven't tested all the available versions. 6.8 and 6.9 are affected. If I remember right, the issue appears in all the versions.