From d86c52fa7d1ae6e3f8db6c473f15d29958ba4013 Mon Sep 17 00:00:00 2001 From: Dan Allan Date: Tue, 2 Apr 2024 13:32:37 -0400 Subject: [PATCH] use style compatible with py38 --- tiled/structures/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tiled/structures/core.py b/tiled/structures/core.py index 853afcead..2e9d0b73c 100644 --- a/tiled/structures/core.py +++ b/tiled/structures/core.py @@ -36,7 +36,7 @@ def __repr__(self): output = f"{type(self).__name__}({self.name!r}, version={self.version!r})" return output - def dict(self) -> dict[str, str | None]: + def dict(self) -> dict[str, Optional[str]]: # For easy interoperability with pydantic 1.x models return asdict(self)