Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShyamnath Premnadh <Shyamnath.Premnadh@qt.io>2024-08-22 10:11:06 +0200
committerShyamnath Premnadh <Shyamnath.Premnadh@qt.io>2024-08-23 12:24:26 +0200
commit19c693497cf040d283c65c1fa9dc7fb7ecd45310 (patch)
treebe3fbea50bc353e10d24eee008b286eae3b0f528 /sources/pyside-tools/deploy.py
parent902b873349672a607e656df2d348db228142266e (diff)
PySide: Fix QByteArray.fromRawData() signature
- For some reason, libclang after parsing the headers ignores the `const` qualifier in the `data` parameter of the `QByteArray::fromRawData()`, making the paramerter `char*`. `char*` maps to `typing.Union[bytes, bytearray, memoryview]` which causes the issue. The expected correct type for the `data` parameter is `str` in Python. - This patch explicitly specifies the pyi-type as `str` thereby overriding the default `char*` type. Note: This patch is a workaround for the issue. The actual issue should be fixed in the libclang, if it is fixable. Fixes: PYSIDE-2831 Pick-to: 6.7 6.5 6.2 Change-Id: Iee3f6a54e1d65e9e4cb0082b7b6b17ba9ac501aa Reviewed-by: Christian Tismer <tismer@stackless.com>
Diffstat (limited to 'sources/pyside-tools/deploy.py')
0 files changed, 0 insertions, 0 deletions