Skip to content

Commit 5a6c3eb

Browse files
committed
style
Signed-off-by: Jan Kowalleck <[email protected]>
1 parent 623056e commit 5a6c3eb

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

cyclonedx/model/tool.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ def json_normalize(cls, o: ToolsRepository, *,
282282
**__: Any) -> Any:
283283
if len(o.tools) > 0 or not cls.__supports_components_and_services(view):
284284
return cls.__all_as_tools(o) or None
285-
elem = {}
285+
elem: Dict[str, Any] = {}
286286
if o.components:
287287
elem['components'] = tuple(o.components)
288288
if o.services:

tests/_data/models.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1046,13 +1046,15 @@ def get_bom_with_multiple_licenses() -> Bom:
10461046
licenses=multi_licenses)]
10471047
)
10481048

1049+
10491050
def get_bom_with_tools() -> Bom:
10501051
return _make_bom(
10511052
metadata=BomMetaData(
10521053
tools=[Tool(name='test-tool', version='1.33.7')]
10531054
)
10541055
)
10551056

1057+
10561058
def get_bom_with_tools_with_component_migrate() -> Bom:
10571059
return _make_bom(
10581060
metadata=BomMetaData(
@@ -1063,6 +1065,7 @@ def get_bom_with_tools_with_component_migrate() -> Bom:
10631065
)
10641066
)
10651067

1068+
10661069
def get_bom_with_tools_with_service_migrate() -> Bom:
10671070
return _make_bom(
10681071
metadata=BomMetaData(
@@ -1072,6 +1075,7 @@ def get_bom_with_tools_with_service_migrate() -> Bom:
10721075
)
10731076
)
10741077

1078+
10751079
def get_bom_with_tools_with_component_and_service_migrate() -> Bom:
10761080
return _make_bom(
10771081
metadata=BomMetaData(

0 commit comments

Comments
 (0)