From 69e11d6b503c86f8988c835a2e835df7e7875c6d Mon Sep 17 00:00:00 2001 From: Mike Salvatore Date: Tue, 13 Sep 2022 08:35:43 -0400 Subject: [PATCH] Common: Ignore mypy cyclical definition warning for JSONSerializable --- monkey/common/event_serializers/i_event_serialize.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/monkey/common/event_serializers/i_event_serialize.py b/monkey/common/event_serializers/i_event_serialize.py index 75d95be3c..a092946ab 100644 --- a/monkey/common/event_serializers/i_event_serialize.py +++ b/monkey/common/event_serializers/i_event_serialize.py @@ -3,8 +3,14 @@ from typing import Dict, List, Union from common.events import AbstractAgentEvent -JSONSerializable = Union[ - Dict[str, "JSONSerializable"], List["JSONSerializable"], int, str, float, bool, None +JSONSerializable = Union[ # type: ignore[misc] + Dict[str, "JSONSerializable"], # type: ignore[misc] + List["JSONSerializable"], # type: ignore[misc] + int, + str, + float, + bool, + None, ]