forked from p15670423/monkey
Common: Fix hint in IEventSerializer
This commit is contained in:
parent
132f3a3473
commit
23604009a0
|
@ -1,10 +1,10 @@
|
||||||
from abc import ABC, abstractmethod
|
from abc import ABC, abstractmethod
|
||||||
from typing import Dict, List, Type, Union
|
from typing import Dict, List, Union
|
||||||
|
|
||||||
from common.events import AbstractEvent
|
from common.events import AbstractEvent
|
||||||
|
|
||||||
JSONSerializable = Union[
|
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
|
Deserializes an event
|
||||||
|
|
||||||
:param serialized_event: Serialized vent to deserialize
|
:param serialized_event: Serialized event to deserialize
|
||||||
:return: Deserialized event
|
:return: Deserialized event
|
||||||
"""
|
"""
|
||||||
pass
|
pass
|
||||||
|
|
Loading…
Reference in New Issue