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

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 6.2.0
    • Fix Version/s: None
    • Component/s: PySide
    • Labels:
      None
    • Commits:
      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

            Assignee:
            ctismer Christian Tismer
            Reporter:
            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