[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:
@@ -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__()
|
||||
|
@@ -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,
|
||||
|
Reference in New Issue
Block a user