File tree Expand file tree Collapse file tree 2 files changed +6
-9
lines changed
Expand file tree Collapse file tree 2 files changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -343,11 +343,9 @@ def from_dict(cls, data: dict) -> "LicenseMatch":
343343@dataclass
344344class LicenseDetail :
345345 authors : List [str ]
346- charEnd : int
347- charStart : int
346+ errorData : str
348347 filepath : str
349348 match_strength : int
350- filehash : str
351349 provenance : str
352350 spdxDisj : List [List [LicenseMatch ]]
353351
@@ -360,14 +358,13 @@ def to_dict(self):
360358 @classmethod
361359 def from_dict (cls , data : dict ) -> "LicenseDetail" :
362360 return cls (
361+ spdxDisj = data ["spdxDisj" ],
363362 authors = data ["authors" ],
364- charEnd = data ["charEnd " ],
365- charStart = data ["charStart " ],
363+ errorData = data ["errorData " ],
364+ provenance = data ["provenance " ],
366365 filepath = data ["filepath" ],
367366 match_strength = data ["match_strength" ],
368- filehash = data ["filehash" ],
369- provenance = data ["provenance" ],
370- spdxDisj = [[LicenseMatch .from_dict (match ) for match in group ] for group in data ["spdxDisj" ]],
367+
371368 )
372369
373370
Original file line number Diff line number Diff line change 1- __version__ = "2.1.6 "
1+ __version__ = "2.1.7 "
You can’t perform that action at this time.
0 commit comments