These are chat archives for PySide/pyside2

27th
May 2017
Fredrik Averpil
@fredrikaverpil
May 27 2017 06:56
@ethanhs actually, I just tried generating stubs from PyQt5 but I got errors (don't remember exactly what kind right now) and eventually gave up. The reason being PyQt5 providing working wheels for Python 3 (making it so much easier to install/manage over PySide2).
Ethan Smith
@ethanhs
May 27 2017 07:05
I see. At some point if I am particularly motivated, I might try to add a stub generator to shiboken, but we shall see
I haven't really touched it in many months
Christian Tismer
@ctismer
May 27 2017 08:58
@ethanhs what about mypy's stubgen? I tried it with PySide2 but with limited success. @fredrikaverpil what did you try?
Ethan Smith
@ethanhs
May 27 2017 09:25
It fails a lot and isn't that great with C extensions
and C extensions do not provide a great way to export type information
Christian Tismer
@ctismer
May 27 2017 09:29
@ethanhs I am trying to find out how PyQt5 and Sip generated the files.
hoped that mypy would help...
Ethan Smith
@ethanhs
May 27 2017 10:00
Sadly the information isn't really there. There isn't much Mypy can do, as it only checks types. Stubgen is sadly incomplete and may never be able to generate all the needed information
Fredrik Averpil
@fredrikaverpil
May 27 2017 16:16
@ctismer I also tried with mypy's stubgen
Christian Tismer
@ctismer
May 27 2017 17:59
@ethanhs @fredrikaverpil I thought in case of C extensions the documentation gets parsed. Which is not that solution, thinking of PySide's docu ... :)
From IRC (bridge bot)
@FromIRC
May 27 2017 19:44
<alina> if i want to pass on a list to a slot is this the correct way?
<alina> self.sgn_commenceProcess.connect(functools.partial(self.workerP.process, list))
<alina> I get this error(/s): https://pastebin.com/zK5x0PD2
<alina> and QObject::connect: Cannot queue arguments of type 'HANDLE' reads like an indicator for wrong connection