Details
-
Bug
-
Resolution: Fixed
-
P4: Low
-
6.5.2
-
None
-
-
940cad174 (dev), a50b5f9d7 (dev), 0ad1b4262 (6.6)
Description
Python 3.11.4 | packaged by conda-forge | (main, Jun 10 2023, 18:08:17) [GCC 12.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from PySide6.QtCore import QByteArray, QIODevice, QDataStream
>>> buffer = QByteArray(1000, 0)
>>> buffer.resize(0)
>>> ds = QDataStream(buffer, QIODevice.WriteOnly)
>>> b = b'test'
>>> type(b)
<class 'bytes'>
>>> ds.writeRawData(b)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ValueError: 'PySide6.QtCore.QDataStream.writeRawData' called with wrong argument values:
PySide6.QtCore.QDataStream.writeRawData(b'test',)
Found signature:
PySide6.QtCore.QDataStream.writeRawData(bytes)
Although the argument of writeRawData actually is <class 'bytes'>, it produces this odd error.