From 23604009a05c27f51344f165e1adf2a9c15651bb Mon Sep 17 00:00:00 2001 From: Ilija Lazoroski Date: Thu, 18 Aug 2022 09:32:02 +0200 Subject: [PATCH] Common: Fix hint in IEventSerializer --- monkey/common/event_serializers/i_event_serialize.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/monkey/common/event_serializers/i_event_serialize.py b/monkey/common/event_serializers/i_event_serialize.py index f78d2eb43..5544e6ede 100644 --- a/monkey/common/event_serializers/i_event_serialize.py +++ b/monkey/common/event_serializers/i_event_serialize.py @@ -1,10 +1,10 @@ from abc import ABC, abstractmethod -from typing import Dict, List, Type, Union +from typing import Dict, List, Union from common.events import AbstractEvent JSONSerializable = Union[ - Dict[str, "JSONSerializable"], List["JSONSerializable"], int, str, float, bool, Type[None] + Dict[str, "JSONSerializable"], List["JSONSerializable"], int, str, float, bool, None ] @@ -28,7 +28,7 @@ class IEventSerializer(ABC): """ Deserializes an event - :param serialized_event: Serialized vent to deserialize + :param serialized_event: Serialized event to deserialize :return: Deserialized event """ pass