Common: Ignore mypy cyclical definition warning for JSONSerializable

This commit is contained in:
Mike Salvatore 2022-09-13 08:35:43 -04:00
parent d3a4f255f0
commit 69e11d6b50
1 changed files with 8 additions and 2 deletions

View File

@ -3,8 +3,14 @@ from typing import Dict, List, Union
from common.events import AbstractAgentEvent from common.events import AbstractAgentEvent
JSONSerializable = Union[ JSONSerializable = Union[ # type: ignore[misc]
Dict[str, "JSONSerializable"], List["JSONSerializable"], int, str, float, bool, None Dict[str, "JSONSerializable"], # type: ignore[misc]
List["JSONSerializable"], # type: ignore[misc]
int,
str,
float,
bool,
None,
] ]