When certain changes to the XML of generated classes are made, these changes are performed internally, but the change is not visible in the generated code comments and, more importantly, not in the generated .pyi files.
We modify a function from QFile like so:
This has the desired effect to use PyPathLike instead of QString, but we can see the effect of this change nowhere.
As a workaround, we also added the function, giving
This has the effect that additionally a new type is added, with the only purpose to show up in the signature, because the functionality is already covered by the modify-function.
It would be very nice to avoid this hackish workaround.
|For Gerrit Dashboard: PYSIDE-1588|
|353205,11||Use replaced types in functions signatures||dev||pyside/pyside-setup||Status: MERGED||+2||0|
|353450,2||Use replaced types in functions signatures||6.1||pyside/pyside-setup||Status: MERGED||+2||0|
|353580,3||shiboken6: Use replaced types in functions signatures in generated code||dev||pyside/pyside-setup||Status: MERGED||+2||0|
|353668,2||shiboken6: Use replaced types in functions signatures in generated code||6.1||pyside/pyside-setup||Status: MERGED||+2||0|
|354207,6||shiboken6: Add a modification for PYI types||dev||pyside/pyside-setup||Status: MERGED||+2||0|
|355884,1||shiboken6: Fix "::" in signature strings with replaced types||dev||pyside/pyside-setup||Status: ABANDONED||0||0|