From 8a13cf2c4d2d41e79d5cbdf7ca6ede65b89b3ec2 Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Sat, 2 Nov 2024 00:06:09 +0100 Subject: [PATCH] make mypy happy --- src/borg/hashindex.pyi | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/borg/hashindex.pyi b/src/borg/hashindex.pyi index 4291c9691..6b236afa7 100644 --- a/src/borg/hashindex.pyi +++ b/src/borg/hashindex.pyi @@ -5,13 +5,15 @@ API_VERSION: str PATH_OR_FILE = Union[str, IO] class ChunkIndexEntry(NamedTuple): - refcount: int + flags: int size: int CIE = Union[Tuple[int, int], Type[ChunkIndexEntry]] class ChunkIndex: - def add(self, key: bytes, refs: int, size: int) -> None: ... + F_NONE: int + F_USED: int + def add(self, key: bytes, size: int) -> None: ... def iteritems(self, marker: bytes = ...) -> Iterator: ... def __contains__(self, key: bytes) -> bool: ... def __getitem__(self, key: bytes) -> Type[ChunkIndexEntry]: ...