diff --git a/PyQt5-stubs/Qt3DAnimation.pyi b/PyQt5-stubs/Qt3DAnimation.pyi index c99dae8d..00da3485 100644 --- a/PyQt5-stubs/Qt3DAnimation.pyi +++ b/PyQt5-stubs/Qt3DAnimation.pyi @@ -32,7 +32,6 @@ from PyQt5 import Qt3DCore import datetime # Convenient type aliases. -PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal] PYQT_SLOT = typing.Union[typing.Callable[..., None], QtCore.pyqtBoundSignal] # Convenient aliases for complicated OpenGL types. diff --git a/PyQt5-stubs/Qt3DCore.pyi b/PyQt5-stubs/Qt3DCore.pyi index 53957eb5..636ed16f 100644 --- a/PyQt5-stubs/Qt3DCore.pyi +++ b/PyQt5-stubs/Qt3DCore.pyi @@ -30,7 +30,6 @@ from PyQt5 import QtCore import datetime # Convenient type aliases. -PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal] PYQT_SLOT = typing.Union[typing.Callable[..., None], QtCore.pyqtBoundSignal] # Convenient aliases for complicated OpenGL types. diff --git a/PyQt5-stubs/Qt3DExtras.pyi b/PyQt5-stubs/Qt3DExtras.pyi index fbe7ba29..93f661fd 100644 --- a/PyQt5-stubs/Qt3DExtras.pyi +++ b/PyQt5-stubs/Qt3DExtras.pyi @@ -33,7 +33,6 @@ from PyQt5 import Qt3DCore import datetime # Convenient type aliases. -PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal] PYQT_SLOT = typing.Union[typing.Callable[..., None], QtCore.pyqtBoundSignal] # Convenient aliases for complicated OpenGL types. diff --git a/PyQt5-stubs/Qt3DInput.pyi b/PyQt5-stubs/Qt3DInput.pyi index 397a40ef..5b47561d 100644 --- a/PyQt5-stubs/Qt3DInput.pyi +++ b/PyQt5-stubs/Qt3DInput.pyi @@ -31,7 +31,6 @@ from PyQt5 import Qt3DCore import datetime # Convenient type aliases. -PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal] PYQT_SLOT = typing.Union[typing.Callable[..., None], QtCore.pyqtBoundSignal] # Convenient aliases for complicated OpenGL types. diff --git a/PyQt5-stubs/Qt3DLogic.pyi b/PyQt5-stubs/Qt3DLogic.pyi index 35276efd..1ca2933d 100644 --- a/PyQt5-stubs/Qt3DLogic.pyi +++ b/PyQt5-stubs/Qt3DLogic.pyi @@ -30,7 +30,6 @@ from PyQt5 import Qt3DCore import datetime # Convenient type aliases. -PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal] PYQT_SLOT = typing.Union[typing.Callable[..., None], QtCore.pyqtBoundSignal] # Convenient aliases for complicated OpenGL types. diff --git a/PyQt5-stubs/Qt3DRender.pyi b/PyQt5-stubs/Qt3DRender.pyi index e3b9315f..f7e23365 100644 --- a/PyQt5-stubs/Qt3DRender.pyi +++ b/PyQt5-stubs/Qt3DRender.pyi @@ -31,7 +31,6 @@ from PyQt5 import Qt3DCore import datetime # Convenient type aliases. -PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal] PYQT_SLOT = typing.Union[typing.Callable[..., None], QtCore.pyqtBoundSignal] # Convenient aliases for complicated OpenGL types. diff --git a/PyQt5-stubs/QtBluetooth.pyi b/PyQt5-stubs/QtBluetooth.pyi index 5091be07..fa93a374 100644 --- a/PyQt5-stubs/QtBluetooth.pyi +++ b/PyQt5-stubs/QtBluetooth.pyi @@ -29,7 +29,6 @@ from PyQt5 import QtCore import datetime # Convenient type aliases. -PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal] PYQT_SLOT = typing.Union[typing.Callable[..., None], QtCore.pyqtBoundSignal] diff --git a/PyQt5-stubs/QtChart.pyi b/PyQt5-stubs/QtChart.pyi index 982f78fb..2b3de116 100644 --- a/PyQt5-stubs/QtChart.pyi +++ b/PyQt5-stubs/QtChart.pyi @@ -31,7 +31,6 @@ from PyQt5 import QtCore import datetime # Convenient type aliases. -PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal] PYQT_SLOT = typing.Union[typing.Callable[..., None], QtCore.pyqtBoundSignal] # Convenient aliases for complicated OpenGL types. diff --git a/PyQt5-stubs/QtCore.pyi b/PyQt5-stubs/QtCore.pyi index ecf511e3..2255190b 100644 --- a/PyQt5-stubs/QtCore.pyi +++ b/PyQt5-stubs/QtCore.pyi @@ -28,21 +28,26 @@ import enum # import was missing # Support for QDate, QDateTime and QTime. import datetime -# Support for new-style signals and slots. -class pyqtSignal: # add methods - def __init__(self, *types: typing.Any, name: str = ...) -> None: ... +class pyqtBoundSignal: + signal = ... # type: str + + def __getitem__(self, key: object) -> "pyqtBoundSignal": ... + def emit(self, *args: typing.Any) -> None: ... def connect(self, slot: "PYQT_SLOT") -> "QMetaObject.Connection": ... def disconnect(self, slot: typing.Union["PYQT_SLOT", "QMetaObject.Connection"]=None) -> None: ... -class pyqtBoundSignal: - signal = ... # type: str +class pyqtSignal: + def __init__(self, *types: typing.Any, name: str = ...) -> None: ... + + @typing.overload + def __get__(self, instance: None, owner: typing.Type["QObject"]) -> "pyqtSignal": ... + @typing.overload + def __get__(self, instance: "QObject", owner: typing.Type["QObject"]) -> pyqtBoundSignal: ... - def emit(self, *args: typing.Any) -> None: ... # Convenient type aliases. -PYQT_SIGNAL = typing.Union[pyqtSignal, pyqtBoundSignal] PYQT_SLOT = typing.Union[typing.Callable[..., object], pyqtBoundSignal] @@ -1769,13 +1774,13 @@ class QObject(sip.wrapper): def customEvent(self, a0: 'QEvent') -> None: ... def childEvent(self, a0: 'QChildEvent') -> None: ... def timerEvent(self, a0: 'QTimerEvent') -> None: ... - def receivers(self, signal: PYQT_SIGNAL) -> int: ... + def receivers(self, signal: pyqtBoundSignal) -> int: ... def sender(self) -> 'QObject': ... def deleteLater(self) -> None: ... def inherits(self, classname: str) -> bool: ... def parent(self) -> 'QObject': ... - objectNameChanged: pyqtSignal - destroyed: pyqtSignal + objectNameChanged: typing.ClassVar[pyqtSignal] + destroyed: typing.ClassVar[pyqtSignal] def property(self, name: str) -> typing.Any: ... def setProperty(self, name: str, value: typing.Any) -> bool: ... def dynamicPropertyNames(self) -> typing.List['QByteArray']: ... @@ -2033,7 +2038,7 @@ class QAbstractItemModel(QObject): def layoutChanged(self, parents: typing.Iterable[QPersistentModelIndex] = ..., hint: 'QAbstractItemModel.LayoutChangeHint' = ...) -> None: ... def layoutAboutToBeChanged(self, parents: typing.Iterable[QPersistentModelIndex] = ..., hint: 'QAbstractItemModel.LayoutChangeHint' = ...) -> None: ... def headerDataChanged(self, orientation: Qt.Orientation, first: int, last: int) -> None: ... - dataChanged = pyqtSignal() + dataChanged: typing.ClassVar[pyqtSignal] def span(self, index: QModelIndex) -> 'QSize': ... def match(self, start: QModelIndex, role: int, value: typing.Any, hits: int = ..., flags: typing.Union[Qt.MatchFlags, Qt.MatchFlag] = ...) -> typing.List[QModelIndex]: ... def buddy(self, index: QModelIndex) -> QModelIndex: ... @@ -2949,7 +2954,7 @@ class QCoreApplication(QObject): @staticmethod def setApplicationVersion(version: str) -> None: ... def event(self, a0: 'QEvent') -> bool: ... - aboutToQuit: pyqtSignal + aboutToQuit: typing.ClassVar[pyqtSignal] @staticmethod def quit() -> None: ... @staticmethod @@ -3019,10 +3024,10 @@ class QCoreApplication(QObject): def organizationDomain() -> str: ... @staticmethod def setOrganizationDomain(orgDomain: str) -> None: ... - applicationNameChanged: pyqtSignal - applicationVersionChanged: pyqtSignal - organizationDomainChanged: pyqtSignal - organizationNameChanged: pyqtSignal + applicationNameChanged: typing.ClassVar[pyqtSignal] + applicationVersionChanged: typing.ClassVar[pyqtSignal] + organizationDomainChanged: typing.ClassVar[pyqtSignal] + organizationNameChanged: typing.ClassVar[pyqtSignal] class QEvent(sip.wrapper): @@ -6703,12 +6708,12 @@ class QProcess(QIODevice): def readData(self, maxlen: int) -> bytes: ... def setupChildProcess(self) -> None: ... def setProcessState(self, state: 'QProcess.ProcessState') -> None: ... - errorOccurred: pyqtSignal - readyReadStandardError: pyqtSignal - readyReadStandardOutput: pyqtSignal - stateChanged: pyqtSignal - finished: pyqtSignal - started: pyqtSignal + errorOccurred: typing.ClassVar[pyqtSignal] + readyReadStandardError: typing.ClassVar[pyqtSignal] + readyReadStandardOutput: typing.ClassVar[pyqtSignal] + stateChanged: typing.ClassVar[pyqtSignal] + finished: typing.ClassVar[pyqtSignal] + started: typing.ClassVar[pyqtSignal] def kill(self) -> None: ... def terminate(self) -> None: ... def setStandardOutputProcess(self, destination: 'QProcess') -> None: ... @@ -7471,7 +7476,7 @@ class QSignalMapper(QObject): def mappedWidget(self, a0: QWidget) -> None: ... def mappedString(self, a0: str) -> None: ... def mappedInt(self, a0: int) -> None: ... - mapped: pyqtSignal + mapped: typing.ClassVar[pyqtSignal] @typing.overload def mapping(self, id: int) -> QObject: ... @typing.overload @@ -8356,7 +8361,7 @@ class QTimer(QObject): def timerType(self) -> Qt.TimerType: ... def setTimerType(self, atype: Qt.TimerType) -> None: ... def timerEvent(self, a0: QTimerEvent) -> None: ... - timeout: pyqtSignal + timeout: typing.ClassVar[pyqtSignal] def stop(self) -> None: ... @typing.overload def start(self, msec: int) -> None: ... diff --git a/PyQt5-stubs/QtDBus.pyi b/PyQt5-stubs/QtDBus.pyi index 00af7867..0afd1a56 100644 --- a/PyQt5-stubs/QtDBus.pyi +++ b/PyQt5-stubs/QtDBus.pyi @@ -29,7 +29,6 @@ from PyQt5 import QtCore import datetime # Convenient type aliases. -PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal] PYQT_SLOT = typing.Union[typing.Callable[..., None], QtCore.pyqtBoundSignal] diff --git a/PyQt5-stubs/QtDataVisualization.pyi b/PyQt5-stubs/QtDataVisualization.pyi index 04d20e65..94b87a93 100644 --- a/PyQt5-stubs/QtDataVisualization.pyi +++ b/PyQt5-stubs/QtDataVisualization.pyi @@ -30,7 +30,6 @@ from PyQt5 import QtCore import datetime # Convenient type aliases. -PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal] PYQT_SLOT = typing.Union[typing.Callable[..., None], QtCore.pyqtBoundSignal] # Convenient aliases for complicated OpenGL types. diff --git a/PyQt5-stubs/QtDesigner.pyi b/PyQt5-stubs/QtDesigner.pyi index decbdbd6..a57be912 100644 --- a/PyQt5-stubs/QtDesigner.pyi +++ b/PyQt5-stubs/QtDesigner.pyi @@ -31,7 +31,6 @@ from PyQt5 import QtCore import datetime # Convenient type aliases. -PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal] PYQT_SLOT = typing.Union[typing.Callable[..., None], QtCore.pyqtBoundSignal] # Convenient aliases for complicated OpenGL types. diff --git a/PyQt5-stubs/QtGui.pyi b/PyQt5-stubs/QtGui.pyi index 045266a1..7e5af521 100644 --- a/PyQt5-stubs/QtGui.pyi +++ b/PyQt5-stubs/QtGui.pyi @@ -29,7 +29,6 @@ from PyQt5 import QtCore import datetime # Convenient type aliases. -PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal] PYQT_SLOT = typing.Union[typing.Callable[..., None], QtCore.pyqtBoundSignal] # Convenient aliases for complicated OpenGL types. @@ -913,10 +912,10 @@ class QClipboard(QtCore.QObject): Selection = ... # type: 'QClipboard.Mode' FindBuffer = ... # type: 'QClipboard.Mode' - selectionChanged: PYQT_SIGNAL - findBufferChanged: PYQT_SIGNAL - dataChanged: PYQT_SIGNAL - changed: PYQT_SIGNAL + selectionChanged: typing.ClassVar[QtCore.pyqtSignal] + findBufferChanged: typing.ClassVar[QtCore.pyqtSignal] + dataChanged: typing.ClassVar[QtCore.pyqtSignal] + changed: typing.ClassVar[QtCore.pyqtSignal] def setPixmap(self, a0: QPixmap, mode: 'QClipboard.Mode' = ...) -> None: ... def setImage(self, a0: 'QImage', mode: 'QClipboard.Mode' = ...) -> None: ... def pixmap(self, mode: 'QClipboard.Mode' = ...) -> QPixmap: ... @@ -4452,9 +4451,9 @@ class QWindow(QtCore.QObject, QSurface): def setWindowStates(self, states: typing.Union[QtCore.Qt.WindowStates, QtCore.Qt.WindowState]) -> None: ... def windowStates(self) -> QtCore.Qt.WindowStates: ... def setFlag(self, a0: QtCore.Qt.WindowType, on: bool = ...) -> None: ... - opacityChanged: PYQT_SIGNAL - activeChanged: PYQT_SIGNAL - visibilityChanged: PYQT_SIGNAL + opacityChanged: typing.ClassVar[QtCore.pyqtSignal] + activeChanged: typing.ClassVar[QtCore.pyqtSignal] + visibilityChanged: typing.ClassVar[QtCore.pyqtSignal] @staticmethod def fromWinId(id: sip.voidptr) -> 'QWindow': ... def mask(self) -> 'QRegion': ... @@ -4479,21 +4478,21 @@ class QWindow(QtCore.QObject, QSurface): def moveEvent(self, a0: QMoveEvent) -> None: ... def resizeEvent(self, a0: QResizeEvent) -> None: ... def exposeEvent(self, a0: QExposeEvent) -> None: ... - windowTitleChanged: PYQT_SIGNAL - focusObjectChanged: PYQT_SIGNAL - contentOrientationChanged: PYQT_SIGNAL - visibleChanged: PYQT_SIGNAL - maximumHeightChanged: PYQT_SIGNAL - maximumWidthChanged: PYQT_SIGNAL - minimumHeightChanged: PYQT_SIGNAL - minimumWidthChanged: PYQT_SIGNAL - heightChanged: PYQT_SIGNAL - widthChanged: PYQT_SIGNAL - yChanged: PYQT_SIGNAL - xChanged: PYQT_SIGNAL - windowStateChanged: PYQT_SIGNAL - modalityChanged: PYQT_SIGNAL - screenChanged: PYQT_SIGNAL + windowTitleChanged: typing.ClassVar[QtCore.pyqtSignal] + focusObjectChanged: typing.ClassVar[QtCore.pyqtSignal] + contentOrientationChanged: typing.ClassVar[QtCore.pyqtSignal] + visibleChanged: typing.ClassVar[QtCore.pyqtSignal] + maximumHeightChanged: typing.ClassVar[QtCore.pyqtSignal] + maximumWidthChanged: typing.ClassVar[QtCore.pyqtSignal] + minimumHeightChanged: typing.ClassVar[QtCore.pyqtSignal] + minimumWidthChanged: typing.ClassVar[QtCore.pyqtSignal] + heightChanged: typing.ClassVar[QtCore.pyqtSignal] + widthChanged: typing.ClassVar[QtCore.pyqtSignal] + yChanged: typing.ClassVar[QtCore.pyqtSignal] + xChanged: typing.ClassVar[QtCore.pyqtSignal] + windowStateChanged: typing.ClassVar[QtCore.pyqtSignal] + modalityChanged: typing.ClassVar[QtCore.pyqtSignal] + screenChanged: typing.ClassVar[QtCore.pyqtSignal] def requestUpdate(self) -> None: ... def alert(self, msec: int) -> None: ... def setMaximumHeight(self, h: int) -> None: ... diff --git a/PyQt5-stubs/QtHelp.pyi b/PyQt5-stubs/QtHelp.pyi index 1983d4ca..0dc5b27b 100644 --- a/PyQt5-stubs/QtHelp.pyi +++ b/PyQt5-stubs/QtHelp.pyi @@ -31,7 +31,6 @@ from PyQt5 import QtCore import datetime # Convenient type aliases. -PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal] PYQT_SLOT = typing.Union[typing.Callable[..., None], QtCore.pyqtBoundSignal] # Convenient aliases for complicated OpenGL types. diff --git a/PyQt5-stubs/QtLocation.pyi b/PyQt5-stubs/QtLocation.pyi index 55d7df2e..a5a05dc3 100644 --- a/PyQt5-stubs/QtLocation.pyi +++ b/PyQt5-stubs/QtLocation.pyi @@ -30,7 +30,6 @@ from PyQt5 import QtCore import datetime # Convenient type aliases. -PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal] PYQT_SLOT = typing.Union[typing.Callable[..., None], QtCore.pyqtBoundSignal] diff --git a/PyQt5-stubs/QtMultimedia.pyi b/PyQt5-stubs/QtMultimedia.pyi index 8e79ae99..98addc4e 100644 --- a/PyQt5-stubs/QtMultimedia.pyi +++ b/PyQt5-stubs/QtMultimedia.pyi @@ -32,7 +32,6 @@ from PyQt5 import QtCore import datetime # Convenient type aliases. -PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal] PYQT_SLOT = typing.Union[typing.Callable[..., None], QtCore.pyqtBoundSignal] # Convenient aliases for complicated OpenGL types. diff --git a/PyQt5-stubs/QtMultimediaWidgets.pyi b/PyQt5-stubs/QtMultimediaWidgets.pyi index 0a3c7986..fe46f3a6 100644 --- a/PyQt5-stubs/QtMultimediaWidgets.pyi +++ b/PyQt5-stubs/QtMultimediaWidgets.pyi @@ -32,7 +32,6 @@ from PyQt5 import QtCore import datetime # Convenient type aliases. -PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal] PYQT_SLOT = typing.Union[typing.Callable[..., None], QtCore.pyqtBoundSignal] # Convenient aliases for complicated OpenGL types. diff --git a/PyQt5-stubs/QtNetwork.pyi b/PyQt5-stubs/QtNetwork.pyi index 9f410f4a..6dbc1824 100644 --- a/PyQt5-stubs/QtNetwork.pyi +++ b/PyQt5-stubs/QtNetwork.pyi @@ -29,7 +29,6 @@ from PyQt5 import QtCore import datetime # Convenient type aliases. -PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal] PYQT_SLOT = typing.Union[typing.Callable[..., None], QtCore.pyqtBoundSignal] diff --git a/PyQt5-stubs/QtNetworkAuth.pyi b/PyQt5-stubs/QtNetworkAuth.pyi index 1c8a3468..16e58d35 100644 --- a/PyQt5-stubs/QtNetworkAuth.pyi +++ b/PyQt5-stubs/QtNetworkAuth.pyi @@ -30,7 +30,6 @@ from PyQt5 import QtCore import datetime # Convenient type aliases. -PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal] PYQT_SLOT = typing.Union[typing.Callable[..., None], QtCore.pyqtBoundSignal] diff --git a/PyQt5-stubs/QtNfc.pyi b/PyQt5-stubs/QtNfc.pyi index b7764a10..5a5a588c 100644 --- a/PyQt5-stubs/QtNfc.pyi +++ b/PyQt5-stubs/QtNfc.pyi @@ -29,7 +29,6 @@ from PyQt5 import QtCore import datetime # Convenient type aliases. -PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal] PYQT_SLOT = typing.Union[typing.Callable[..., None], QtCore.pyqtBoundSignal] diff --git a/PyQt5-stubs/QtOpenGL.pyi b/PyQt5-stubs/QtOpenGL.pyi index 04b3bfa9..26c6ae0a 100644 --- a/PyQt5-stubs/QtOpenGL.pyi +++ b/PyQt5-stubs/QtOpenGL.pyi @@ -31,7 +31,6 @@ from PyQt5 import QtCore import datetime # Convenient type aliases. -PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal] PYQT_SLOT = typing.Union[typing.Callable[..., None], QtCore.pyqtBoundSignal] # Convenient aliases for complicated OpenGL types. diff --git a/PyQt5-stubs/QtPositioning.pyi b/PyQt5-stubs/QtPositioning.pyi index 8b4ff66f..6d82371a 100644 --- a/PyQt5-stubs/QtPositioning.pyi +++ b/PyQt5-stubs/QtPositioning.pyi @@ -29,7 +29,6 @@ from PyQt5 import QtCore import datetime # Convenient type aliases. -PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal] PYQT_SLOT = typing.Union[typing.Callable[..., None], QtCore.pyqtBoundSignal] diff --git a/PyQt5-stubs/QtPrintSupport.pyi b/PyQt5-stubs/QtPrintSupport.pyi index c78080c7..1f2e7f44 100644 --- a/PyQt5-stubs/QtPrintSupport.pyi +++ b/PyQt5-stubs/QtPrintSupport.pyi @@ -31,7 +31,6 @@ from PyQt5 import QtCore import datetime # Convenient type aliases. -PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal] PYQT_SLOT = typing.Union[typing.Callable[..., None], QtCore.pyqtBoundSignal] # Convenient aliases for complicated OpenGL types. @@ -383,7 +382,7 @@ class QPrintPreviewDialog(QtWidgets.QDialog): @typing.overload def __init__(self, printer: QPrinter, parent: typing.Optional[QtWidgets.QWidget] = ..., flags: typing.Union[QtCore.Qt.WindowFlags, QtCore.Qt.WindowType] = ...) -> None: ... - paintRequested: QtCore.pyqtSignal + paintRequested: typing.ClassVar[QtCore.pyqtSignal] def done(self, result: int) -> None: ... def printer(self) -> QPrinter: ... @@ -412,8 +411,8 @@ class QPrintPreviewWidget(QtWidgets.QWidget): def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ..., flags: typing.Union[QtCore.Qt.WindowFlags, QtCore.Qt.WindowType] = ...) -> None: ... def pageCount(self) -> int: ... - previewChanged: QtCore.pyqtSignal - paintRequested: QtCore.pyqtSignal + previewChanged: typing.ClassVar[QtCore.pyqtSignal] + paintRequested: typing.ClassVar[QtCore.pyqtSignal] def updatePreview(self) -> None: ... def setAllPagesViewMode(self) -> None: ... def setFacingPagesViewMode(self) -> None: ... diff --git a/PyQt5-stubs/QtPurchasing.pyi b/PyQt5-stubs/QtPurchasing.pyi index 2c6cc657..5fbff392 100644 --- a/PyQt5-stubs/QtPurchasing.pyi +++ b/PyQt5-stubs/QtPurchasing.pyi @@ -29,7 +29,6 @@ from PyQt5 import QtCore import datetime # Convenient type aliases. -PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal] PYQT_SLOT = typing.Union[typing.Callable[..., None], QtCore.pyqtBoundSignal] diff --git a/PyQt5-stubs/QtQml.pyi b/PyQt5-stubs/QtQml.pyi index 4368d638..726eb70f 100644 --- a/PyQt5-stubs/QtQml.pyi +++ b/PyQt5-stubs/QtQml.pyi @@ -30,7 +30,6 @@ from PyQt5 import QtCore import datetime # Convenient type aliases. -PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal] PYQT_SLOT = typing.Union[typing.Callable[..., None], QtCore.pyqtBoundSignal] @@ -183,9 +182,9 @@ class QQmlEngine(QJSEngine): def singletonInstance(self, qmlTypeId: int) -> QtCore.QObject: ... def retranslate(self) -> None: ... def offlineStorageDatabaseFilePath(self, databaseName: str) -> str: ... - exit: PYQT_SIGNAL - warnings: PYQT_SIGNAL - quit: PYQT_SIGNAL + exit: typing.ClassVar[QtCore.pyqtSignal] + warnings: typing.ClassVar[QtCore.pyqtSignal] + quit: typing.ClassVar[QtCore.pyqtSignal] def event(self, a0: QtCore.QEvent) -> bool: ... @staticmethod def objectOwnership(a0: QtCore.QObject) -> 'QQmlEngine.ObjectOwnership': ... @@ -231,7 +230,7 @@ class QQmlApplicationEngine(QQmlEngine): @typing.overload def __init__(self, filePath: str, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... - objectCreated: PYQT_SIGNAL + objectCreated: typing.ClassVar[QtCore.pyqtSignal] def setInitialProperties(self, initialProperties: typing.Dict[str, typing.Any]) -> None: ... def loadData(self, data: typing.Union[QtCore.QByteArray, bytes, bytearray], url: QtCore.QUrl = ...) -> None: ... @typing.overload diff --git a/PyQt5-stubs/QtQuick.pyi b/PyQt5-stubs/QtQuick.pyi index 7c8230f2..453074f5 100644 --- a/PyQt5-stubs/QtQuick.pyi +++ b/PyQt5-stubs/QtQuick.pyi @@ -31,7 +31,6 @@ from PyQt5 import QtCore import datetime # Convenient type aliases. -PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal] PYQT_SLOT = typing.Union[typing.Callable[..., None], QtCore.pyqtBoundSignal] # Convenient aliases for complicated OpenGL types. @@ -475,8 +474,8 @@ class QQuickWindow(QtGui.QWindow): def __init__(self, parent: typing.Optional[QtGui.QWindow] = ...) -> None: ... - afterRenderPassRecording: PYQT_SIGNAL - beforeRenderPassRecording: PYQT_SIGNAL + afterRenderPassRecording: typing.ClassVar[QtCore.pyqtSignal] + beforeRenderPassRecording: typing.ClassVar[QtCore.pyqtSignal] def endExternalCommands(self) -> None: ... def beginExternalCommands(self) -> None: ... @staticmethod @@ -497,14 +496,14 @@ class QQuickWindow(QtGui.QWindow): def isSceneGraphInitialized(self) -> bool: ... def effectiveDevicePixelRatio(self) -> float: ... def scheduleRenderJob(self, job: QtCore.QRunnable, schedule: 'QQuickWindow.RenderStage') -> None: ... - sceneGraphError: PYQT_SIGNAL - sceneGraphAboutToStop: PYQT_SIGNAL - afterAnimating: PYQT_SIGNAL - afterSynchronizing: PYQT_SIGNAL - openglContextCreated: PYQT_SIGNAL + sceneGraphError: typing.ClassVar[QtCore.pyqtSignal] + sceneGraphAboutToStop: typing.ClassVar[QtCore.pyqtSignal] + afterAnimating: typing.ClassVar[QtCore.pyqtSignal] + afterSynchronizing: typing.ClassVar[QtCore.pyqtSignal] + openglContextCreated: typing.ClassVar[QtCore.pyqtSignal] def resetOpenGLState(self) -> None: ... - activeFocusItemChanged: PYQT_SIGNAL - closing: PYQT_SIGNAL + activeFocusItemChanged: typing.ClassVar[QtCore.pyqtSignal] + closing: typing.ClassVar[QtCore.pyqtSignal] @staticmethod def setDefaultAlphaBuffer(useAlpha: bool) -> None: ... @staticmethod @@ -526,13 +525,13 @@ class QQuickWindow(QtGui.QWindow): def exposeEvent(self, a0: QtGui.QExposeEvent) -> None: ... def releaseResources(self) -> None: ... def update(self) -> None: ... - colorChanged: PYQT_SIGNAL - afterRendering: PYQT_SIGNAL - beforeRendering: PYQT_SIGNAL - beforeSynchronizing: PYQT_SIGNAL - sceneGraphInvalidated: PYQT_SIGNAL - sceneGraphInitialized: PYQT_SIGNAL - frameSwapped: PYQT_SIGNAL + colorChanged: typing.ClassVar[QtCore.pyqtSignal] + afterRendering: typing.ClassVar[QtCore.pyqtSignal] + beforeRendering: typing.ClassVar[QtCore.pyqtSignal] + beforeSynchronizing: typing.ClassVar[QtCore.pyqtSignal] + sceneGraphInvalidated: typing.ClassVar[QtCore.pyqtSignal] + sceneGraphInitialized: typing.ClassVar[QtCore.pyqtSignal] + frameSwapped: typing.ClassVar[QtCore.pyqtSignal] def openglContext(self) -> QtGui.QOpenGLContext: ... def isPersistentSceneGraph(self) -> bool: ... def setPersistentSceneGraph(self, persistent: bool) -> None: ... diff --git a/PyQt5-stubs/QtQuickWidgets.pyi b/PyQt5-stubs/QtQuickWidgets.pyi index 73ccfd23..c350137b 100644 --- a/PyQt5-stubs/QtQuickWidgets.pyi +++ b/PyQt5-stubs/QtQuickWidgets.pyi @@ -33,7 +33,6 @@ from PyQt5 import QtCore import datetime # Convenient type aliases. -PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal] PYQT_SLOT = typing.Union[typing.Callable[..., None], QtCore.pyqtBoundSignal] # Convenient aliases for complicated OpenGL types. diff --git a/PyQt5-stubs/QtRemoteObjects.pyi b/PyQt5-stubs/QtRemoteObjects.pyi index 7404cf6b..c2a471ef 100644 --- a/PyQt5-stubs/QtRemoteObjects.pyi +++ b/PyQt5-stubs/QtRemoteObjects.pyi @@ -29,7 +29,6 @@ from PyQt5 import QtCore import datetime # Convenient type aliases. -PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal] PYQT_SLOT = typing.Union[typing.Callable[..., None], QtCore.pyqtBoundSignal] diff --git a/PyQt5-stubs/QtSensors.pyi b/PyQt5-stubs/QtSensors.pyi index 069b0ec3..e87027f8 100644 --- a/PyQt5-stubs/QtSensors.pyi +++ b/PyQt5-stubs/QtSensors.pyi @@ -29,7 +29,6 @@ from PyQt5 import QtCore import datetime # Convenient type aliases. -PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal] PYQT_SLOT = typing.Union[typing.Callable[..., None], QtCore.pyqtBoundSignal] diff --git a/PyQt5-stubs/QtSerialPort.pyi b/PyQt5-stubs/QtSerialPort.pyi index 61956aa0..b9c26c8f 100644 --- a/PyQt5-stubs/QtSerialPort.pyi +++ b/PyQt5-stubs/QtSerialPort.pyi @@ -29,7 +29,6 @@ from PyQt5 import QtCore import datetime # Convenient type aliases. -PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal] PYQT_SLOT = typing.Union[typing.Callable[..., None], QtCore.pyqtBoundSignal] diff --git a/PyQt5-stubs/QtSql.pyi b/PyQt5-stubs/QtSql.pyi index 2ddbd8ae..35657fcf 100644 --- a/PyQt5-stubs/QtSql.pyi +++ b/PyQt5-stubs/QtSql.pyi @@ -30,7 +30,6 @@ from PyQt5 import QtCore import datetime # Convenient type aliases. -PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal] PYQT_SLOT = typing.Union[typing.Callable[..., None], QtCore.pyqtBoundSignal] # Convenient aliases for complicated OpenGL types. diff --git a/PyQt5-stubs/QtSvg.pyi b/PyQt5-stubs/QtSvg.pyi index 869816c8..bae77f69 100644 --- a/PyQt5-stubs/QtSvg.pyi +++ b/PyQt5-stubs/QtSvg.pyi @@ -31,7 +31,6 @@ from PyQt5 import QtCore import datetime # Convenient type aliases. -PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal] PYQT_SLOT = typing.Union[typing.Callable[..., None], QtCore.pyqtBoundSignal] # Convenient aliases for complicated OpenGL types. diff --git a/PyQt5-stubs/QtTest.pyi b/PyQt5-stubs/QtTest.pyi index d22c0b95..242aa3fd 100644 --- a/PyQt5-stubs/QtTest.pyi +++ b/PyQt5-stubs/QtTest.pyi @@ -31,7 +31,6 @@ from PyQt5 import QtGui # add import of QtGui import datetime # Convenient type aliases. -PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal] PYQT_SLOT = typing.Union[typing.Callable[..., None], QtCore.pyqtBoundSignal] # Convenient aliases for complicated OpenGL types. diff --git a/PyQt5-stubs/QtWebChannel.pyi b/PyQt5-stubs/QtWebChannel.pyi index db6cf87d..9f4936bb 100644 --- a/PyQt5-stubs/QtWebChannel.pyi +++ b/PyQt5-stubs/QtWebChannel.pyi @@ -29,7 +29,6 @@ from PyQt5 import QtCore import datetime # Convenient type aliases. -PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal] PYQT_SLOT = typing.Union[typing.Callable[..., None], QtCore.pyqtBoundSignal] diff --git a/PyQt5-stubs/QtWebEngine.pyi b/PyQt5-stubs/QtWebEngine.pyi index 0e9de66f..3b24c026 100644 --- a/PyQt5-stubs/QtWebEngine.pyi +++ b/PyQt5-stubs/QtWebEngine.pyi @@ -30,7 +30,6 @@ from PyQt5 import QtCore import datetime # Convenient type aliases. -PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal] PYQT_SLOT = typing.Union[typing.Callable[..., None], QtCore.pyqtBoundSignal] # Convenient aliases for complicated OpenGL types. diff --git a/PyQt5-stubs/QtWebEngineCore.pyi b/PyQt5-stubs/QtWebEngineCore.pyi index 12bd3474..53793610 100644 --- a/PyQt5-stubs/QtWebEngineCore.pyi +++ b/PyQt5-stubs/QtWebEngineCore.pyi @@ -31,7 +31,6 @@ from PyQt5 import QtCore import datetime # Convenient type aliases. -PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal] PYQT_SLOT = typing.Union[typing.Callable[..., None], QtCore.pyqtBoundSignal] # Convenient aliases for complicated OpenGL types. diff --git a/PyQt5-stubs/QtWebEngineWidgets.pyi b/PyQt5-stubs/QtWebEngineWidgets.pyi index 59faf50a..78adfa3c 100644 --- a/PyQt5-stubs/QtWebEngineWidgets.pyi +++ b/PyQt5-stubs/QtWebEngineWidgets.pyi @@ -35,7 +35,6 @@ from PyQt5 import QtCore import datetime # Convenient type aliases. -PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal] PYQT_SLOT = typing.Union[typing.Callable[..., None], QtCore.pyqtBoundSignal] # Convenient aliases for complicated OpenGL types. diff --git a/PyQt5-stubs/QtWebKit.pyi b/PyQt5-stubs/QtWebKit.pyi index 3e7ad59b..f43c1332 100644 --- a/PyQt5-stubs/QtWebKit.pyi +++ b/PyQt5-stubs/QtWebKit.pyi @@ -32,7 +32,6 @@ from PyQt5 import QtCore import datetime # Convenient type aliases. -PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal] PYQT_SLOT = typing.Union[typing.Callable[..., None], QtCore.pyqtBoundSignal] # Convenient aliases for complicated OpenGL types. diff --git a/PyQt5-stubs/QtWebKitWidgets.pyi b/PyQt5-stubs/QtWebKitWidgets.pyi index c4e1e5ae..a6dd79ee 100644 --- a/PyQt5-stubs/QtWebKitWidgets.pyi +++ b/PyQt5-stubs/QtWebKitWidgets.pyi @@ -34,7 +34,6 @@ from PyQt5 import QtCore import datetime # Convenient type aliases. -PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal] PYQT_SLOT = typing.Union[typing.Callable[..., None], QtCore.pyqtBoundSignal] # Convenient aliases for complicated OpenGL types. diff --git a/PyQt5-stubs/QtWebSockets.pyi b/PyQt5-stubs/QtWebSockets.pyi index 034d4977..458ec787 100644 --- a/PyQt5-stubs/QtWebSockets.pyi +++ b/PyQt5-stubs/QtWebSockets.pyi @@ -30,7 +30,6 @@ from PyQt5 import QtCore import datetime # Convenient type aliases. -PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal] PYQT_SLOT = typing.Union[typing.Callable[..., None], QtCore.pyqtBoundSignal] diff --git a/PyQt5-stubs/QtWidgets.pyi b/PyQt5-stubs/QtWidgets.pyi index 5313ab94..8b236192 100644 --- a/PyQt5-stubs/QtWidgets.pyi +++ b/PyQt5-stubs/QtWidgets.pyi @@ -30,7 +30,6 @@ from PyQt5 import QtCore import datetime # Convenient type aliases. -PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal] PYQT_SLOT = typing.Union[typing.Callable[..., None], QtCore.pyqtBoundSignal] # Convenient aliases for complicated OpenGL types. @@ -68,9 +67,9 @@ class QWidget(QtCore.QObject, QtGui.QPaintDevice): def setWindowFlag(self, a0: QtCore.Qt.WindowType, on: bool = ...) -> None: ... def hasTabletTracking(self) -> bool: ... def setTabletTracking(self, enable: bool) -> None: ... - windowIconChanged: QtCore.pyqtSignal - windowTitleChanged: QtCore.pyqtSignal - windowIconTextChanged: QtCore.pyqtSignal + windowIconChanged: typing.ClassVar[QtCore.pyqtSignal] + windowTitleChanged: typing.ClassVar[QtCore.pyqtSignal] + windowIconTextChanged: typing.ClassVar[QtCore.pyqtSignal] def toolTipDuration(self) -> int: ... def setToolTipDuration(self, msec: int) -> None: ... def initPainter(self, painter: QtGui.QPainter) -> None: ... @@ -171,7 +170,7 @@ class QWidget(QtCore.QObject, QtGui.QPaintDevice): def mouseReleaseEvent(self, a0: QtGui.QMouseEvent) -> None: ... def mousePressEvent(self, a0: QtGui.QMouseEvent) -> None: ... def event(self, a0: QtCore.QEvent) -> bool: ... - customContextMenuRequested: QtCore.pyqtSignal + customContextMenuRequested: typing.ClassVar[QtCore.pyqtSignal] def isAncestorOf(self, child: 'QWidget') -> bool: ... def ensurePolished(self) -> None: ... def paintEngine(self) -> QtGui.QPaintEngine: ... @@ -413,10 +412,10 @@ class QAbstractButton(QWidget): def checkStateSet(self) -> None: ... def hitButton(self, pos: QtCore.QPoint) -> bool: ... def paintEvent(self, e: QtGui.QPaintEvent) -> None: ... - toggled: QtCore.pyqtSignal - clicked: QtCore.pyqtSignal - released: QtCore.pyqtSignal - pressed: QtCore.pyqtSignal + toggled: typing.ClassVar[QtCore.pyqtSignal] + clicked: typing.ClassVar[QtCore.pyqtSignal] + released: typing.ClassVar[QtCore.pyqtSignal] + pressed: typing.ClassVar[QtCore.pyqtSignal] def setChecked(self, a0: bool) -> None: ... def toggle(self) -> None: ... def click(self) -> None: ... @@ -456,9 +455,9 @@ class QAbstractItemDelegate(QtCore.QObject): def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... - sizeHintChanged: QtCore.pyqtSignal - closeEditor: QtCore.pyqtSignal - commitData: QtCore.pyqtSignal + sizeHintChanged: typing.ClassVar[QtCore.pyqtSignal] + closeEditor: typing.ClassVar[QtCore.pyqtSignal] + commitData: typing.ClassVar[QtCore.pyqtSignal] def helpEvent(self, event: QtGui.QHelpEvent, view: 'QAbstractItemView', option: 'QStyleOptionViewItem', index: QtCore.QModelIndex) -> bool: ... def editorEvent(self, event: QtCore.QEvent, model: QtCore.QAbstractItemModel, option: 'QStyleOptionViewItem', index: QtCore.QModelIndex) -> bool: ... def destroyEditor(self, editor: QWidget, index: QtCore.QModelIndex) -> None: ... @@ -708,13 +707,13 @@ class QAbstractItemView(QAbstractScrollArea): def verticalOffset(self) -> int: ... def horizontalOffset(self) -> int: ... def moveCursor(self, cursorAction: 'QAbstractItemView.CursorAction', modifiers: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier]) -> QtCore.QModelIndex: ... - iconSizeChanged: QtCore.pyqtSignal - viewportEntered: QtCore.pyqtSignal - entered: QtCore.pyqtSignal - activated: QtCore.pyqtSignal - doubleClicked: QtCore.pyqtSignal - clicked: QtCore.pyqtSignal - pressed: QtCore.pyqtSignal + iconSizeChanged: typing.ClassVar[QtCore.pyqtSignal] + viewportEntered: typing.ClassVar[QtCore.pyqtSignal] + entered: typing.ClassVar[QtCore.pyqtSignal] + activated: typing.ClassVar[QtCore.pyqtSignal] + doubleClicked: typing.ClassVar[QtCore.pyqtSignal] + clicked: typing.ClassVar[QtCore.pyqtSignal] + pressed: typing.ClassVar[QtCore.pyqtSignal] def editorDestroyed(self, editor: QtCore.QObject) -> None: ... def commitData(self, editor: QWidget) -> None: ... def closeEditor(self, editor: QWidget, hint: QAbstractItemDelegate.EndEditHint) -> None: ... @@ -817,12 +816,12 @@ class QAbstractSlider(QWidget): def sliderChange(self, change: 'QAbstractSlider.SliderChange') -> None: ... def repeatAction(self) -> 'QAbstractSlider.SliderAction': ... def setRepeatAction(self, action: 'QAbstractSlider.SliderAction', thresholdTime: int = ..., repeatTime: int = ...) -> None: ... - actionTriggered: QtCore.pyqtSignal - rangeChanged: QtCore.pyqtSignal - sliderReleased: QtCore.pyqtSignal - sliderMoved: QtCore.pyqtSignal - sliderPressed: QtCore.pyqtSignal - valueChanged: QtCore.pyqtSignal + actionTriggered: typing.ClassVar[QtCore.pyqtSignal] + rangeChanged: typing.ClassVar[QtCore.pyqtSignal] + sliderReleased: typing.ClassVar[QtCore.pyqtSignal] + sliderMoved: typing.ClassVar[QtCore.pyqtSignal] + sliderPressed: typing.ClassVar[QtCore.pyqtSignal] + valueChanged: typing.ClassVar[QtCore.pyqtSignal] def setOrientation(self, a0: QtCore.Qt.Orientation) -> None: ... def setValue(self, a0: int) -> None: ... def triggerAction(self, action: 'QAbstractSlider.SliderAction') -> None: ... @@ -916,7 +915,7 @@ class QAbstractSpinBox(QWidget): def keyReleaseEvent(self, e: QtGui.QKeyEvent) -> None: ... def keyPressEvent(self, e: QtGui.QKeyEvent) -> None: ... def resizeEvent(self, e: QtGui.QResizeEvent) -> None: ... - editingFinished: QtCore.pyqtSignal + editingFinished: typing.ClassVar[QtCore.pyqtSignal] def clear(self) -> None: ... def selectAll(self) -> None: ... def stepDown(self) -> None: ... @@ -987,10 +986,10 @@ class QAction(QtCore.QObject): def setShortcuts(self, shortcuts: typing.Iterable[typing.Union[QtGui.QKeySequence, QtGui.QKeySequence.StandardKey, str, int]]) -> None: ... @typing.overload def setShortcuts(self, a0: QtGui.QKeySequence.StandardKey) -> None: ... - toggled: QtCore.pyqtSignal - hovered: QtCore.pyqtSignal - triggered: QtCore.pyqtSignal - changed: QtCore.pyqtSignal + toggled: typing.ClassVar[QtCore.pyqtSignal] + hovered: typing.ClassVar[QtCore.pyqtSignal] + triggered: typing.ClassVar[QtCore.pyqtSignal] + changed: typing.ClassVar[QtCore.pyqtSignal] def setVisible(self, a0: bool) -> None: ... def setDisabled(self, b: bool) -> None: ... def setEnabled(self, a0: bool) -> None: ... @@ -1046,8 +1045,8 @@ class QActionGroup(QtCore.QObject): def setExclusionPolicy(self, policy: 'QActionGroup.ExclusionPolicy') -> None: ... def exclusionPolicy(self) -> 'QActionGroup.ExclusionPolicy': ... - hovered: QtCore.pyqtSignal - triggered: QtCore.pyqtSignal + hovered: typing.ClassVar[QtCore.pyqtSignal] + triggered: typing.ClassVar[QtCore.pyqtSignal] def setExclusive(self, a0: bool) -> None: ... def setVisible(self, a0: bool) -> None: ... def setDisabled(self, b: bool) -> None: ... @@ -1082,7 +1081,7 @@ class QApplication(QtGui.QGuiApplication): def closeAllWindows() -> None: ... @staticmethod def aboutQt() -> None: ... - focusChanged: QtCore.pyqtSignal + focusChanged: typing.ClassVar[QtCore.pyqtSignal] def styleSheet(self) -> str: ... def autoSipEnabled(self) -> bool: ... def notify(self, a0: QtCore.QObject, a1: QtCore.QEvent) -> bool: ... @@ -1369,10 +1368,10 @@ class QButtonGroup(QtCore.QObject): def idReleased(self, a0: int) -> None: ... def idPressed(self, a0: int) -> None: ... def idClicked(self, a0: int) -> None: ... - buttonToggled: QtCore.pyqtSignal - buttonReleased: QtCore.pyqtSignal - buttonPressed: QtCore.pyqtSignal - buttonClicked: QtCore.pyqtSignal + buttonToggled: typing.ClassVar[QtCore.pyqtSignal] + buttonReleased: typing.ClassVar[QtCore.pyqtSignal] + buttonPressed: typing.ClassVar[QtCore.pyqtSignal] + buttonClicked: typing.ClassVar[QtCore.pyqtSignal] def checkedId(self) -> int: ... def id(self, button: QAbstractButton) -> int: ... def setId(self, button: QAbstractButton, id: int) -> None: ... @@ -1411,10 +1410,10 @@ class QCalendarWidget(QWidget): def setDateEditEnabled(self, enable: bool) -> None: ... def isDateEditEnabled(self) -> bool: ... def isNavigationBarVisible(self) -> bool: ... - selectionChanged: QtCore.pyqtSignal - currentPageChanged: QtCore.pyqtSignal - clicked: QtCore.pyqtSignal - activated: QtCore.pyqtSignal + selectionChanged: typing.ClassVar[QtCore.pyqtSignal] + currentPageChanged: typing.ClassVar[QtCore.pyqtSignal] + clicked: typing.ClassVar[QtCore.pyqtSignal] + activated: typing.ClassVar[QtCore.pyqtSignal] def showToday(self) -> None: ... def showSelectedDate(self) -> None: ... def showPreviousYear(self) -> None: ... @@ -1476,7 +1475,7 @@ class QCheckBox(QAbstractButton): def nextCheckState(self) -> None: ... def checkStateSet(self) -> None: ... def hitButton(self, pos: QtCore.QPoint) -> bool: ... - stateChanged: QtCore.pyqtSignal + stateChanged: typing.ClassVar[QtCore.pyqtSignal] def minimumSizeHint(self) -> QtCore.QSize: ... def setCheckState(self, state: QtCore.Qt.CheckState) -> None: ... def checkState(self) -> QtCore.Qt.CheckState: ... @@ -1499,9 +1498,9 @@ class QDialog(QWidget): def showEvent(self, a0: QtGui.QShowEvent) -> None: ... def closeEvent(self, a0: QtGui.QCloseEvent) -> None: ... def keyPressEvent(self, a0: QtGui.QKeyEvent) -> None: ... - rejected: QtCore.pyqtSignal - finished: QtCore.pyqtSignal - accepted: QtCore.pyqtSignal + rejected: typing.ClassVar[QtCore.pyqtSignal] + finished: typing.ClassVar[QtCore.pyqtSignal] + accepted: typing.ClassVar[QtCore.pyqtSignal] def open(self) -> None: ... def reject(self) -> None: ... def accept(self) -> None: ... @@ -1559,8 +1558,8 @@ class QColorDialog(QDialog): def setCurrentColor(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ... def done(self, result: int) -> None: ... def changeEvent(self, e: QtCore.QEvent) -> None: ... - currentColorChanged: QtCore.pyqtSignal - colorSelected: QtCore.pyqtSignal + currentColorChanged: typing.ClassVar[QtCore.pyqtSignal] + colorSelected: typing.ClassVar[QtCore.pyqtSignal] @staticmethod def setStandardColor(index: int, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ... @staticmethod @@ -1591,7 +1590,7 @@ class QColumnView(QAbstractItemView): def isIndexHidden(self, index: QtCore.QModelIndex) -> bool: ... def initializeColumn(self, column: QAbstractItemView) -> None: ... def createColumn(self, rootIndex: QtCore.QModelIndex) -> QAbstractItemView: ... - updatePreviewWidget: QtCore.pyqtSignal + updatePreviewWidget: typing.ClassVar[QtCore.pyqtSignal] def selectAll(self) -> None: ... def setRootIndex(self, index: QtCore.QModelIndex) -> None: ... def setSelectionModel(self, selectionModel: QtCore.QItemSelectionModel) -> None: ... @@ -1655,10 +1654,10 @@ class QComboBox(QWidget): def highlighted(self, index: int) -> None: ... @typing.overload def highlighted(self, a0: str) -> None: ... - currentTextChanged: QtCore.pyqtSignal - currentIndexChanged: QtCore.pyqtSignal - activated: QtCore.pyqtSignal - editTextChanged: QtCore.pyqtSignal + currentTextChanged: typing.ClassVar[QtCore.pyqtSignal] + currentIndexChanged: typing.ClassVar[QtCore.pyqtSignal] + activated: typing.ClassVar[QtCore.pyqtSignal] + editTextChanged: typing.ClassVar[QtCore.pyqtSignal] def setCurrentText(self, text: str) -> None: ... def setEditText(self, text: str) -> None: ... def clearEditText(self) -> None: ... @@ -2495,8 +2494,8 @@ class QCompleter(QtCore.QObject): def setFilterMode(self, filterMode: typing.Union[QtCore.Qt.MatchFlags, QtCore.Qt.MatchFlag]) -> None: ... def setMaxVisibleItems(self, maxItems: int) -> None: ... def maxVisibleItems(self) -> int: ... - highlighted: QtCore.pyqtSignal - activated: QtCore.pyqtSignal + highlighted: typing.ClassVar[QtCore.pyqtSignal] + activated: typing.ClassVar[QtCore.pyqtSignal] def event(self, a0: QtCore.QEvent) -> bool: ... def eventFilter(self, o: QtCore.QObject, e: QtCore.QEvent) -> bool: ... def setWrapAround(self, wrap: bool) -> None: ... @@ -2538,7 +2537,7 @@ class QDataWidgetMapper(QtCore.QObject): def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... - currentIndexChanged: QtCore.pyqtSignal + currentIndexChanged: typing.ClassVar[QtCore.pyqtSignal] def toPrevious(self) -> None: ... def toNext(self) -> None: ... def toLast(self) -> None: ... @@ -2636,9 +2635,9 @@ class QDateTimeEdit(QAbstractSpinBox): def setTime(self, time: typing.Union[QtCore.QTime, datetime.time]) -> None: ... def setDate(self, date: typing.Union[QtCore.QDate, datetime.date]) -> None: ... def setDateTime(self, dateTime: typing.Union[QtCore.QDateTime, datetime.datetime]) -> None: ... - dateChanged: QtCore.pyqtSignal - timeChanged: QtCore.pyqtSignal - dateTimeChanged: QtCore.pyqtSignal + dateChanged: typing.ClassVar[QtCore.pyqtSignal] + timeChanged: typing.ClassVar[QtCore.pyqtSignal] + dateTimeChanged: typing.ClassVar[QtCore.pyqtSignal] def sectionCount(self) -> int: ... def setCurrentSectionIndex(self, index: int) -> None: ... def currentSectionIndex(self) -> int: ... @@ -2813,10 +2812,10 @@ class QDialogButtonBox(QWidget): def event(self, event: QtCore.QEvent) -> bool: ... def changeEvent(self, event: QtCore.QEvent) -> None: ... - rejected: QtCore.pyqtSignal - helpRequested: QtCore.pyqtSignal - clicked: QtCore.pyqtSignal - accepted: QtCore.pyqtSignal + rejected: typing.ClassVar[QtCore.pyqtSignal] + helpRequested: typing.ClassVar[QtCore.pyqtSignal] + clicked: typing.ClassVar[QtCore.pyqtSignal] + accepted: typing.ClassVar[QtCore.pyqtSignal] def centerButtons(self) -> bool: ... def setCenterButtons(self, center: bool) -> None: ... def button(self, which: 'QDialogButtonBox.StandardButton') -> QPushButton: ... @@ -2929,11 +2928,11 @@ class QDockWidget(QWidget): def closeEvent(self, event: QtGui.QCloseEvent) -> None: ... def changeEvent(self, event: QtCore.QEvent) -> None: ... def initStyleOption(self, option: 'QStyleOptionDockWidget') -> None: ... - visibilityChanged: QtCore.pyqtSignal - dockLocationChanged: QtCore.pyqtSignal - allowedAreasChanged: QtCore.pyqtSignal - topLevelChanged: QtCore.pyqtSignal - featuresChanged: QtCore.pyqtSignal + visibilityChanged: typing.ClassVar[QtCore.pyqtSignal] + dockLocationChanged: typing.ClassVar[QtCore.pyqtSignal] + allowedAreasChanged: typing.ClassVar[QtCore.pyqtSignal] + topLevelChanged: typing.ClassVar[QtCore.pyqtSignal] + featuresChanged: typing.ClassVar[QtCore.pyqtSignal] def titleBarWidget(self) -> QWidget: ... def setTitleBarWidget(self, widget: QWidget) -> None: ... def toggleViewAction(self) -> QAction: ... @@ -3027,10 +3026,10 @@ class QFileDialog(QDialog): def getOpenFileUrls(parent: typing.Optional[QWidget] = ..., caption: str = ..., directory: QtCore.QUrl = ..., filter: str = ..., initialFilter: str = ..., options: typing.Union['QFileDialog.Options', 'QFileDialog.Option'] = ..., supportedSchemes: typing.Iterable[str] = ...) -> typing.Tuple[typing.List[QtCore.QUrl], str]: ... @staticmethod def getOpenFileUrl(parent: typing.Optional[QWidget] = ..., caption: str = ..., directory: QtCore.QUrl = ..., filter: str = ..., initialFilter: str = ..., options: typing.Union['QFileDialog.Options', 'QFileDialog.Option'] = ..., supportedSchemes: typing.Iterable[str] = ...) -> typing.Tuple[QtCore.QUrl, str]: ... - directoryUrlEntered: QtCore.pyqtSignal - currentUrlChanged: QtCore.pyqtSignal - urlsSelected: QtCore.pyqtSignal - urlSelected: QtCore.pyqtSignal + directoryUrlEntered: typing.ClassVar[QtCore.pyqtSignal] + currentUrlChanged: typing.ClassVar[QtCore.pyqtSignal] + urlsSelected: typing.ClassVar[QtCore.pyqtSignal] + urlSelected: typing.ClassVar[QtCore.pyqtSignal] def selectMimeTypeFilter(self, filter: str) -> None: ... def mimeTypeFilters(self) -> typing.List[str]: ... def setMimeTypeFilters(self, filters: typing.Iterable[str]) -> None: ... @@ -3073,11 +3072,11 @@ class QFileDialog(QDialog): def getExistingDirectoryUrl(parent: typing.Optional[QWidget] = ..., caption: str = ..., directory: QtCore.QUrl = ..., options: typing.Union['QFileDialog.Options', 'QFileDialog.Option'] = ..., supportedSchemes: typing.Iterable[str] = ...) -> QtCore.QUrl: ... @staticmethod def getExistingDirectory(parent: typing.Optional[QWidget] = ..., caption: str = ..., directory: str = ..., options: typing.Union['QFileDialog.Options', 'QFileDialog.Option'] = ...) -> str: ... - fileSelected: QtCore.pyqtSignal - filterSelected: QtCore.pyqtSignal - filesSelected: QtCore.pyqtSignal - directoryEntered: QtCore.pyqtSignal - currentChanged: QtCore.pyqtSignal + fileSelected: typing.ClassVar[QtCore.pyqtSignal] + filterSelected: typing.ClassVar[QtCore.pyqtSignal] + filesSelected: typing.ClassVar[QtCore.pyqtSignal] + directoryEntered: typing.ClassVar[QtCore.pyqtSignal] + currentChanged: typing.ClassVar[QtCore.pyqtSignal] def labelText(self, label: 'QFileDialog.DialogLabel') -> str: ... def setLabelText(self, label: 'QFileDialog.DialogLabel', text: str) -> None: ... def iconProvider(self) -> 'QFileIconProvider': ... @@ -3180,9 +3179,9 @@ class QFileSystemModel(QtCore.QAbstractItemModel): def sibling(self, row: int, column: int, idx: QtCore.QModelIndex) -> QtCore.QModelIndex: ... def timerEvent(self, event: QtCore.QTimerEvent) -> None: ... def event(self, event: QtCore.QEvent) -> bool: ... - directoryLoaded: QtCore.pyqtSignal - rootPathChanged: QtCore.pyqtSignal - fileRenamed: QtCore.pyqtSignal + directoryLoaded: typing.ClassVar[QtCore.pyqtSignal] + rootPathChanged: typing.ClassVar[QtCore.pyqtSignal] + fileRenamed: typing.ClassVar[QtCore.pyqtSignal] def remove(self, index: QtCore.QModelIndex) -> bool: ... def fileInfo(self, aindex: QtCore.QModelIndex) -> QtCore.QFileInfo: ... def fileIcon(self, aindex: QtCore.QModelIndex) -> QtGui.QIcon: ... @@ -3271,7 +3270,7 @@ class QFontComboBox(QComboBox): def __init__(self, parent: typing.Optional[QWidget] = ...) -> None: ... def event(self, e: QtCore.QEvent) -> bool: ... - currentFontChanged: QtCore.pyqtSignal + currentFontChanged: typing.ClassVar[QtCore.pyqtSignal] def setCurrentFont(self, f: QtGui.QFont) -> None: ... def sizeHint(self) -> QtCore.QSize: ... def currentFont(self) -> QtGui.QFont: ... @@ -3311,8 +3310,8 @@ class QFontDialog(QDialog): @typing.overload def __init__(self, initial: QtGui.QFont, parent: typing.Optional[QWidget] = ...) -> None: ... - fontSelected: QtCore.pyqtSignal - currentFontChanged: QtCore.pyqtSignal + fontSelected: typing.ClassVar[QtCore.pyqtSignal] + currentFontChanged: typing.ClassVar[QtCore.pyqtSignal] def setVisible(self, visible: bool) -> None: ... @typing.overload def open(self) -> None: ... @@ -3773,7 +3772,7 @@ class QGraphicsEffect(QtCore.QObject): def updateBoundingRect(self) -> None: ... def sourceChanged(self, flags: typing.Union['QGraphicsEffect.ChangeFlags', 'QGraphicsEffect.ChangeFlag']) -> None: ... def draw(self, painter: QtGui.QPainter) -> None: ... - enabledChanged: QtCore.pyqtSignal + enabledChanged: typing.ClassVar[QtCore.pyqtSignal] def update(self) -> None: ... def setEnabled(self, enable: bool) -> None: ... def isEnabled(self) -> bool: ... @@ -3786,8 +3785,8 @@ class QGraphicsColorizeEffect(QGraphicsEffect): def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... def draw(self, painter: QtGui.QPainter) -> None: ... - strengthChanged: QtCore.pyqtSignal - colorChanged: QtCore.pyqtSignal + strengthChanged: typing.ClassVar[QtCore.pyqtSignal] + colorChanged: typing.ClassVar[QtCore.pyqtSignal] def setStrength(self, strength: float) -> None: ... def setColor(self, c: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ... def strength(self) -> float: ... @@ -3819,8 +3818,8 @@ class QGraphicsBlurEffect(QGraphicsEffect): def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... def draw(self, painter: QtGui.QPainter) -> None: ... - blurHintsChanged: QtCore.pyqtSignal - blurRadiusChanged: QtCore.pyqtSignal + blurHintsChanged: typing.ClassVar[QtCore.pyqtSignal] + blurRadiusChanged: typing.ClassVar[QtCore.pyqtSignal] def setBlurHints(self, hints: typing.Union['QGraphicsBlurEffect.BlurHints', 'QGraphicsBlurEffect.BlurHint']) -> None: ... def setBlurRadius(self, blurRadius: float) -> None: ... def blurHints(self) -> 'QGraphicsBlurEffect.BlurHints': ... @@ -3833,9 +3832,9 @@ class QGraphicsDropShadowEffect(QGraphicsEffect): def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... def draw(self, painter: QtGui.QPainter) -> None: ... - colorChanged: QtCore.pyqtSignal - blurRadiusChanged: QtCore.pyqtSignal - offsetChanged: QtCore.pyqtSignal + colorChanged: typing.ClassVar[QtCore.pyqtSignal] + blurRadiusChanged: typing.ClassVar[QtCore.pyqtSignal] + offsetChanged: typing.ClassVar[QtCore.pyqtSignal] def setColor(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ... def setBlurRadius(self, blurRadius: float) -> None: ... def setYOffset(self, dy: float) -> None: ... @@ -3859,8 +3858,8 @@ class QGraphicsOpacityEffect(QGraphicsEffect): def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... def draw(self, painter: QtGui.QPainter) -> None: ... - opacityMaskChanged: QtCore.pyqtSignal - opacityChanged: QtCore.pyqtSignal + opacityMaskChanged: typing.ClassVar[QtCore.pyqtSignal] + opacityChanged: typing.ClassVar[QtCore.pyqtSignal] def setOpacityMask(self, mask: typing.Union[QtGui.QBrush, QtGui.QColor, QtCore.Qt.GlobalColor, QtGui.QGradient]) -> None: ... def setOpacity(self, opacity: float) -> None: ... def opacityMask(self) -> QtGui.QBrush: ... @@ -4464,15 +4463,15 @@ class QGraphicsObject(QtCore.QObject, QGraphicsItem): def event(self, ev: QtCore.QEvent) -> bool: ... def updateMicroFocus(self) -> None: ... - scaleChanged: QtCore.pyqtSignal - rotationChanged: QtCore.pyqtSignal - zChanged: QtCore.pyqtSignal - yChanged: QtCore.pyqtSignal - xChanged: QtCore.pyqtSignal - enabledChanged: QtCore.pyqtSignal - visibleChanged: QtCore.pyqtSignal - opacityChanged: QtCore.pyqtSignal - parentChanged: QtCore.pyqtSignal + scaleChanged: typing.ClassVar[QtCore.pyqtSignal] + rotationChanged: typing.ClassVar[QtCore.pyqtSignal] + zChanged: typing.ClassVar[QtCore.pyqtSignal] + yChanged: typing.ClassVar[QtCore.pyqtSignal] + xChanged: typing.ClassVar[QtCore.pyqtSignal] + enabledChanged: typing.ClassVar[QtCore.pyqtSignal] + visibleChanged: typing.ClassVar[QtCore.pyqtSignal] + opacityChanged: typing.ClassVar[QtCore.pyqtSignal] + parentChanged: typing.ClassVar[QtCore.pyqtSignal] def ungrabGesture(self, type: QtCore.Qt.GestureType) -> None: ... def grabGesture(self, type: QtCore.Qt.GestureType, flags: typing.Union[QtCore.Qt.GestureFlags, QtCore.Qt.GestureFlag] = ...) -> None: ... @@ -4503,8 +4502,8 @@ class QGraphicsTextItem(QGraphicsObject): def mouseMoveEvent(self, event: 'QGraphicsSceneMouseEvent') -> None: ... def mousePressEvent(self, event: 'QGraphicsSceneMouseEvent') -> None: ... def sceneEvent(self, event: QtCore.QEvent) -> bool: ... - linkHovered: QtCore.pyqtSignal - linkActivated: QtCore.pyqtSignal + linkHovered: typing.ClassVar[QtCore.pyqtSignal] + linkActivated: typing.ClassVar[QtCore.pyqtSignal] def textCursor(self) -> QtGui.QTextCursor: ... def setTextCursor(self, cursor: QtGui.QTextCursor) -> None: ... def openExternalLinks(self) -> bool: ... @@ -4569,7 +4568,7 @@ class QGraphicsWidget(QGraphicsObject, QGraphicsLayoutItem): def __init__(self, parent: typing.Optional[QGraphicsItem] = ..., flags: typing.Union[QtCore.Qt.WindowFlags, QtCore.Qt.WindowType] = ...) -> None: ... - geometryChanged: QtCore.pyqtSignal + geometryChanged: typing.ClassVar[QtCore.pyqtSignal] def setAutoFillBackground(self, enabled: bool) -> None: ... def autoFillBackground(self) -> bool: ... def ungrabKeyboardEvent(self, event: QtCore.QEvent) -> None: ... @@ -4740,7 +4739,7 @@ class QGraphicsScene(QtCore.QObject): def __init__(self, x: float, y: float, width: float, height: float, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... def setFocusOnTouch(self, enabled: bool) -> None: ... - focusOnTouch: QtCore.pyqtSignal + focusOnTouch: typing.ClassVar[QtCore.pyqtSignal] def focusItemChanged(self, newFocus: QGraphicsItem, oldFocus: QGraphicsItem, reason: QtCore.Qt.FocusReason) -> None: ... def setMinimumRenderSize(self, minSize: float) -> None: ... def minimumRenderSize(self) -> float: ... @@ -4787,9 +4786,9 @@ class QGraphicsScene(QtCore.QObject): def dragEnterEvent(self, event: 'QGraphicsSceneDragDropEvent') -> None: ... def contextMenuEvent(self, event: 'QGraphicsSceneContextMenuEvent') -> None: ... def event(self, event: QtCore.QEvent) -> bool: ... - selectionChanged: QtCore.pyqtSignal - sceneRectChanged: QtCore.pyqtSignal - changed: QtCore.pyqtSignal + selectionChanged: typing.ClassVar[QtCore.pyqtSignal] + sceneRectChanged: typing.ClassVar[QtCore.pyqtSignal] + changed: typing.ClassVar[QtCore.pyqtSignal] def clear(self) -> None: ... @typing.overload def invalidate(self, rect: QtCore.QRectF = ..., layers: typing.Union['QGraphicsScene.SceneLayers', 'QGraphicsScene.SceneLayer'] = ...) -> None: ... @@ -4976,10 +4975,10 @@ class QGraphicsScale(QGraphicsTransform): def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... - zScaleChanged: QtCore.pyqtSignal - yScaleChanged: QtCore.pyqtSignal - xScaleChanged: QtCore.pyqtSignal - scaleChanged: QtCore.pyqtSignal + zScaleChanged: typing.ClassVar[QtCore.pyqtSignal] + yScaleChanged: typing.ClassVar[QtCore.pyqtSignal] + xScaleChanged: typing.ClassVar[QtCore.pyqtSignal] + scaleChanged: typing.ClassVar[QtCore.pyqtSignal] def originChanged(self) -> None: ... def applyTo(self, matrix: QtGui.QMatrix4x4) -> None: ... def setZScale(self, a0: float) -> None: ... @@ -4996,9 +4995,9 @@ class QGraphicsRotation(QGraphicsTransform): def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... - axisChanged: QtCore.pyqtSignal - angleChanged: QtCore.pyqtSignal - originChanged: QtCore.pyqtSignal + axisChanged: typing.ClassVar[QtCore.pyqtSignal] + angleChanged: typing.ClassVar[QtCore.pyqtSignal] + originChanged: typing.ClassVar[QtCore.pyqtSignal] def applyTo(self, matrix: QtGui.QMatrix4x4) -> None: ... @typing.overload def setAxis(self, axis: QtGui.QVector3D) -> None: ... @@ -5074,7 +5073,7 @@ class QGraphicsView(QAbstractScrollArea): @typing.overload def __init__(self, scene: QGraphicsScene, parent: typing.Optional[QWidget] = ...) -> None: ... - rubberBandChanged: QtCore.pyqtSignal + rubberBandChanged: typing.ClassVar[QtCore.pyqtSignal] def rubberBandRect(self) -> QtCore.QRect: ... def isTransformed(self) -> bool: ... def resetTransform(self) -> None: ... @@ -5286,8 +5285,8 @@ class QGroupBox(QWidget): def childEvent(self, a0: QtCore.QChildEvent) -> None: ... def event(self, a0: QtCore.QEvent) -> bool: ... def initStyleOption(self, option: 'QStyleOptionGroupBox') -> None: ... - toggled: QtCore.pyqtSignal - clicked: QtCore.pyqtSignal + toggled: typing.ClassVar[QtCore.pyqtSignal] + clicked: typing.ClassVar[QtCore.pyqtSignal] def setChecked(self, b: bool) -> None: ... def isChecked(self) -> bool: ... def setCheckable(self, b: bool) -> None: ... @@ -5330,8 +5329,8 @@ class QHeaderView(QAbstractItemView): def sectionsMovable(self) -> bool: ... def setSectionsMovable(self, movable: bool) -> None: ... def initStyleOption(self, option: 'QStyleOptionHeader') -> None: ... # type: ignore # fix issue #1 - sortIndicatorChanged: QtCore.pyqtSignal - sectionEntered: QtCore.pyqtSignal + sortIndicatorChanged: typing.ClassVar[QtCore.pyqtSignal] + sectionEntered: typing.ClassVar[QtCore.pyqtSignal] def setOffsetToLastSection(self) -> None: ... def reset(self) -> None: ... def restoreState(self, state: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> bool: ... @@ -5384,14 +5383,14 @@ class QHeaderView(QAbstractItemView): @typing.overload def resizeSections(self, mode: 'QHeaderView.ResizeMode') -> None: ... def updateSection(self, logicalIndex: int) -> None: ... - sectionHandleDoubleClicked: QtCore.pyqtSignal - sectionCountChanged: QtCore.pyqtSignal - sectionDoubleClicked: QtCore.pyqtSignal - sectionClicked: QtCore.pyqtSignal - sectionPressed: QtCore.pyqtSignal - sectionResized: QtCore.pyqtSignal - sectionMoved: QtCore.pyqtSignal - geometriesChanged: QtCore.pyqtSignal + sectionHandleDoubleClicked: typing.ClassVar[QtCore.pyqtSignal] + sectionCountChanged: typing.ClassVar[QtCore.pyqtSignal] + sectionDoubleClicked: typing.ClassVar[QtCore.pyqtSignal] + sectionClicked: typing.ClassVar[QtCore.pyqtSignal] + sectionPressed: typing.ClassVar[QtCore.pyqtSignal] + sectionResized: typing.ClassVar[QtCore.pyqtSignal] + sectionMoved: typing.ClassVar[QtCore.pyqtSignal] + geometriesChanged: typing.ClassVar[QtCore.pyqtSignal] def setOffsetToSectionPosition(self, visualIndex: int) -> None: ... def headerDataChanged(self, orientation: QtCore.Qt.Orientation, logicalFirst: int, logicalLast: int) -> None: ... def setOffset(self, offset: int) -> None: ... @@ -5463,12 +5462,12 @@ class QInputDialog(QDialog): def doubleStep(self) -> float: ... def setDoubleStep(self, step: float) -> None: ... - doubleValueSelected: QtCore.pyqtSignal - doubleValueChanged: QtCore.pyqtSignal - intValueSelected: QtCore.pyqtSignal - intValueChanged: QtCore.pyqtSignal - textValueSelected: QtCore.pyqtSignal - textValueChanged: QtCore.pyqtSignal + doubleValueSelected: typing.ClassVar[QtCore.pyqtSignal] + doubleValueChanged: typing.ClassVar[QtCore.pyqtSignal] + intValueSelected: typing.ClassVar[QtCore.pyqtSignal] + intValueChanged: typing.ClassVar[QtCore.pyqtSignal] + textValueSelected: typing.ClassVar[QtCore.pyqtSignal] + textValueChanged: typing.ClassVar[QtCore.pyqtSignal] def done(self, result: int) -> None: ... def setVisible(self, visible: bool) -> None: ... def sizeHint(self) -> QtCore.QSize: ... @@ -5607,8 +5606,8 @@ class QKeySequenceEdit(QWidget): def keyReleaseEvent(self, a0: QtGui.QKeyEvent) -> None: ... def keyPressEvent(self, a0: QtGui.QKeyEvent) -> None: ... def event(self, a0: QtCore.QEvent) -> bool: ... - keySequenceChanged: QtCore.pyqtSignal - editingFinished: QtCore.pyqtSignal + keySequenceChanged: typing.ClassVar[QtCore.pyqtSignal] + editingFinished: typing.ClassVar[QtCore.pyqtSignal] def clear(self) -> None: ... def setKeySequence(self, keySequence: typing.Union[QtGui.QKeySequence, QtGui.QKeySequence.StandardKey, str, int]) -> None: ... def keySequence(self) -> QtGui.QKeySequence: ... @@ -5636,8 +5635,8 @@ class QLabel(QFrame): def changeEvent(self, a0: QtCore.QEvent) -> None: ... def paintEvent(self, a0: QtGui.QPaintEvent) -> None: ... def event(self, e: QtCore.QEvent) -> bool: ... - linkActivated: QtCore.pyqtSignal - linkHovered: QtCore.pyqtSignal + linkActivated: typing.ClassVar[QtCore.pyqtSignal] + linkHovered: typing.ClassVar[QtCore.pyqtSignal] def setText(self, a0: str) -> None: ... def setPixmap(self, a0: QtGui.QPixmap) -> None: ... def setPicture(self, a0: QtGui.QPicture) -> None: ... @@ -5730,7 +5729,7 @@ class QLCDNumber(QFrame): def paintEvent(self, a0: QtGui.QPaintEvent) -> None: ... def event(self, e: QtCore.QEvent) -> bool: ... - overflow: QtCore.pyqtSignal + overflow: typing.ClassVar[QtCore.pyqtSignal] def setSmallDecimalPoint(self, a0: bool) -> None: ... def setBinMode(self) -> None: ... def setOctMode(self) -> None: ... @@ -5821,12 +5820,12 @@ class QLineEdit(QWidget): def mouseMoveEvent(self, a0: QtGui.QMouseEvent) -> None: ... def mousePressEvent(self, a0: QtGui.QMouseEvent) -> None: ... def initStyleOption(self, option: 'QStyleOptionFrame') -> None: ... - selectionChanged: QtCore.pyqtSignal - editingFinished: QtCore.pyqtSignal - returnPressed: QtCore.pyqtSignal - cursorPositionChanged: QtCore.pyqtSignal - textEdited: QtCore.pyqtSignal - textChanged: QtCore.pyqtSignal + selectionChanged: typing.ClassVar[QtCore.pyqtSignal] + editingFinished: typing.ClassVar[QtCore.pyqtSignal] + returnPressed: typing.ClassVar[QtCore.pyqtSignal] + cursorPositionChanged: typing.ClassVar[QtCore.pyqtSignal] + textEdited: typing.ClassVar[QtCore.pyqtSignal] + textChanged: typing.ClassVar[QtCore.pyqtSignal] def createStandardContextMenu(self) -> 'QMenu': ... def insert(self, a0: str) -> None: ... def deselect(self) -> None: ... @@ -5942,7 +5941,7 @@ class QListView(QAbstractItemView): def rowsInserted(self, parent: QtCore.QModelIndex, start: int, end: int) -> None: ... def dataChanged(self, topLeft: QtCore.QModelIndex, bottomRight: QtCore.QModelIndex, roles: typing.Iterable[int] = ...) -> None: ... def scrollContentsBy(self, dx: int, dy: int) -> None: ... - indexesMoved: QtCore.pyqtSignal + indexesMoved: typing.ClassVar[QtCore.pyqtSignal] def setRootIndex(self, index: QtCore.QModelIndex) -> None: ... def reset(self) -> None: ... def indexAt(self, p: QtCore.QPoint) -> QtCore.QModelIndex: ... @@ -6043,16 +6042,16 @@ class QListWidget(QListView): def dropMimeData(self, index: int, data: QtCore.QMimeData, action: QtCore.Qt.DropAction) -> bool: ... def mimeData(self, items: typing.Iterable[QListWidgetItem]) -> QtCore.QMimeData: ... def mimeTypes(self) -> typing.List[str]: ... - itemSelectionChanged: QtCore.pyqtSignal - currentRowChanged: QtCore.pyqtSignal - currentTextChanged: QtCore.pyqtSignal - currentItemChanged: QtCore.pyqtSignal - itemChanged: QtCore.pyqtSignal - itemEntered: QtCore.pyqtSignal - itemActivated: QtCore.pyqtSignal - itemDoubleClicked: QtCore.pyqtSignal - itemClicked: QtCore.pyqtSignal - itemPressed: QtCore.pyqtSignal + itemSelectionChanged: typing.ClassVar[QtCore.pyqtSignal] + currentRowChanged: typing.ClassVar[QtCore.pyqtSignal] + currentTextChanged: typing.ClassVar[QtCore.pyqtSignal] + currentItemChanged: typing.ClassVar[QtCore.pyqtSignal] + itemChanged: typing.ClassVar[QtCore.pyqtSignal] + itemEntered: typing.ClassVar[QtCore.pyqtSignal] + itemActivated: typing.ClassVar[QtCore.pyqtSignal] + itemDoubleClicked: typing.ClassVar[QtCore.pyqtSignal] + itemClicked: typing.ClassVar[QtCore.pyqtSignal] + itemPressed: typing.ClassVar[QtCore.pyqtSignal] def scrollToItem(self, item: QListWidgetItem, hint: QAbstractItemView.ScrollHint = ...) -> None: ... def clear(self) -> None: ... def findItems(self, text: str, flags: typing.Union[QtCore.Qt.MatchFlags, QtCore.Qt.MatchFlag]) -> typing.List[QListWidgetItem]: ... @@ -6146,9 +6145,9 @@ class QMainWindow(QWidget): def isAnimated(self) -> bool: ... def event(self, event: QtCore.QEvent) -> bool: ... def contextMenuEvent(self, event: QtGui.QContextMenuEvent) -> None: ... - tabifiedDockWidgetActivated: QtCore.pyqtSignal - toolButtonStyleChanged: QtCore.pyqtSignal - iconSizeChanged: QtCore.pyqtSignal + tabifiedDockWidgetActivated: typing.ClassVar[QtCore.pyqtSignal] + toolButtonStyleChanged: typing.ClassVar[QtCore.pyqtSignal] + iconSizeChanged: typing.ClassVar[QtCore.pyqtSignal] def setDockNestingEnabled(self, enabled: bool) -> None: ... def setAnimated(self, enabled: bool) -> None: ... def createPopupMenu(self) -> 'QMenu': ... @@ -6248,7 +6247,7 @@ class QMdiArea(QAbstractScrollArea): def cascadeSubWindows(self) -> None: ... def tileSubWindows(self) -> None: ... def setActiveSubWindow(self, window: 'QMdiSubWindow') -> None: ... # type: ignore # fix issue #1 - subWindowActivated: QtCore.pyqtSignal + subWindowActivated: typing.ClassVar[QtCore.pyqtSignal] def testOption(self, opton: 'QMdiArea.AreaOption') -> bool: ... def setOption(self, option: 'QMdiArea.AreaOption', on: bool = ...) -> None: ... def setBackground(self, background: typing.Union[QtGui.QBrush, QtGui.QColor, QtCore.Qt.GlobalColor, QtGui.QGradient]) -> None: ... @@ -6307,8 +6306,8 @@ class QMdiSubWindow(QWidget): def eventFilter(self, object: QtCore.QObject, event: QtCore.QEvent) -> bool: ... def showShaded(self) -> None: ... def showSystemMenu(self) -> None: ... - aboutToActivate: QtCore.pyqtSignal - windowStateChanged: QtCore.pyqtSignal + aboutToActivate: typing.ClassVar[QtCore.pyqtSignal] + windowStateChanged: typing.ClassVar[QtCore.pyqtSignal] def mdiArea(self) -> QMdiArea: ... def systemMenu(self) -> 'QMenu': ... def setSystemMenu(self, systemMenu: 'QMenu') -> None: ... @@ -6365,10 +6364,10 @@ class QMenu(QWidget): def changeEvent(self, a0: QtCore.QEvent) -> None: ... def initStyleOption(self, option: 'QStyleOptionMenuItem', action: QAction) -> None: ... def columnCount(self) -> int: ... - triggered: QtCore.pyqtSignal - hovered: QtCore.pyqtSignal - aboutToShow: QtCore.pyqtSignal - aboutToHide: QtCore.pyqtSignal + triggered: typing.ClassVar[QtCore.pyqtSignal] + hovered: typing.ClassVar[QtCore.pyqtSignal] + aboutToShow: typing.ClassVar[QtCore.pyqtSignal] + aboutToHide: typing.ClassVar[QtCore.pyqtSignal] def setNoReplayFor(self, widget: QWidget) -> None: ... def setIcon(self, icon: QtGui.QIcon) -> None: ... def icon(self) -> QtGui.QIcon: ... @@ -6444,8 +6443,8 @@ class QMenuBar(QWidget): def keyPressEvent(self, a0: QtGui.QKeyEvent) -> None: ... def changeEvent(self, a0: QtCore.QEvent) -> None: ... def initStyleOption(self, option: 'QStyleOptionMenuItem', action: QAction) -> None: ... - hovered: QtCore.pyqtSignal - triggered: QtCore.pyqtSignal + hovered: typing.ClassVar[QtCore.pyqtSignal] + triggered: typing.ClassVar[QtCore.pyqtSignal] def setVisible(self, visible: bool) -> None: ... def cornerWidget(self, corner: QtCore.Qt.Corner = ...) -> QWidget: ... def setCornerWidget(self, widget: QWidget, corner: QtCore.Qt.Corner = ...) -> None: ... @@ -6652,10 +6651,10 @@ class QOpenGLWidget(QWidget): def paintGL(self) -> None: ... def resizeGL(self, w: int, h: int) -> None: ... def initializeGL(self) -> None: ... - resized: QtCore.pyqtSignal - aboutToResize: QtCore.pyqtSignal - frameSwapped: QtCore.pyqtSignal - aboutToCompose: QtCore.pyqtSignal + resized: typing.ClassVar[QtCore.pyqtSignal] + aboutToResize: typing.ClassVar[QtCore.pyqtSignal] + frameSwapped: typing.ClassVar[QtCore.pyqtSignal] + aboutToCompose: typing.ClassVar[QtCore.pyqtSignal] def grabFramebuffer(self) -> QtGui.QImage: ... def defaultFramebufferObject(self) -> int: ... def context(self) -> QtGui.QOpenGLContext: ... @@ -6719,15 +6718,15 @@ class QPlainTextEdit(QAbstractScrollArea): def keyPressEvent(self, e: QtGui.QKeyEvent) -> None: ... def timerEvent(self, e: QtCore.QTimerEvent) -> None: ... def event(self, e: QtCore.QEvent) -> bool: ... - modificationChanged: QtCore.pyqtSignal - blockCountChanged: QtCore.pyqtSignal - updateRequest: QtCore.pyqtSignal - cursorPositionChanged: QtCore.pyqtSignal - selectionChanged: QtCore.pyqtSignal - copyAvailable: QtCore.pyqtSignal - redoAvailable: QtCore.pyqtSignal - undoAvailable: QtCore.pyqtSignal - textChanged: QtCore.pyqtSignal + modificationChanged: typing.ClassVar[QtCore.pyqtSignal] + blockCountChanged: typing.ClassVar[QtCore.pyqtSignal] + updateRequest: typing.ClassVar[QtCore.pyqtSignal] + cursorPositionChanged: typing.ClassVar[QtCore.pyqtSignal] + selectionChanged: typing.ClassVar[QtCore.pyqtSignal] + copyAvailable: typing.ClassVar[QtCore.pyqtSignal] + redoAvailable: typing.ClassVar[QtCore.pyqtSignal] + undoAvailable: typing.ClassVar[QtCore.pyqtSignal] + textChanged: typing.ClassVar[QtCore.pyqtSignal] def centerCursor(self) -> None: ... def appendHtml(self, html: str) -> None: ... def appendPlainText(self, text: str) -> None: ... @@ -6828,7 +6827,7 @@ class QProgressBar(QWidget): def paintEvent(self, a0: QtGui.QPaintEvent) -> None: ... def event(self, e: QtCore.QEvent) -> bool: ... def initStyleOption(self, option: 'QStyleOptionProgressBar') -> None: ... - valueChanged: QtCore.pyqtSignal + valueChanged: typing.ClassVar[QtCore.pyqtSignal] def setOrientation(self, a0: QtCore.Qt.Orientation) -> None: ... def setValue(self, value: int) -> None: ... def setMaximum(self, maximum: int) -> None: ... @@ -6869,7 +6868,7 @@ class QProgressDialog(QDialog): def changeEvent(self, a0: QtCore.QEvent) -> None: ... def closeEvent(self, a0: QtGui.QCloseEvent) -> None: ... def resizeEvent(self, a0: QtGui.QResizeEvent) -> None: ... - canceled: QtCore.pyqtSignal + canceled: typing.ClassVar[QtCore.pyqtSignal] def setMinimumDuration(self, ms: int) -> None: ... def setCancelButtonText(self, a0: str) -> None: ... def setLabelText(self, a0: str) -> None: ... @@ -7042,8 +7041,8 @@ class QScroller(QtCore.QObject): Dragging = ... # type: 'QScroller.State' Scrolling = ... # type: 'QScroller.State' - scrollerPropertiesChanged: QtCore.pyqtSignal - stateChanged: QtCore.pyqtSignal + scrollerPropertiesChanged: typing.ClassVar[QtCore.pyqtSignal] + stateChanged: typing.ClassVar[QtCore.pyqtSignal] def resendPrepareEvent(self) -> None: ... @typing.overload def ensureVisible(self, rect: QtCore.QRectF, xmargin: float, ymargin: float) -> None: ... @@ -7141,8 +7140,8 @@ class QShortcut(QtCore.QObject): def __init__(self, key: typing.Union[QtGui.QKeySequence, QtGui.QKeySequence.StandardKey, str, int], parent: QWidget, member: PYQT_SLOT = ..., ambiguousMember: PYQT_SLOT = ..., context: QtCore.Qt.ShortcutContext = ...) -> None: ... def event(self, e: QtCore.QEvent) -> bool: ... - activatedAmbiguously: QtCore.pyqtSignal - activated: QtCore.pyqtSignal + activatedAmbiguously: typing.ClassVar[QtCore.pyqtSignal] + activated: typing.ClassVar[QtCore.pyqtSignal] def autoRepeat(self) -> bool: ... def setAutoRepeat(self, on: bool) -> None: ... def parentWidget(self) -> QWidget: ... @@ -7292,7 +7291,7 @@ class QSpinBox(QAbstractSpinBox): def setDisplayIntegerBase(self, base: int) -> None: ... def displayIntegerBase(self) -> int: ... def textChanged(self, a0: str) -> None: ... - valueChanged: QtCore.pyqtSignal + valueChanged: typing.ClassVar[QtCore.pyqtSignal] def setValue(self, val: int) -> None: ... def event(self, e: QtCore.QEvent) -> bool: ... def fixup(self, str: str) -> str: ... @@ -7321,7 +7320,7 @@ class QDoubleSpinBox(QAbstractSpinBox): def setStepType(self, stepType: QAbstractSpinBox.StepType) -> None: ... def stepType(self) -> QAbstractSpinBox.StepType: ... def textChanged(self, a0: str) -> None: ... - valueChanged: QtCore.pyqtSignal + valueChanged: typing.ClassVar[QtCore.pyqtSignal] def setValue(self, val: float) -> None: ... def fixup(self, str: str) -> str: ... def textFromValue(self, v: float) -> str: ... @@ -7356,7 +7355,7 @@ class QSplashScreen(QWidget): def mousePressEvent(self, a0: QtGui.QMouseEvent) -> None: ... def event(self, e: QtCore.QEvent) -> bool: ... def drawContents(self, painter: QtGui.QPainter) -> None: ... - messageChanged: QtCore.pyqtSignal + messageChanged: typing.ClassVar[QtCore.pyqtSignal] def clearMessage(self) -> None: ... def showMessage(self, message: str, alignment: int = ..., color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor, QtGui.QGradient] = ...) -> None: ... def message(self) -> str: ... @@ -7381,7 +7380,7 @@ class QSplitter(QFrame): def event(self, a0: QtCore.QEvent) -> bool: ... def childEvent(self, a0: QtCore.QChildEvent) -> None: ... def createHandle(self) -> 'QSplitterHandle': ... - splitterMoved: QtCore.pyqtSignal + splitterMoved: typing.ClassVar[QtCore.pyqtSignal] def replaceWidget(self, index: int, widget: QWidget) -> QWidget: ... def setStretchFactor(self, index: int, stretch: int) -> None: ... def handle(self, index: int) -> 'QSplitterHandle': ... @@ -7449,8 +7448,8 @@ class QStackedLayout(QLayout): def stackingMode(self) -> 'QStackedLayout.StackingMode': ... def setCurrentWidget(self, w: QWidget) -> None: ... def setCurrentIndex(self, index: int) -> None: ... - currentChanged: QtCore.pyqtSignal - widgetRemoved: QtCore.pyqtSignal + currentChanged: typing.ClassVar[QtCore.pyqtSignal] + widgetRemoved: typing.ClassVar[QtCore.pyqtSignal] def setGeometry(self, rect: QtCore.QRect) -> None: ... def takeAt(self, a0: int) -> QLayoutItem: ... def itemAt(self, a0: int) -> QLayoutItem: ... @@ -7473,8 +7472,8 @@ class QStackedWidget(QFrame): def __init__(self, parent: typing.Optional[QWidget] = ...) -> None: ... def event(self, e: QtCore.QEvent) -> bool: ... - widgetRemoved: QtCore.pyqtSignal - currentChanged: QtCore.pyqtSignal + widgetRemoved: typing.ClassVar[QtCore.pyqtSignal] + currentChanged: typing.ClassVar[QtCore.pyqtSignal] def setCurrentWidget(self, w: QWidget) -> None: ... def setCurrentIndex(self, index: int) -> None: ... def __len__(self) -> int: ... @@ -7498,7 +7497,7 @@ class QStatusBar(QWidget): def reformat(self) -> None: ... def resizeEvent(self, a0: QtGui.QResizeEvent) -> None: ... def paintEvent(self, a0: QtGui.QPaintEvent) -> None: ... - messageChanged: QtCore.pyqtSignal + messageChanged: typing.ClassVar[QtCore.pyqtSignal] def clearMessage(self) -> None: ... def showMessage(self, message: str, msecs: int = ...) -> None: ... def insertPermanentWidget(self, index: int, widget: QWidget, stretch: int = ...) -> int: ... @@ -8409,8 +8408,8 @@ class QSystemTrayIcon(QtCore.QObject): def __init__(self, icon: QtGui.QIcon, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... def event(self, event: QtCore.QEvent) -> bool: ... - messageClicked: QtCore.pyqtSignal - activated: QtCore.pyqtSignal + messageClicked: typing.ClassVar[QtCore.pyqtSignal] + activated: typing.ClassVar[QtCore.pyqtSignal] def show(self) -> None: ... def setVisible(self, visible: bool) -> None: ... def hide(self) -> None: ... @@ -8464,13 +8463,13 @@ class QTabBar(QWidget): def changeCurrentOnDrag(self) -> bool: ... def setAutoHide(self, hide: bool) -> None: ... def autoHide(self) -> bool: ... - tabBarDoubleClicked: QtCore.pyqtSignal - tabBarClicked: QtCore.pyqtSignal + tabBarDoubleClicked: typing.ClassVar[QtCore.pyqtSignal] + tabBarClicked: typing.ClassVar[QtCore.pyqtSignal] def minimumTabSizeHint(self, index: int) -> QtCore.QSize: ... def wheelEvent(self, event: QtGui.QWheelEvent) -> None: ... def hideEvent(self, a0: QtGui.QHideEvent) -> None: ... - tabMoved: QtCore.pyqtSignal - tabCloseRequested: QtCore.pyqtSignal + tabMoved: typing.ClassVar[QtCore.pyqtSignal] + tabCloseRequested: typing.ClassVar[QtCore.pyqtSignal] def setDocumentMode(self, set: bool) -> None: ... def documentMode(self) -> bool: ... def setMovable(self, movable: bool) -> None: ... @@ -8498,7 +8497,7 @@ class QTabBar(QWidget): def tabInserted(self, index: int) -> None: ... def tabSizeHint(self, index: int) -> QtCore.QSize: ... def initStyleOption(self, option: QStyleOptionTab, tabIndex: int) -> None: ... - currentChanged: QtCore.pyqtSignal + currentChanged: typing.ClassVar[QtCore.pyqtSignal] def setCurrentIndex(self, index: int) -> None: ... def usesScrollButtons(self) -> bool: ... def setUsesScrollButtons(self, useButtons: bool) -> None: ... @@ -8712,21 +8711,21 @@ class QTableWidget(QTableView): def dropMimeData(self, row: int, column: int, data: QtCore.QMimeData, action: QtCore.Qt.DropAction) -> bool: ... def mimeData(self, items: typing.Iterable[QTableWidgetItem]) -> QtCore.QMimeData: ... def mimeTypes(self) -> typing.List[str]: ... - currentCellChanged: QtCore.pyqtSignal - cellChanged: QtCore.pyqtSignal - cellEntered: QtCore.pyqtSignal - cellActivated: QtCore.pyqtSignal - cellDoubleClicked: QtCore.pyqtSignal - cellClicked: QtCore.pyqtSignal - cellPressed: QtCore.pyqtSignal - itemSelectionChanged: QtCore.pyqtSignal - currentItemChanged: QtCore.pyqtSignal - itemChanged: QtCore.pyqtSignal - itemEntered: QtCore.pyqtSignal - itemActivated: QtCore.pyqtSignal - itemDoubleClicked: QtCore.pyqtSignal - itemClicked: QtCore.pyqtSignal - itemPressed: QtCore.pyqtSignal + currentCellChanged: typing.ClassVar[QtCore.pyqtSignal] + cellChanged: typing.ClassVar[QtCore.pyqtSignal] + cellEntered: typing.ClassVar[QtCore.pyqtSignal] + cellActivated: typing.ClassVar[QtCore.pyqtSignal] + cellDoubleClicked: typing.ClassVar[QtCore.pyqtSignal] + cellClicked: typing.ClassVar[QtCore.pyqtSignal] + cellPressed: typing.ClassVar[QtCore.pyqtSignal] + itemSelectionChanged: typing.ClassVar[QtCore.pyqtSignal] + currentItemChanged: typing.ClassVar[QtCore.pyqtSignal] + itemChanged: typing.ClassVar[QtCore.pyqtSignal] + itemEntered: typing.ClassVar[QtCore.pyqtSignal] + itemActivated: typing.ClassVar[QtCore.pyqtSignal] + itemDoubleClicked: typing.ClassVar[QtCore.pyqtSignal] + itemClicked: typing.ClassVar[QtCore.pyqtSignal] + itemPressed: typing.ClassVar[QtCore.pyqtSignal] def clearContents(self) -> None: ... def clear(self) -> None: ... def removeColumn(self, column: int) -> None: ... @@ -8803,11 +8802,11 @@ class QTabWidget(QWidget): def isTabVisible(self, index: int) -> bool: ... def setTabBarAutoHide(self, enabled: bool) -> None: ... def tabBarAutoHide(self) -> bool: ... - tabBarDoubleClicked: QtCore.pyqtSignal - tabBarClicked: QtCore.pyqtSignal + tabBarDoubleClicked: typing.ClassVar[QtCore.pyqtSignal] + tabBarClicked: typing.ClassVar[QtCore.pyqtSignal] def hasHeightForWidth(self) -> bool: ... def heightForWidth(self, width: int) -> int: ... - tabCloseRequested: QtCore.pyqtSignal + tabCloseRequested: typing.ClassVar[QtCore.pyqtSignal] def setDocumentMode(self, set: bool) -> None: ... def documentMode(self) -> bool: ... def setMovable(self, movable: bool) -> None: ... @@ -8831,7 +8830,7 @@ class QTabWidget(QWidget): def tabRemoved(self, index: int) -> None: ... def tabInserted(self, index: int) -> None: ... def initStyleOption(self, option: QStyleOptionTabWidgetFrame) -> None: ... - currentChanged: QtCore.pyqtSignal + currentChanged: typing.ClassVar[QtCore.pyqtSignal] def setCurrentWidget(self, widget: QWidget) -> None: ... def setCurrentIndex(self, index: int) -> None: ... def cornerWidget(self, corner: QtCore.Qt.Corner = ...) -> QWidget: ... @@ -8951,13 +8950,13 @@ class QTextEdit(QAbstractScrollArea): def keyPressEvent(self, e: QtGui.QKeyEvent) -> None: ... def timerEvent(self, e: QtCore.QTimerEvent) -> None: ... def event(self, e: QtCore.QEvent) -> bool: ... - cursorPositionChanged: QtCore.pyqtSignal - selectionChanged: QtCore.pyqtSignal - copyAvailable: QtCore.pyqtSignal - currentCharFormatChanged: QtCore.pyqtSignal - redoAvailable: QtCore.pyqtSignal - undoAvailable: QtCore.pyqtSignal - textChanged: QtCore.pyqtSignal + cursorPositionChanged: typing.ClassVar[QtCore.pyqtSignal] + selectionChanged: typing.ClassVar[QtCore.pyqtSignal] + copyAvailable: typing.ClassVar[QtCore.pyqtSignal] + currentCharFormatChanged: typing.ClassVar[QtCore.pyqtSignal] + redoAvailable: typing.ClassVar[QtCore.pyqtSignal] + undoAvailable: typing.ClassVar[QtCore.pyqtSignal] + textChanged: typing.ClassVar[QtCore.pyqtSignal] def zoomOut(self, range: int = ...) -> None: ... def zoomIn(self, range: int = ...) -> None: ... def undo(self) -> None: ... @@ -9057,7 +9056,7 @@ class QTextBrowser(QTextEdit): def doSetSource(self, name: QtCore.QUrl, type: QtGui.QTextDocument.ResourceType = ...) -> None: ... def sourceType(self) -> QtGui.QTextDocument.ResourceType: ... - historyChanged: QtCore.pyqtSignal + historyChanged: typing.ClassVar[QtCore.pyqtSignal] def forwardHistoryCount(self) -> int: ... def backwardHistoryCount(self) -> int: ... def historyUrl(self, a0: int) -> QtCore.QUrl: ... @@ -9077,11 +9076,11 @@ class QTextBrowser(QTextEdit): def mouseMoveEvent(self, ev: QtGui.QMouseEvent) -> None: ... def keyPressEvent(self, ev: QtGui.QKeyEvent) -> None: ... def event(self, e: QtCore.QEvent) -> bool: ... - anchorClicked: QtCore.pyqtSignal - highlighted: QtCore.pyqtSignal - sourceChanged: QtCore.pyqtSignal - forwardAvailable: QtCore.pyqtSignal - backwardAvailable: QtCore.pyqtSignal + anchorClicked: typing.ClassVar[QtCore.pyqtSignal] + highlighted: typing.ClassVar[QtCore.pyqtSignal] + sourceChanged: typing.ClassVar[QtCore.pyqtSignal] + forwardAvailable: typing.ClassVar[QtCore.pyqtSignal] + backwardAvailable: typing.ClassVar[QtCore.pyqtSignal] def reload(self) -> None: ... def home(self) -> None: ... def forward(self) -> None: ... @@ -9111,14 +9110,14 @@ class QToolBar(QWidget): def changeEvent(self, event: QtCore.QEvent) -> None: ... def actionEvent(self, event: QtGui.QActionEvent) -> None: ... def initStyleOption(self, option: QStyleOptionToolBar) -> None: ... - visibilityChanged: QtCore.pyqtSignal - topLevelChanged: QtCore.pyqtSignal - toolButtonStyleChanged: QtCore.pyqtSignal - iconSizeChanged: QtCore.pyqtSignal - orientationChanged: QtCore.pyqtSignal - allowedAreasChanged: QtCore.pyqtSignal - movableChanged: QtCore.pyqtSignal - actionTriggered: QtCore.pyqtSignal + visibilityChanged: typing.ClassVar[QtCore.pyqtSignal] + topLevelChanged: typing.ClassVar[QtCore.pyqtSignal] + toolButtonStyleChanged: typing.ClassVar[QtCore.pyqtSignal] + iconSizeChanged: typing.ClassVar[QtCore.pyqtSignal] + orientationChanged: typing.ClassVar[QtCore.pyqtSignal] + allowedAreasChanged: typing.ClassVar[QtCore.pyqtSignal] + movableChanged: typing.ClassVar[QtCore.pyqtSignal] + actionTriggered: typing.ClassVar[QtCore.pyqtSignal] def setToolButtonStyle(self, toolButtonStyle: QtCore.Qt.ToolButtonStyle) -> None: ... def setIconSize(self, iconSize: QtCore.QSize) -> None: ... def widgetForAction(self, action: QAction) -> QWidget: ... @@ -9163,7 +9162,7 @@ class QToolBox(QFrame): def event(self, e: QtCore.QEvent) -> bool: ... def itemRemoved(self, index: int) -> None: ... def itemInserted(self, index: int) -> None: ... - currentChanged: QtCore.pyqtSignal + currentChanged: typing.ClassVar[QtCore.pyqtSignal] def setCurrentWidget(self, widget: QWidget) -> None: ... def setCurrentIndex(self, index: int) -> None: ... def __len__(self) -> int: ... @@ -9212,7 +9211,7 @@ class QToolButton(QAbstractButton): def mousePressEvent(self, a0: QtGui.QMouseEvent) -> None: ... def event(self, e: QtCore.QEvent) -> bool: ... def initStyleOption(self, option: QStyleOptionToolButton) -> None: ... - triggered: QtCore.pyqtSignal + triggered: typing.ClassVar[QtCore.pyqtSignal] def setDefaultAction(self, a0: QAction) -> None: ... def setToolButtonStyle(self, style: QtCore.Qt.ToolButtonStyle) -> None: ... def showMenu(self) -> None: ... @@ -9330,8 +9329,8 @@ class QTreeView(QAbstractItemView): def showColumn(self, column: int) -> None: ... def hideColumn(self, column: int) -> None: ... def dataChanged(self, topLeft: QtCore.QModelIndex, bottomRight: QtCore.QModelIndex, roles: typing.Iterable[int] = ...) -> None: ... - collapsed: QtCore.pyqtSignal - expanded: QtCore.pyqtSignal + collapsed: typing.ClassVar[QtCore.pyqtSignal] + expanded: typing.ClassVar[QtCore.pyqtSignal] def reset(self) -> None: ... def indexBelow(self, index: QtCore.QModelIndex) -> QtCore.QModelIndex: ... def indexAbove(self, index: QtCore.QModelIndex) -> QtCore.QModelIndex: ... @@ -9473,16 +9472,16 @@ class QTreeWidget(QTreeView): def dropMimeData(self, parent: QTreeWidgetItem, index: int, data: QtCore.QMimeData, action: QtCore.Qt.DropAction) -> bool: ... def mimeData(self, items: typing.Iterable[QTreeWidgetItem]) -> QtCore.QMimeData: ... def mimeTypes(self) -> typing.List[str]: ... - itemSelectionChanged: QtCore.pyqtSignal - currentItemChanged: QtCore.pyqtSignal - itemCollapsed: QtCore.pyqtSignal - itemExpanded: QtCore.pyqtSignal - itemChanged: QtCore.pyqtSignal - itemEntered: QtCore.pyqtSignal - itemActivated: QtCore.pyqtSignal - itemDoubleClicked: QtCore.pyqtSignal - itemClicked: QtCore.pyqtSignal - itemPressed: QtCore.pyqtSignal + itemSelectionChanged: typing.ClassVar[QtCore.pyqtSignal] + currentItemChanged: typing.ClassVar[QtCore.pyqtSignal] + itemCollapsed: typing.ClassVar[QtCore.pyqtSignal] + itemExpanded: typing.ClassVar[QtCore.pyqtSignal] + itemChanged: typing.ClassVar[QtCore.pyqtSignal] + itemEntered: typing.ClassVar[QtCore.pyqtSignal] + itemActivated: typing.ClassVar[QtCore.pyqtSignal] + itemDoubleClicked: typing.ClassVar[QtCore.pyqtSignal] + itemClicked: typing.ClassVar[QtCore.pyqtSignal] + itemPressed: typing.ClassVar[QtCore.pyqtSignal] def clear(self) -> None: ... def collapseItem(self, item: QTreeWidgetItem) -> None: ... def expandItem(self, item: QTreeWidgetItem) -> None: ... @@ -9577,13 +9576,13 @@ class QUndoGroup(QtCore.QObject): def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... - undoTextChanged: QtCore.pyqtSignal - redoTextChanged: QtCore.pyqtSignal - indexChanged: QtCore.pyqtSignal - cleanChanged: QtCore.pyqtSignal - canUndoChanged: QtCore.pyqtSignal - canRedoChanged: QtCore.pyqtSignal - activeStackChanged: QtCore.pyqtSignal + undoTextChanged: typing.ClassVar[QtCore.pyqtSignal] + redoTextChanged: typing.ClassVar[QtCore.pyqtSignal] + indexChanged: typing.ClassVar[QtCore.pyqtSignal] + cleanChanged: typing.ClassVar[QtCore.pyqtSignal] + canUndoChanged: typing.ClassVar[QtCore.pyqtSignal] + canRedoChanged: typing.ClassVar[QtCore.pyqtSignal] + activeStackChanged: typing.ClassVar[QtCore.pyqtSignal] def undo(self) -> None: ... def setActiveStack(self, stack: 'QUndoStack') -> None: ... def redo(self) -> None: ... @@ -9627,12 +9626,12 @@ class QUndoStack(QtCore.QObject): def command(self, index: int) -> QUndoCommand: ... def undoLimit(self) -> int: ... def setUndoLimit(self, limit: int) -> None: ... - undoTextChanged: QtCore.pyqtSignal - redoTextChanged: QtCore.pyqtSignal - indexChanged: QtCore.pyqtSignal - cleanChanged: QtCore.pyqtSignal - canUndoChanged: QtCore.pyqtSignal - canRedoChanged: QtCore.pyqtSignal + undoTextChanged: typing.ClassVar[QtCore.pyqtSignal] + redoTextChanged: typing.ClassVar[QtCore.pyqtSignal] + indexChanged: typing.ClassVar[QtCore.pyqtSignal] + cleanChanged: typing.ClassVar[QtCore.pyqtSignal] + canUndoChanged: typing.ClassVar[QtCore.pyqtSignal] + canRedoChanged: typing.ClassVar[QtCore.pyqtSignal] def resetClean(self) -> None: ... def undo(self) -> None: ... def setIndex(self, idx: int) -> None: ... @@ -9773,8 +9772,8 @@ class QWizard(QDialog): def __init__(self, parent: typing.Optional[QWidget] = ..., flags: typing.Union[QtCore.Qt.WindowFlags, QtCore.Qt.WindowType] = ...) -> None: ... def visitedIds(self) -> typing.List[int]: ... - pageRemoved: QtCore.pyqtSignal - pageAdded: QtCore.pyqtSignal + pageRemoved: typing.ClassVar[QtCore.pyqtSignal] + pageAdded: typing.ClassVar[QtCore.pyqtSignal] def sideWidget(self) -> QWidget: ... def setSideWidget(self, widget: QWidget) -> None: ... def pageIds(self) -> typing.List[int]: ... @@ -9788,12 +9787,12 @@ class QWizard(QDialog): def restart(self) -> None: ... def next(self) -> None: ... def back(self) -> None: ... - customButtonClicked: QtCore.pyqtSignal - helpRequested: QtCore.pyqtSignal - currentIdChanged: QtCore.pyqtSignal + customButtonClicked: typing.ClassVar[QtCore.pyqtSignal] + helpRequested: typing.ClassVar[QtCore.pyqtSignal] + currentIdChanged: typing.ClassVar[QtCore.pyqtSignal] def sizeHint(self) -> QtCore.QSize: ... def setVisible(self, visible: bool) -> None: ... - def setDefaultProperty(self, className: str, property: str, changedSignal: PYQT_SIGNAL) -> None: ... + def setDefaultProperty(self, className: str, property: str, changedSignal: typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal]) -> None: ... def pixmap(self, which: 'QWizard.WizardPixmap') -> QtGui.QPixmap: ... def setPixmap(self, which: 'QWizard.WizardPixmap', pixmap: QtGui.QPixmap) -> None: ... def subTitleFormat(self) -> QtCore.Qt.TextFormat: ... @@ -9831,10 +9830,10 @@ class QWizardPage(QWidget): def __init__(self, parent: typing.Optional[QWidget] = ...) -> None: ... def wizard(self) -> QWizard: ... - def registerField(self, name: str, widget: QWidget, property: typing.Optional[str] = ..., changedSignal: PYQT_SIGNAL = ...) -> None: ... + def registerField(self, name: str, widget: QWidget, property: typing.Optional[str] = ..., changedSignal: typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal] = ...) -> None: ... def field(self, name: str) -> typing.Any: ... def setField(self, name: str, value: typing.Any) -> None: ... - completeChanged: QtCore.pyqtSignal + completeChanged: typing.ClassVar[QtCore.pyqtSignal] def nextId(self) -> int: ... def isComplete(self) -> bool: ... def validatePage(self) -> bool: ... diff --git a/PyQt5-stubs/QtX11Extras.pyi b/PyQt5-stubs/QtX11Extras.pyi index c78082f5..70d00cd5 100644 --- a/PyQt5-stubs/QtX11Extras.pyi +++ b/PyQt5-stubs/QtX11Extras.pyi @@ -29,7 +29,6 @@ from PyQt5 import QtCore import datetime # Convenient type aliases. -PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal] PYQT_SLOT = typing.Union[typing.Callable[..., None], QtCore.pyqtBoundSignal] diff --git a/PyQt5-stubs/QtXml.pyi b/PyQt5-stubs/QtXml.pyi index f3adb594..bba7c2c6 100644 --- a/PyQt5-stubs/QtXml.pyi +++ b/PyQt5-stubs/QtXml.pyi @@ -29,7 +29,6 @@ from PyQt5 import QtCore import datetime # Convenient type aliases. -PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal] PYQT_SLOT = typing.Union[typing.Callable[..., None], QtCore.pyqtBoundSignal] diff --git a/PyQt5-stubs/QtXmlPatterns.pyi b/PyQt5-stubs/QtXmlPatterns.pyi index 61473ceb..e79b3a07 100644 --- a/PyQt5-stubs/QtXmlPatterns.pyi +++ b/PyQt5-stubs/QtXmlPatterns.pyi @@ -30,7 +30,6 @@ from PyQt5 import QtCore import datetime # Convenient type aliases. -PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal] PYQT_SLOT = typing.Union[typing.Callable[..., None], QtCore.pyqtBoundSignal] diff --git a/tests/pyqtsignal.py b/tests/pyqtsignal.py new file mode 100644 index 00000000..139b9de9 --- /dev/null +++ b/tests/pyqtsignal.py @@ -0,0 +1,15 @@ +import typing +from PyQt5 import QtCore + + +class Class(QtCore.QObject): + signal = QtCore.pyqtSignal([str]) # type: typing.ClassVar[QtCore.pyqtSignal] + + +Class.signal.__get__ + +instance = Class() +instance.signal.emit +instance.signal.connect +instance.signal.disconnect +instance.signal[str].emit diff --git a/tests/test_stubs.py b/tests/test_stubs.py index be9fc3f0..b56bf85b 100644 --- a/tests/test_stubs.py +++ b/tests/test_stubs.py @@ -31,4 +31,4 @@ def test_files(filename): path = os.path.join(TESTS_DIR, filename) with open(path, 'r') as f: code = f.read() - exec(compile(code, filename, 'exec')) + exec(compile(code, filename, 'exec'), {})