Skip to content

Commit

Permalink
fix: explicit casting on the variability model to configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
jagalindo committed May 30, 2023
1 parent 6b54ca6 commit 116a9db
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions flamapy/core/discover.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from importlib import import_module
from pkgutil import iter_modules
from types import ModuleType
from typing import Any, Optional, Protocol, Type, runtime_checkable
from typing import Any, Optional, Protocol, Type, runtime_checkable, cast

from flamapy.core.config import PLUGIN_PATHS
from flamapy.core.exceptions import OperationNotFound
Expand Down Expand Up @@ -212,7 +212,8 @@ def use_operation_from_file(
if configuration_file is None:
raise ConfigurationNotFound()
configuration = self.__transform_to_model_from_file(configuration_file)
operation.set_configuration(configuration)
operation.set_configuration(cast(Configuration, configuration)
)

operation = plugin.use_operation(operation, vm_temp)

Expand Down

0 comments on commit 116a9db

Please sign in to comment.