Skip to content

Commit 5c3debf

Browse files
committed
python 3.9 compatibility fix
1 parent 959d4dd commit 5c3debf

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

fastapi_jsonapi/api.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,10 @@
4646
not_passed = object()
4747

4848

49-
@dataclass(frozen=True, slots=True)
49+
# todo: when 3.9 support is dropped, return back `slots=True to JSONAPIObjectSchemas dataclass`
50+
51+
52+
@dataclass(frozen=True)
5053
class JSONAPIObjectSchemas:
5154
attributes_schema: Type[BaseModel]
5255
relationships_schema: Type[BaseModel]

0 commit comments

Comments
 (0)