From 3705886ab6b0d4ef713fddd2472006c6f08c182b Mon Sep 17 00:00:00 2001 From: Douglas Raillard Date: Wed, 20 Dec 2023 11:27:58 +0100 Subject: [PATCH] lisa.wlgen.rta: Fix PeriodicWload(run_wload=...) expected type FIX Require a callable rather than limiting it to types. --- lisa/wlgen/rta.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisa/wlgen/rta.py b/lisa/wlgen/rta.py index d4653d76e..de3b2aa2d 100644 --- a/lisa/wlgen/rta.py +++ b/lisa/wlgen/rta.py @@ -2985,7 +2985,7 @@ class PeriodicWload(WloadPropertyBase, ComposableMultiConcretePropertyBase): ), 'run_wload': dict( doc="Workload factory callback used for the running part. It will be called with a single ``duration`` parameter (in seconds) and must return a :class:`WloadPropertyBase`. Note that the passed duration is scaled according to ``scale_for_cpu`` and ``scale_for_freq``", - type_=type, + type_=Callable, ), 'sleep_wload': dict( doc="Workload factory callback used for the sleeping part. It will be called with a ``duration`` parameter and ``period`` parameter (in seconds) and must return a :class:`WloadPropertyBase`. Note that the passed duration is scaled according to ``scale_for_cpu`` and ``scale_for_freq``", -- GitLab