1
0
mirror of https://github.com/etesync/server synced 2024-11-26 02:38:15 +00:00

Improve chunks type.

This commit is contained in:
Tom Hacohen 2020-12-28 10:41:22 +02:00
parent 1a09393dcb
commit 37f5a4509f

View File

@ -31,7 +31,10 @@ class CollectionItemRevisionInOut(BaseModel):
uid: str uid: str
meta: bytes meta: bytes
deleted: bool 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: class Config:
orm_mode = True orm_mode = True