mirror of
https://github.com/borgbackup/borg.git
synced 2024-12-23 00:07:38 +00:00
make mypy happy
This commit is contained in:
parent
2ab3c163ce
commit
8a13cf2c4d
1 changed files with 4 additions and 2 deletions
|
@ -5,13 +5,15 @@ API_VERSION: str
|
||||||
PATH_OR_FILE = Union[str, IO]
|
PATH_OR_FILE = Union[str, IO]
|
||||||
|
|
||||||
class ChunkIndexEntry(NamedTuple):
|
class ChunkIndexEntry(NamedTuple):
|
||||||
refcount: int
|
flags: int
|
||||||
size: int
|
size: int
|
||||||
|
|
||||||
CIE = Union[Tuple[int, int], Type[ChunkIndexEntry]]
|
CIE = Union[Tuple[int, int], Type[ChunkIndexEntry]]
|
||||||
|
|
||||||
class ChunkIndex:
|
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 iteritems(self, marker: bytes = ...) -> Iterator: ...
|
||||||
def __contains__(self, key: bytes) -> bool: ...
|
def __contains__(self, key: bytes) -> bool: ...
|
||||||
def __getitem__(self, key: bytes) -> Type[ChunkIndexEntry]: ...
|
def __getitem__(self, key: bytes) -> Type[ChunkIndexEntry]: ...
|
||||||
|
|
Loading…
Reference in a new issue