1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2024-12-22 15:57:15 +00:00

make mypy happy

This commit is contained in:
Thomas Waldmann 2024-11-02 00:06:09 +01:00
parent 2ab3c163ce
commit 8a13cf2c4d
No known key found for this signature in database
GPG key ID: 243ACFA951F78E01

View file

@ -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]: ...