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

typing: bad type signature for QObject.inherits()

XMLWordPrintable

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

      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

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes