QProcess.startDetached broken with None argument in snapshots

Florian Bruhin me at the-compiler.org
Thu Jul 20 23:05:23 BST 2023


This works with PyQt 6.5.1:

    >>> from PyQt6.QtCore import QProcess
    >>> QProcess.startDetached("echo", ["test"], None)
    test
    (True, 132311)

But fails on 6.5.2.dev2307152153:

    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
    TypeError: arguments did not match any overloaded call:
      startDetached(
          program: Optional[str],
          arguments: Iterable[Optional[str]] = [],
          workingDirectory: Optional[str] = ''
      ): argument 3 has unexpected type 'NoneType'
      startDetached(self): first argument of unbound method must have type 'QProcess'

Florian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20230721/a272a52f/attachment.sig>


More information about the PyQt mailing list