mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-11 00:37:50 -06:00
Fix 2 mypy errors
CURA-6983
This commit is contained in:
parent
46133fe2f3
commit
8dffed9195
1 changed files with 3 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
||||||
import os
|
import os
|
||||||
from typing import List, Dict, Any
|
from typing import List, Dict, Any, cast
|
||||||
|
|
||||||
from UM.Extension import Extension
|
from UM.Extension import Extension
|
||||||
from UM.Logger import Logger
|
from UM.Logger import Logger
|
||||||
|
@ -52,7 +52,7 @@ class SyncOrchestrator(Extension):
|
||||||
self._restart_presenter = RestartApplicationPresenter(app)
|
self._restart_presenter = RestartApplicationPresenter(app)
|
||||||
|
|
||||||
def _onDiscrepancies(self, model: SubscribedPackagesModel) -> None:
|
def _onDiscrepancies(self, model: SubscribedPackagesModel) -> None:
|
||||||
plugin_path = PluginRegistry.getInstance().getPluginPath(self.getPluginId())
|
plugin_path = cast(str, PluginRegistry.getInstance().getPluginPath(self.getPluginId()))
|
||||||
self._discrepancies_presenter.present(plugin_path, model)
|
self._discrepancies_presenter.present(plugin_path, model)
|
||||||
|
|
||||||
def _onPackageMutations(self, mutations: SubscribedPackagesModel) -> None:
|
def _onPackageMutations(self, mutations: SubscribedPackagesModel) -> None:
|
||||||
|
@ -65,7 +65,7 @@ class SyncOrchestrator(Extension):
|
||||||
# \param error_items: List[package_id]
|
# \param error_items: List[package_id]
|
||||||
def _onDownloadFinished(self, success_items: Dict[str, str], error_items: List[str]) -> None:
|
def _onDownloadFinished(self, success_items: Dict[str, str], error_items: List[str]) -> None:
|
||||||
# todo handle error items
|
# todo handle error items
|
||||||
plugin_path = PluginRegistry.getInstance().getPluginPath(self.getPluginId())
|
plugin_path = cast(str, PluginRegistry.getInstance().getPluginPath(self.getPluginId()))
|
||||||
self._license_presenter.present(plugin_path, success_items)
|
self._license_presenter.present(plugin_path, success_items)
|
||||||
|
|
||||||
# Called when user has accepted / declined all licenses for the downloaded packages
|
# Called when user has accepted / declined all licenses for the downloaded packages
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue