1
0
Fork 0
mirror of https://github.com/Kozea/Radicale.git synced 2025-06-26 16:45:52 +00:00

fix types (mpy)

This commit is contained in:
Peter Bieringer 2024-12-15 11:45:38 +01:00
parent dc20f518dd
commit 11dad85404

View file

@ -74,7 +74,7 @@ class CollectionPartCache(CollectionBase):
return _hash.hexdigest() return _hash.hexdigest()
@staticmethod @staticmethod
def _item_cache_mtime_and_size(size: bytes, raw_text: bytes) -> str: def _item_cache_mtime_and_size(size: int, raw_text: int) -> str:
return str(storage.CACHE_VERSION.decode()) + "size=" + str(size) + ";mtime=" + str(raw_text) return str(storage.CACHE_VERSION.decode()) + "size=" + str(size) + ";mtime=" + str(raw_text)
def _item_cache_content(self, item: radicale_item.Item) -> CacheContent: def _item_cache_content(self, item: radicale_item.Item) -> CacheContent: