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

true_property feature makes QTimer.singleShot staticmethod unavailable

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • None
    • 6.1.3
    • PySide
    • None
    • bee4cd31d60f3b35a37a2eb98fdfc60ba76cfe1c (pyside/pyside-setup/dev) ec3a7035e8415e8b9067519069c6f5b1cfde15df (pyside/pyside-setup/6.2)

    Description

      When the `true_property` feature import is used, the `singleShot` property overwrites the static method with the same name

      >>> from PySide6 import QtCore
      >>> QtCore.QTimer.singleShot
      <built-in method singleShot of Shiboken.ObjectType object at 0x000001B802A145A0>
      >>> from __feature__ import true_property
      >>> QtCore.QTimer.singleShot
      <property object at 0x000001B80499DCC0>
      
      Qt 6.2.0 (x86_64-little_endian-lp64 shared (dynamic) debug build; by GCC 9.3.0)
      Traceback (most recent call last):
        File "pyside1670.py", line 14, in <module>
          QTimer.singleShot(1000, window.close)
      TypeError: 'property' object is not callable
      

      Attachments

        Issue Links

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

          Activity

            People

              ctismer Christian Tismer
              numerlor Michal Laboš
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes