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

Wrong or incomplete type stubs for signals/slots

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: P4: Low
    • Resolution: Unresolved
    • Affects Version/s: 5.15.0
    • Fix Version/s: None
    • Component/s: PySide
    • Labels:
      None
    • Environment:
      MacOS (probably irrelevant) with python 3.7 and mypy 0.770
    • Platform/s:
      macOS

      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

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

          Activity

            People

            Assignee:
            ctismer Christian Tismer
            Reporter:
            3rdcycle Lukas Heiniger
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes