QProcess.startDetached broken with None argument in snapshots

Phil Thompson phil at riverbankcomputing.com
Fri Jul 21 13:49:55 BST 2023


On 20/07/2023 23:05, Florian Bruhin wrote:
> 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'

Fixed, thanks.

Phil


More information about the PyQt mailing list