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

typing: QTabBar.setTabButton() should accept None

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Fixed
    • Not Evaluated
    • 6.9.0, 6.10.0
    • 6.8.2
    • Type hints
    • None
    • c0c7ad35e (dev), e1abbf13b (6.9), be2f84e8c (6.8)

    Description

      According to documentation : https://doc.qt.io/qt-6/qtabbar.html#setTabButton

      QTabBar.setTabButton() should accept None as the widget argument.
       
      Example code :
       
      from typing import Optional

      from PySide6.QtWidgets import QTabBar

      tabBar = QTabBar()
      tabBar.setTabButton(0, QTabBar.ButtonPosition.LeftSide, None)

      The above code should pass type verification without errors.

       

      Attachments

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

        Activity

          People

            ctismer Christian Tismer
            bluebird75 Philippe Fremy
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes