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

Multiple Tuple return types missing type arguments

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3: Somewhat important
    • 6.5.0, 6.6.0
    • 6.5.2
    • Type hints
    • None
    • April 6th dev wheels
    • 3c2117c6c (dev), a9ff86901 (6.5), 6bcc55e32 (dev), 9e1ef5feb (6.5)

    Description

      Many methods returning a tuple are missing type arguments for said tuple.

      I am mainly interested in `QFileDialog.getOpenFileName` and `QFileDialog.getSaveFileName`, but as you can see above, this affects many methods.

      Sidenote, if it's a "TODO", please leave it as unknown and don't hide it with `tuple[Any,...]` just to close this issue. It only affects pyright users with strict type-checking (mypy infers as `Any` since it has no concept of `Unknown`) and it has an important semantic difference (an explicit `Any` return type meaning the type simply cannot be expressed within the current type system)

      Attachments

        Issue Links

          For Gerrit Dashboard: PYSIDE-2285
          # Subject Branch Project Status CR V

          Activity

            People

              kleint Friedemann Kleint
              avasam Samuel Therrien
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes