From 37f5a4509f700169cdd60e5f47ccc69034fc9302 Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Mon, 28 Dec 2020 10:41:22 +0200 Subject: [PATCH] Improve chunks type. --- etebase_fastapi/collection.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/etebase_fastapi/collection.py b/etebase_fastapi/collection.py index 6757ac3..3af5af0 100644 --- a/etebase_fastapi/collection.py +++ b/etebase_fastapi/collection.py @@ -31,7 +31,10 @@ class CollectionItemRevisionInOut(BaseModel): uid: str meta: bytes deleted: bool - chunks: t.List[t.Tuple[str, t.Optional[bytes]]] + chunks: t.List[t.Union[ + t.Tuple[str], + t.Tuple[str, bytes], + ]] class Config: orm_mode = True