From 8cb045d63589a98b7b701f697726601c1c2d2be6 Mon Sep 17 00:00:00 2001 From: Mike Salvatore Date: Fri, 24 Jun 2022 13:25:09 -0400 Subject: [PATCH] Common: Fix incorrect type hints on AgentConfiguration.from_json() --- monkey/common/configuration/agent_configuration.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monkey/common/configuration/agent_configuration.py b/monkey/common/configuration/agent_configuration.py index 72b26d2f0..b7dcb90c5 100644 --- a/monkey/common/configuration/agent_configuration.py +++ b/monkey/common/configuration/agent_configuration.py @@ -53,7 +53,7 @@ class AgentConfiguration: raise InvalidConfigurationError(f"{INVALID_CONFIGURATION_ERROR_MESSAGE}: {err}") @staticmethod - def from_json(config_json: dict): + def from_json(config_json: str) -> AgentConfiguration: try: config_dict = AgentConfigurationSchema().loads(config_json) return AgentConfiguration(**config_dict)