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

Incomplete type hint for QAction.__init__ icon parameter

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • 6.8.2
    • Type hints
    • None

    Description

      The _init_ methods of QAction constrain the type of the icon parameter to only QIcon. However, the setIcon method accepts QIcon and QPixmap.

      The type of icon should be `QIcon | QPixmap`.

      Attachments

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

        Activity

          People

            ctismer Christian Tismer
            adrien-lsh Adrien Louis-Joseph
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes