Skip to content

Commit 3f1c62f

Browse files
lumjjbarmintaenzertng
authored andcommitted
fix lint errors
Signed-off-by: Brandon Lum <lumjjb@gmail.com>
1 parent 32e3d2d commit 3f1c62f

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

src/spdx_tools/spdx/parser/jsonlikedict/relationship_parser.py

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,26 +35,34 @@ def parse_all_relationships(self, input_doc_dict: Dict) -> List[Relationship]:
3535
document_describes: List[str] = delete_duplicates_from_list(input_doc_dict.get("documentDescribes", []))
3636
doc_spdx_id: Optional[str] = input_doc_dict.get("SPDXID")
3737

38-
existing_relationships_without_comments: List[Relationship] = self.get_all_relationships_without_comments(relationships)
38+
existing_relationships_without_comments: List[Relationship] = self.get_all_relationships_without_comments(
39+
relationships
40+
)
3941
relationships.extend(
4042
parse_field_or_log_error(
4143
self.logger,
4244
document_describes,
4345
lambda x: self.parse_document_describes(
44-
doc_spdx_id=doc_spdx_id, described_spdx_ids=x, existing_relationships=existing_relationships_without_comments
46+
doc_spdx_id=doc_spdx_id,
47+
described_spdx_ids=x,
48+
existing_relationships=existing_relationships_without_comments,
4549
),
4650
[],
4751
)
4852
)
4953

5054
package_dicts: List[Dict] = input_doc_dict.get("packages", [])
51-
existing_relationships_without_comments: List[Relationship] = self.get_all_relationships_without_comments(relationships)
55+
existing_relationships_without_comments: List[Relationship] = self.get_all_relationships_without_comments(
56+
relationships
57+
)
5258

5359
relationships.extend(
5460
parse_field_or_log_error(
5561
self.logger,
5662
package_dicts,
57-
lambda x: self.parse_has_files(package_dicts=x, existing_relationships=existing_relationships_without_comments),
63+
lambda x: self.parse_has_files(
64+
package_dicts=x, existing_relationships=existing_relationships_without_comments
65+
),
5866
[],
5967
)
6068
)

0 commit comments

Comments
 (0)