Skip to content

Commit

Permalink
fix compat with python 3.8 by removing Required
Browse files Browse the repository at this point in the history
  • Loading branch information
hyperrealist committed Mar 11, 2024
1 parent 3082a4e commit 95af876
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions tiled/server/schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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,
},
Expand Down

0 comments on commit 95af876

Please sign in to comment.