rather than direct instantiation to ensure proper type conversion of the
target_type argument.
Depends on D2917.
Differential D2918
GitLoader: instantiate SnapshotBranch object using the from_dict factory douardda on Mar 27 2020, 4:36 PM. Authored by
Details
Diff Detail
Event TimelineComment Actions Build is green Comment Actions Dunno, but without this and running against next swh.model version (with runtime type validation) I have a AttributeTypeError: target_type must be <enum 'TargetType'> (got revision that is a <class 'str'>) Comment Actions What about this instead? self.local_refs: Dict[bytes, Dict[str, Any]] = fetch_info['local_refs'] |