commit - d8dea763853cad0c32efbe54a98cb2646d610c62
commit + 7c4f65b680bc4295653904d23180cb8d8298429f
blob - 12b963679c6d6a7c0cdb67dfca87b37f2bd16d91
blob + 08ee44a9df693318d1002c049c839e928c1580e1
--- dulwich/pack.py
+++ dulwich/pack.py
# read buffer and (20 - N) come from the wire.
self.read(20)
- pack_sha = bytearray(self._trailer)
+ pack_sha = bytearray(self._trailer) # type: ignore
if pack_sha != self.sha.digest():
raise ChecksumMismatch(sha_to_hex(pack_sha), self.sha.hexdigest())
blob - a80c6ec0c298a1a6551ed6777979566755518e12
blob + 7c72cc5921d925602cf52e7d75fd331cd1239e51
--- dulwich/walk.py
+++ dulwich/walk.py
import collections
import heapq
from itertools import chain
-from typing import List, Tuple, Set, Deque, Literal, Optional
+from typing import List, Tuple, Set, Deque, Optional
from dulwich.diff_tree import (
RENAME_CHANGE_TYPES,
store,
include: List[bytes],
exclude: Optional[List[bytes]] = None,
- order: Literal["date", "topo"] = 'date',
+ order: str = 'date',
reverse: bool = False,
max_entries: Optional[int] = None,
paths: Optional[List[bytes]] = None,