[type-hints] Set config of context and hooks as Any

The target plugin should set desired type itself.

Change-Id: I66ddc89b8a4663aab57e9fd16d5d5ed7a95d0e26
Signed-off-by: Andriy Kurilin <andr.kurilin@gmail.com>
This commit is contained in:
Andriy Kurilin
2025-08-09 18:30:21 +02:00
parent c1e22f1d46
commit cd921eafc4
2 changed files with 2 additions and 1 deletions

View File

@@ -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__()

View File

@@ -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,