fix(dynamic_pseudo): fix exec for py313

This commit is contained in:
wakonig_k 2025-03-16 11:44:52 +01:00
parent 761498f51d
commit 74695dcb0a

View File

@ -102,8 +102,9 @@ class ComputedSignal(SignalRO):
method = method.replace(function_name, "user_compute_method") method = method.replace(function_name, "user_compute_method")
self._compute_method_str = method self._compute_method_str = method
# pylint: disable=exec-used # pylint: disable=exec-used
exec(method) out = {}
self._compute_method = locals()["user_compute_method"] exec(method, out)
self._compute_method = out["user_compute_method"]
@property @property
def input_signals(self): def input_signals(self):