diff options
| author | Christian Tismer <tismer@stackless.com> | 2021-12-07 15:55:14 +0100 |
|---|---|---|
| committer | Christian Tismer <tismer@stackless.com> | 2021-12-07 19:05:56 +0100 |
| commit | 8901719fd74ce8d8909608365e68f7354adaa254 (patch) | |
| tree | 9eed64f1d29fd9ebc31bec5fa92e737cae862bcf /sources/pyside6/libpysideqml/pysideqml.cpp | |
| parent | a071da0e4140ac343b149e18a546046a958576d9 (diff) | |
Signature: fix the __doc__ attribute of classes
The signature module had been changed to no longer default
the __doc__ attribute of classes to the __init__ signature.
This has the side effect of crashing "help(QtCore)".
Fixed by correct defaults in C++ (AttributeError) and by
setting a "None" default in the Python handler.
The make_helptest function defaults again correctly to the signature:
>>> errorhandler.make_helptext(QtWidgets.QApplication)
'QApplication(self) -> None\nQApplication(self, arg__1: Sequence[str]) -> None'
Change-Id: I140f2b940f98eb126541b18b0feb312c7c4e9728
Fixes: PYSIDE-1727
Pick-to: 6.2 5.15
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'sources/pyside6/libpysideqml/pysideqml.cpp')
0 files changed, 0 insertions, 0 deletions
