Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-3007

PySide6.QtCore.QPropertyAnimation: incomplete type hints

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.9.0
    • Type hints
    • None
    • All

    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

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            ctismer Christian Tismer
            pedantichacker BoĊĦtjan Mejak
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes