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":
343
343
@dataclass
344
344
class LicenseDetail :
345
345
authors : List [str ]
346
- charEnd : int
347
- charStart : int
346
+ errorData : str
348
347
filepath : str
349
348
match_strength : int
350
- filehash : str
351
349
provenance : str
352
350
spdxDisj : List [List [LicenseMatch ]]
353
351
@@ -360,14 +358,13 @@ def to_dict(self):
360
358
@classmethod
361
359
def from_dict (cls , data : dict ) -> "LicenseDetail" :
362
360
return cls (
361
+ spdxDisj = data ["spdxDisj" ],
363
362
authors = data ["authors" ],
364
- charEnd = data ["charEnd " ],
365
- charStart = data ["charStart " ],
363
+ errorData = data ["errorData " ],
364
+ provenance = data ["provenance " ],
366
365
filepath = data ["filepath" ],
367
366
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
+
371
368
)
372
369
373
370
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