Implemented code review suggestions

Contributes to CURA-8558
This commit is contained in:
Jelle Spijker 2021-11-04 08:19:05 +01:00 committed by Jelle Spijker
parent e01e47b8fa
commit 11b3b08198
No known key found for this signature in database
GPG key ID: 6662DC033BE6B99A
3 changed files with 10 additions and 7 deletions

View file

@ -18,7 +18,6 @@ from .PackageModel import PackageModel # The contents of this list.
if TYPE_CHECKING:
from PyQt5.QtCore import QObject
from PyQt5.QtNetwork import QNetworkReply
catalog = i18nCatalog("cura")
@ -26,7 +25,7 @@ catalog = i18nCatalog("cura")
class RemotePackageList(PackageList):
ITEMS_PER_PAGE = 20 # Pagination of number of elements to download at once.
def __init__(self, parent: "QObject" = None) -> None:
def __init__(self, parent: Optional["QObject"] = None) -> None:
super().__init__(parent)
self._ongoing_request: Optional[HttpRequestData] = None