ソースを参照

Fix type checking on python 3.5.

Jelmer Vernooij 4 年 前
コミット
1b8b04b35a
1 ファイル変更5 行追加5 行削除
  1. 5 5
      dulwich/bundle.py

+ 5 - 5
dulwich/bundle.py

@@ -27,12 +27,12 @@ from .pack import PackData, write_pack_data
 
 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)):