Common: Fix incorrect type hints on AgentConfiguration.from_json()

This commit is contained in:
Mike Salvatore 2022-06-24 13:25:09 -04:00
parent 334d2a790f
commit 8cb045d635
1 changed files with 1 additions and 1 deletions

View File

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