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

qFatal, qCritical, qWarning, and qDebug of QtCore need a str, but expect bytes

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4: Low
    • 6.5.2, 6.6.0
    • 6.5.1.1
    • Type hints
    • None
    • da76aaa3a (dev), 1b3a01317 (6.5)

    Description

      There are several wrong signatures in QtCore.pyi. This time, it's about the following:

      def qCritical(arg__1: bytes) -> None: ...
      def qDebug(arg__1: bytes) -> None: ...
      def qFatal(arg__1: bytes) -> None: ...
      def qWarning(arg__1: bytes) -> None: ...
      

      In all of them, arg__1 should be a str and probably named message.

      As a side note, why is there no qInfo there in QtCore?

      Attachments

        Issue Links

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

          Activity

            People

              kleint Friedemann Kleint
              stsav012 Anton Yablokov
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes