Skip to content

Commit b8e0a2b

Browse files
author
Tilman Krummeck
committed
Corrected annotations for signal in QThread and QNetworkAccessManager
1 parent 307eb69 commit b8e0a2b

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

PyQt5-stubs/QtCore.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8247,8 +8247,8 @@ class QThread(QObject):
82478247
def exec(self) -> int: ...
82488248
def exec_(self) -> int: ...
82498249
def run(self) -> None: ...
8250-
def finished(self) -> None: ...
8251-
def started(self) -> None: ...
8250+
finished: typing.ClassVar[pyqtSignal]
8251+
started: typing.ClassVar[pyqtSignal]
82528252
@typing.overload
82538253
def wait(self, msecs: int = ...) -> bool: ...
82548254
@typing.overload

PyQt5-stubs/QtNetwork.pyi

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -764,13 +764,13 @@ class QNetworkAccessManager(QtCore.QObject):
764764
def setProxyFactory(self, factory: 'QNetworkProxyFactory') -> None: ...
765765
def proxyFactory(self) -> 'QNetworkProxyFactory': ...
766766
def createRequest(self, op: 'QNetworkAccessManager.Operation', request: 'QNetworkRequest', device: typing.Optional[QtCore.QIODevice] = ...) -> 'QNetworkReply': ...
767-
def preSharedKeyAuthenticationRequired(self, reply: 'QNetworkReply', authenticator: 'QSslPreSharedKeyAuthenticator') -> None: ...
767+
preSharedKeyAuthenticationRequired = typing.ClassVar[QtCore.pyqtSignal]
768768
def networkAccessibleChanged(self, accessible: 'QNetworkAccessManager.NetworkAccessibility') -> None: ...
769-
def sslErrors(self, reply: 'QNetworkReply', errors: typing.Iterable['QSslError']) -> None: ...
770-
def encrypted(self, reply: 'QNetworkReply') -> None: ...
771-
def finished(self, reply: 'QNetworkReply') -> None: ...
772-
def authenticationRequired(self, reply: 'QNetworkReply', authenticator: QAuthenticator) -> None: ...
773-
def proxyAuthenticationRequired(self, proxy: 'QNetworkProxy', authenticator: QAuthenticator) -> None: ...
769+
sslErrors: typing.ClassVar[QtCore.pyqtSignal]
770+
encrypted: typing.ClassVar[QtCore.pyqtSignal]
771+
finished: typing.ClassVar[QtCore.pyqtSignal]
772+
authenticationRequired: typing.ClassVar[QtCore.pyqtSignal]
773+
proxyAuthenticationRequired: typing.ClassVar[QtCore.pyqtSignal]
774774
@typing.overload
775775
def put(self, request: 'QNetworkRequest', data: QtCore.QIODevice) -> 'QNetworkReply': ...
776776
@typing.overload

0 commit comments

Comments
 (0)