Fix more Mypy warnings

CURA-6983
This commit is contained in:
Nino van Hooff 2020-01-14 17:57:12 +01:00
parent 53115dc3b2
commit 88e5626b59
3 changed files with 14 additions and 4 deletions

View file

@ -24,6 +24,7 @@ class DiscrepanciesPresenter(QObject):
def present(self, plugin_path: str, model: SubscribedPackagesModel):
path = os.path.join(plugin_path, self._compatibility_dialog_path)
self._dialog = self._app.createQmlComponent(path, {"subscribedPackagesModel": model})
assert self._dialog
self._dialog.accepted.connect(lambda: self._onConfirmClicked(model))
def _onConfirmClicked(self, model: SubscribedPackagesModel):