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

Incorrect stubs for shiboken6.Shiboken

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P4: Low
    • None
    • 6.3.1
    • Shiboken
    • None
    • fc9b08123a (pyside/pyside-setup/dev) fc9b08123a (pyside/tqtc-pyside-setup/dev) 6d5f7b839f (pyside/pyside-setup/6.3) 6d5f7b839f (pyside/tqtc-pyside-setup/6.3) 6d5f7b839f (pyside/pyside-setup/wip/6.3_pypy) 6d5f7b839f (pyside/tqtc-pyside-setup/wip/6.3_pypy)

    Description

      Most of the signatures in sources/shiboken6/shibokenmodule/Shiboken.pyi are typed with object, which is incorrect for themapart from dump, invalidate, and isValid, as they expect shiboken types; the object return types also restrict most operations on them and require casts on the caller's side

      def _unpickle_enum(arg__1: object, arg__2: object) -> object: ...
      def createdByPython(arg__1: object) -> bool: ...
      def delete(arg__1: object) -> None: ...
      def dump(arg__1: object) -> object: ...
      def getAllValidWrappers() -> object: ...
      def getCppPointer(arg__1: object) -> object: ...
      def invalidate(arg__1: object) -> None: ...
      def isValid(arg__1: object) -> bool: ...
      def ownedByPython(arg__1: object) -> bool: ...
      def wrapInstance(arg__1: int, arg__2: type) -> object: ...
      

      Attachments

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

        Activity

          People

            kleint Friedemann Kleint
            numerlor Michal Laboš
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: