mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07:00
Fix typing
CURA-8588
This commit is contained in:
parent
7deeb26e13
commit
27e5905a32
3 changed files with 10 additions and 6 deletions
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
import os.path
|
||||
from PyQt5.QtCore import pyqtProperty, pyqtSignal, pyqtSlot, QObject
|
||||
from typing import Optional
|
||||
from typing import Optional, cast
|
||||
|
||||
from cura.CuraApplication import CuraApplication # Creating QML objects and managing packages.
|
||||
|
||||
|
|
@ -100,7 +100,7 @@ class Marketplace(Extension, QObject):
|
|||
|
||||
def checkIfRestartNeeded(self) -> None:
|
||||
if self._package_manager.hasPackagesToRemoveOrInstall or \
|
||||
self._plugin_registry.getCurrentSessionActivationChangedPlugins():
|
||||
cast(PluginRegistry, self._plugin_registry).getCurrentSessionActivationChangedPlugins():
|
||||
self._restart_needed = True
|
||||
else:
|
||||
self._restart_needed = False
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue