mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Fix typing
This commit is contained in:
parent
31e20e78b6
commit
dd19d7d1a9
4 changed files with 25 additions and 20 deletions
|
@ -162,7 +162,7 @@ class PostProcessingPlugin(QObject, Extension):
|
|||
loaded_script = importlib.util.module_from_spec(spec)
|
||||
if spec.loader is None:
|
||||
continue
|
||||
spec.loader.exec_module(loaded_script)
|
||||
spec.loader.exec_module(loaded_script) # type: ignore
|
||||
sys.modules[script_name] = loaded_script #TODO: This could be a security risk. Overwrite any module with a user-provided name?
|
||||
|
||||
loaded_class = getattr(loaded_script, script_name)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue