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

QComboBox.addItems type hints should accept Iterable

    XMLWordPrintable

Details

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

    Description

      The difference between Python Sequences and Iterables is that Sequences have a length while Iterables do not need to have a length.

      Type hints for QComboBox.addItems require a Sequence while at runtime, it works with Iterables, too, see attached code.

      The type hint could/should be modified to accept Iterable instead of only Sequence.

      Attachments

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

        Activity

          People

            cinucen Ece Cinucen
            bers bers bers
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes