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

Type hints for QFormLayout.getLayoutPosition should be made more specific

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4: Low
    • 6.2.13, 6.8.0, 6.7.3
    • 6.7.1
    • Type hints
    • None
    • d23c162a5 (dev), 8fa203a34 (6.7), 173678662 (tqtc/lts-6.5), 479e0c1c2 (tqtc/lts-6.2)

    Description

      QtWidgets.pyi says

       
      class QFormLayout(PySide6.QtWidgets.QLayout):
      ...
          def getLayoutPosition(self, layout: PySide6.QtWidgets.QLayout) -> object: ...
       

      I have seen that function return "tuple[int, QFormLayout.ItemRole]", so the return type might be improved.

      Attachments

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

        Activity

          People

            crmaurei Cristian Maureira-Fredes
            bers bers bers
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes