Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.9.0
-
None
-
-
2f55adcea (dev), be6437d6b (6.9)
Description
The type hints of QPropertyAnimation are incomplete. This goes for its two ___init___() overloads.
To make the type hints complete for this class, they should be:
class QPropertyAnimation(PySide6.QtCore.QVariantAnimation): @typing.overload def __init__(self, target: PySide6.QtCore.QObject, propertyName: PySide6.QtCore.QByteArray | bytes | bytearray | memoryview, /, parent: PySide6.QtCore.QObject | None= ..., *, targetObject: PySide6.QtCore.QObject | None= ...) -> None: ... @typing.overload def __init__(self, /, parent: PySide6.QtCore.QObject | None= ..., *, propertyName: PySide6.QtCore.QByteArray | bytes | bytearray | memoryview | None= ..., targetObject: PySide6.QtCore.QObject | None= ...) -> None: ... def event(self, event: PySide6.QtCore.QEvent, /) -> bool: ... def propertyName(self, /) -> PySide6.QtCore.QByteArray: ... def setPropertyName(self, propertyName: PySide6.QtCore.QByteArray | bytes | bytearray | memoryview, /) -> None: ... def setTargetObject(self, target: PySide6.QtCore.QObject, /) -> None: ... def targetObject(self, /) -> PySide6.QtCore.QObject: ... def updateCurrentValue(self, value: typing.Any, /) -> None: ... def updateState(self, newState: PySide6.QtCore.QAbstractAnimation.State, oldState: PySide6.QtCore.QAbstractAnimation.State, /) -> None: ...
Please fix this in the next version of PySide6, which is going to be 6.9.0. Thank you.
Attachments
For Gerrit Dashboard: PYSIDE-3007 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
640642,2 | type-hints: Fix properties on __init__ functions | dev | pyside/pyside-setup | Status: MERGED | +2 | 0 |
641310,2 | type-hints: Fix properties on __init__ functions | 6.9 | pyside/pyside-setup | Status: MERGED | +2 | 0 |