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

Wrong or incomplete type stubs for signals/slots

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4: Low P4: Low
    • 6.3.0
    • 5.15.0
    • PySide
    • None
    • MacOS (probably irrelevant) with python 3.7 and mypy 0.770
    • macOS
    • 772a5f8dc9c91d696315a516015f5d887de6eda6 (pyside/pyside-setup/6.2)

      This is probably related to PYSIDE-1079 (and maybe others too). I'm switching from PyQt5 to PySide2. Among other reasons because PySide seems to have better typing stubs. 

      Running mypy over my project I get lots of the following errors however:

      Signal has no attribute connect 
      Signal has no attribute emit 

      Also, when using the Slot() decorator:

      Slot not callable

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

            ctismer Christian Tismer
            3rdcycle Lukas Heiniger
            Votes:
            6 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes