Details
Description
Having the following code
from PySide2.QtCore import QObject from dataclasses import dataclass @dataclass class SomeObject(QObject): pass
Generates the following error:
File "/usr/local/Cellar/python/3.7.5/Frameworks/Python.framework/Versions/3.7/lib/python3.7/dataclasses.py", line 991, in dataclass return wrap(_cls) File "/usr/local/Cellar/python/3.7.5/Frameworks/Python.framework/Versions/3.7/lib/python3.7/dataclasses.py", line 983, in wrap return _process_class(cls, init, repr, eq, order, unsafe_hash, frozen) File "/usr/local/Cellar/python/3.7.5/Frameworks/Python.framework/Versions/3.7/lib/python3.7/dataclasses.py", line 960, in _process_class str(inspect.signature(cls)).replace(' -> None', '')) AttributeError: attribute '__doc__' of 'Shiboken.ObjectType' objects is not writable
I can say this is not an issue with PySide2 5.12.5, I have not checked any of the 5.13 versions.