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

Wrong or incomplete type stubs for signals/slots

    XMLWordPrintable

Details

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

    Description

      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

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: