Details
-
Bug
-
Resolution: Fixed
-
Not Evaluated
-
6.8.0.2
-
None
-
e8a1766c9 (dev)
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.
Attachments
For Gerrit Dashboard: PYSIDE-3134 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
659061,4 | type hints: Fix QLocale.toString method | dev | pyside/pyside-setup | Status: MERGED | +2 | +1 |