Make QNetworkReply optional

This commit is contained in:
ChrisTerBeke 2018-11-21 00:04:34 +01:00
parent 8ad8489af0
commit 8453cd693e
No known key found for this signature in database
GPG key ID: A49F1AB9D7E0C263

View file

@ -195,7 +195,7 @@ class NetworkClient:
## Does a POST request with form parts to the given URL.
def postFormWithParts(self, target: str, parts: List[QHttpPart],
on_finished: Optional[Callable[[QNetworkReply], None]],
on_progress: Callable = None) -> QNetworkReply:
on_progress: Callable = None) -> Optional[QNetworkReply]:
self._validateManager()
request = self._createEmptyRequest(target, content_type = None)