[PyQt] Wrong signature return by inspect

Phil Thompson phil at riverbankcomputing.com
Sun Apr 30 11:44:20 BST 2017


On 30 Apr 2017, at 10:57 am, Alessandro Pasotti <apasotti at gmail.com> wrote:
> 
> Hi,
> 
> I just noticed that PyQ5 signature returned by inspect.signature is wrong:
> 
> In [7]: from PyQt5.QtCore import QCoreApplication
> 
> In [8]: inspect.signature(QCoreApplication.__init__)
> Out[8]: <Signature (self, /, *args, **kwargs)>
> 
> I'm not sure where the problem is, any idea?

It's not supported. inspect signatures can't handle the complexity of signatures that C/C++ extensions can implement.

Phil


More information about the PyQt mailing list