Browse Source

make mypy happy

Thomas Waldmann 7 months ago
parent
commit
8a13cf2c4d
1 changed files with 4 additions and 2 deletions
  1. 4 2
      src/borg/hashindex.pyi

+ 4 - 2
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]: ...