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

snake_case feature causes staticmethod decorated methods to disappear from QObject types

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • None
    • 6.2.0
    • PySide
    • None
    • 42695262f0 (pyside/pyside-setup/dev) 18a93ae18a (pyside/pyside-setup/6.2) 18a93ae18a (pyside/tqtc-pyside-setup/6.2) 42695262f0 (pyside/tqtc-pyside-setup/dev) 42695262f0 (pyside/tqtc-pyside-setup/tqtc/dev) 18a93ae18a (pyside/pyside-setup/6.2.4)

    Description

      Consider

      class Foo(QObject):
          @staticmethod
          def bar():
      

      with snake_case:

      {'__module__': '__main__', '__doc__': None, 
      'staticMetaObject': <PySide6.QtCore.QMetaObject object at 0x7fcfad89b540>}
      

      without snake_case:

      {'__module__': '__main__', 'bar': <staticmethod object at 0x7fbb3640c520>, '__doc__': None, 
      'staticMetaObject': <PySide6.QtCore.QMetaObject object at 0x7fbb1bd73040>}
      

      Attachments

        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:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes