1bc64e169fd0 draft — Jelmer Vernooij 9 months ago
Fix type checking on python 3.5.
1 files changed, 5 insertions(+), 5 deletions(-)

M dulwich/bundle.py
M dulwich/bundle.py +5 -5
@@ 27,12 27,12 @@ from .pack import PackData, write_pack_d
 
 class Bundle(object):
 
-    version: Optional[int] = None
+    version = None  # type: Optional[int]
 
-    capabilities: Dict[str, str] = {}
-    prerequisites: List[Tuple[bytes, str]] = []
-    references: Dict[str, bytes] = {}
-    pack_data: Union[PackData, Sequence[bytes]] = []
+    capabilities = {}  # type: Dict[str, str]
+    prerequisites = []  # type: List[Tuple[bytes, str]]
+    references = {}  # type: Dict[str, bytes]
+    pack_data = []  # type: Union[PackData, Sequence[bytes]]
 
     def __eq__(self, other):
         if not isinstance(other, type(self)):