diff --git a/rally/task/context.py b/rally/task/context.py index 1d0a2116ff..891d159fe7 100644 --- a/rally/task/context.py +++ b/rally/task/context.py @@ -125,6 +125,7 @@ class BaseContext(plugin.Plugin, functional.FunctionalMixin, RESOURCE_NAME_FORMAT = "c_rally_XXXXXXXX_XXXXXXXX" CONFIG_SCHEMA: dict[str, t.Any] = {"type": "null"} + config: t.Any def __init__(self, ctx: dict[str, t.Any]) -> None: super(BaseContext, self).__init__() diff --git a/rally/task/hook.py b/rally/task/hook.py index 1cc54e1fa9..30944dbe86 100644 --- a/rally/task/hook.py +++ b/rally/task/hook.py @@ -141,7 +141,7 @@ class HookAction(plugin.Plugin, validation.ValidatablePluginMixin, metaclass=abc.ABCMeta): """Factory for hook classes.""" - CONFIG_SCHEMA = {"type": "null"} + CONFIG_SCHEMA: dict = {"type": "null"} def __init__( self,