Common: Fix hint in IEventSerializer

This commit is contained in:
Ilija Lazoroski 2022-08-18 09:32:02 +02:00
parent 132f3a3473
commit 23604009a0
1 changed files with 3 additions and 3 deletions

View File

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