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

typing: bad type signature for QObject.inherits()

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Fixed
    • Not Evaluated
    • 6.9.0, 6.8.3
    • None
    • Type hints
    • None
    • 3c66c456a (dev), f3b721534 (6.8)

    Description

      Reported from PySide6-stubs

      For some reason, the signature of QObject.inherits() is incorrect:

       
      def inherits(self, classname: bytes | bytearray | memoryview, /) -> bool: ...
       
      Correct signature is :
       
      def inherits(self, classname: str, /) -> bool: ...
       
      This bug is present for several other Qt functions or methods by the way

      Attachments

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

        Activity

          People

            ctismer Christian Tismer
            bluebird75 Philippe Fremy
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes