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

type hints: QButtonGroup.checkedButton can return None

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Not Evaluated Not Evaluated
    • None
    • 6.9.2
    • Type hints
    • None
    • All

      QButtonGroup.checkedButton can return None if no button in the group is checked.

      Current (incorrect) type hint

      def checkedButton(self, /) -> PySide6.QtWidgets.QAbstractButton: ... 

      Correct type hint

      def checkedButton(self, /) -> PySide6.QtWidgets.QAbstractButton | None: ... 

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

            cinucen Ece Cinucen
            gentlegiantjgc J C
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes