# HG changeset patch # User Jelmer Vernooij # Date 1607698113 0 # Fri Dec 11 14:48:33 2020 +0000 # Node ID 1bc64e169fd07ac17254ab81f911de321ea475ca # Parent 53c7e99f7dc7d1152458487e4b3a3ef5fb090043 Fix type checking on python 3.5. diff --git a/dulwich/bundle.py b/dulwich/bundle.py --- a/dulwich/bundle.py +++ b/dulwich/bundle.py @@ -27,12 +27,12 @@ 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)):