From 95af8764febbeca61f66ce66b158025c9472f540 Mon Sep 17 00:00:00 2001 From: Hiran Wijesinghe Date: Mon, 11 Mar 2024 14:46:19 -0400 Subject: [PATCH] fix compat with python 3.8 by removing `Required` --- tiled/server/schemas.py | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/tiled/server/schemas.py b/tiled/server/schemas.py index 30cc6a05c..5fbe0a1e5 100644 --- a/tiled/server/schemas.py +++ b/tiled/server/schemas.py @@ -3,17 +3,7 @@ import enum import uuid from datetime import datetime -from typing import ( - Any, - Dict, - Generic, - List, - Optional, - Required, - TypedDict, - TypeVar, - Union, -) +from typing import Any, Dict, Generic, List, Optional, TypedDict, TypeVar, Union import pydantic import pydantic.dataclasses @@ -458,8 +448,8 @@ def specs_uniqueness_validator(cls, v): JSONPatchSpec = TypedDict( "JSONPatchSpec", { - "op": Required[str], - "path": Required[str], + "op": str, + "path": str, "from": str, "value": Any, },