Details
-
Bug
-
Resolution: Fixed
-
P4: Low
-
6.6.1
-
None
-
Python 3.12
-
-
80fac314f (dev), ab4488b00 (dev), 3eb00f380 (6.7), 1570bf0a3 (6.7), 806a32f43 (dev), 8d5b1bdf2 (dev), 4a3d0e9bf (dev), 5b8ce3933 (dev), 19f78dfd6 (6.7), 360d9b7d5 (6.7), fb40c3687 (6.7), 60bec1733 (6.7), d66b276df (dev), 3b69819ee (6.7), 5b19cf6ab (dev)
Description
Hi,
When creating a subclass of QWebEnginePage:
class WebEnginePage(QWebEnginePage):
def javaScriptPrompt(self, url, msg, param):
return super().javaScriptPrompt(url, msg, param)
I got this error:
TypeError: WebEnginePage.javaScriptPrompt() takes 4 positional arguments but 5 were given
Which does not conform to the method specification in the pyi file:
def javaScriptPrompt(self, securityOrigin: Union[PySide6.QtCore.QUrl, str], msg: str, defaultValue: str) -> Tuple[bool, str]: ...
virtual protected bool QWebEnginePage::javaScriptPrompt(const QUrl &securityOrigin, const QString &msg, const QString &defaultValue, QString *result)
Attachments
For Gerrit Dashboard: PYSIDE-2602 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
538889,17 | WIP: shiboken6: Add more attributes to added functions | dev | pyside/pyside-setup | Status: ABANDONED | -2 | 0 |
538890,17 | WIP: test | dev | pyside/pyside-setup | Status: ABANDONED | -2 | 0 |
538932,13 | shiboken6: Enable adding virtual functions | dev | pyside/pyside-setup | Status: ABANDONED | 0 | 0 |
543543,19 | shiboken6: Extract common C++ function attributes | dev | pyside/pyside-setup | Status: MERGED | +2 | 0 |
553340,2 | shiboken6: Split out the part writing a Python override | dev | pyside/pyside-setup | Status: MERGED | +2 | 0 |
553341,2 | shiboken6: Refactor function virtualMethodReturn() | dev | pyside/pyside-setup | Status: MERGED | +2 | 0 |
553342,1 | WIP: shiboken6: Add a flag to generate helper functions for Python overrides | dev | pyside/pyside-setup | Status: ABANDONED | -2 | 0 |
553343,1 | WIP: shiboken6: Generate Python override into a separate helper function | dev | pyside/pyside-setup | Status: ABANDONED | -2 | 0 |
553890,2 | shiboken6: Split out the part writing a Python override | 6.7 | pyside/pyside-setup | Status: MERGED | +2 | 0 |
554024,2 | shiboken6: Refactor function virtualMethodReturn() | 6.7 | pyside/pyside-setup | Status: MERGED | +2 | 0 |
554621,8 | shiboken6: Introduce new position for code injection into virtual methods | dev | pyside/pyside-setup | Status: MERGED | +2 | 0 |
554622,14 | shiboken6: Generate Python override code for added virtuals | dev | pyside/pyside-setup | Status: MERGED | +2 | +1 |
555344,4 | shiboken6: Remove unused function modifications | dev | pyside/pyside-setup | Status: MERGED | +2 | 0 |
555424,6 | shiboken6: Remove function attribute FinalInTargetLang | dev | pyside/pyside-setup | Status: MERGED | +2 | 0 |
555515,5 | shiboken6: Remove class attribute FinalInTargetLang | dev | pyside/pyside-setup | Status: MERGED | +2 | 0 |
555699,2 | shiboken6: Remove unused function modifications | 6.7 | pyside/pyside-setup | Status: MERGED | +2 | 0 |
555701,2 | shiboken6: Remove function attribute FinalInTargetLang | 6.7 | pyside/pyside-setup | Status: MERGED | +2 | 0 |
555702,2 | shiboken6: Remove class attribute FinalInTargetLang | 6.7 | pyside/pyside-setup | Status: MERGED | +2 | 0 |
555703,2 | shiboken6: Extract common C++ function attributes | 6.7 | pyside/pyside-setup | Status: MERGED | +2 | 0 |
556243,2 | shiboken6: Fix warnings about unused init functions | dev | pyside/pyside-setup | Status: MERGED | +2 | 0 |
556265,2 | shiboken6: Fix warnings about unused init functions | 6.7 | pyside/pyside-setup | Status: MERGED | +2 | 0 |
556561,2 | shiboken6: Introduce new position for code injection into virtual methods | 6.7 | pyside/pyside-setup | Status: MERGED | +2 | 0 |
556563,2 | shiboken6: Generate Python override code for added virtuals | 6.7 | pyside/pyside-setup | Status: MERGED | +2 | 0 |