Skip to content

Commit

Permalink
use style compatible with py38
Browse files Browse the repository at this point in the history
  • Loading branch information
danielballan committed Apr 2, 2024
1 parent f494743 commit d86c52f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tiled/structures/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit d86c52f

Please sign in to comment.