Weird QProxyStyle TypeError on Python 3.12
Florian Bruhin
me at the-compiler.org
Thu Sep 21 08:52:30 BST 2023
Hey,
With CPython 3.12.0rc1 and PyQt 6.5.2 on Fedora 39 Beta 1.1, it looks
like it's impossible to create a QProxyStyle with no arguments.
A "docker run -it fedora:39" followed by:
dnf install python-pyqt6
python3 -c 'from PyQt6.QtWidgets import QProxyStyle; s = QProxyStyle()'
Results in:
TypeError: arguments did not match any overloaded call:
QProxyStyle(style: typing.Optional[QStyle] = None): not enough arguments
QProxyStyle(key: Optional[str]): not enough arguments
Using QProxyStyle(None) seems to work as a workaround.
For some reason, I can *not* reproduce this right now on Archlinux with
Python 3.12.0rc2 (but Python 3.12.0rc3 on Fedora also reproduces it,
*and* I've seen this exact error on Archlinux earlier this week, so not
sure yet what triggers it).
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/20230921/003edcda/attachment.sig>
More information about the PyQt
mailing list