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