1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
|
From: =?utf-8?q?Armin_T=C3=A4nzer?= <armin.taenzer@tngtech.com>
Date: Fri, 11 Apr 2025 15:29:36 +0200
Subject: Small formatting fixes after black update
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Signed-off-by: Armin Tänzer <armin.taenzer@tngtech.com>
---
src/spdx_tools/spdx/parser/jsonlikedict/snippet_parser.py | 2 +-
src/spdx_tools/spdx3/bump_from_spdx2/relationship.py | 2 +-
src/spdx_tools/spdx3/writer/console/__init__.py | 4 ++--
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/spdx_tools/spdx/parser/jsonlikedict/snippet_parser.py b/src/spdx_tools/spdx/parser/jsonlikedict/snippet_parser.py
index f007794..3914e68 100644
--- a/src/spdx_tools/spdx/parser/jsonlikedict/snippet_parser.py
+++ b/src/spdx_tools/spdx/parser/jsonlikedict/snippet_parser.py
@@ -127,7 +127,7 @@ class SnippetParser:
@staticmethod
def convert_range_from_str(
- _range: Tuple[Union[int, str], Union[int, str]]
+ _range: Tuple[Union[int, str], Union[int, str]],
) -> Tuple[Union[int, str], Union[int, str]]:
# XML does not support integers, so we have to convert from string (if possible)
if not _range:
diff --git a/src/spdx_tools/spdx3/bump_from_spdx2/relationship.py b/src/spdx_tools/spdx3/bump_from_spdx2/relationship.py
index 918cbda..dd6909c 100644
--- a/src/spdx_tools/spdx3/bump_from_spdx2/relationship.py
+++ b/src/spdx_tools/spdx3/bump_from_spdx2/relationship.py
@@ -218,7 +218,7 @@ def bump_relationship(
def determine_completeness_and_to(
- related_spdx_element_id: Union[str, SpdxNone, SpdxNoAssertion]
+ related_spdx_element_id: Union[str, SpdxNone, SpdxNoAssertion],
) -> Tuple[Optional[RelationshipCompleteness], List[str]]:
if isinstance(related_spdx_element_id, SpdxNoAssertion):
completeness = RelationshipCompleteness.NOASSERTION
diff --git a/src/spdx_tools/spdx3/writer/console/__init__.py b/src/spdx_tools/spdx3/writer/console/__init__.py
index 39bbda8..46eabf8 100644
--- a/src/spdx_tools/spdx3/writer/console/__init__.py
+++ b/src/spdx_tools/spdx3/writer/console/__init__.py
@@ -1,5 +1,5 @@
# SPDX-FileCopyrightText: 2023 spdx contributors
#
# SPDX-License-Identifier: Apache-2.0
-""" This is a temporary package to write the implemented model of spdx_tools.spdx3.0 to console. As soon as
- serialization formats are properly defined this package can be deleted."""
+"""This is a temporary package to write the implemented model of spdx_tools.spdx3.0 to console. As soon as
+serialization formats are properly defined this package can be deleted."""
|