Skip to content

Commit 2240b4d

Browse files
authored
fix: typing for kwargs (#462)
Signed-off-by: Jan Kowalleck <[email protected]>
1 parent 84c6504 commit 2240b4d

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

cyclonedx/output/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import os
2121
from abc import ABC, abstractmethod
2222
from importlib import import_module
23-
from typing import Any, Dict, Iterable, Optional, Type, Union
23+
from typing import Any, Iterable, Optional, Type, Union
2424

2525
from ..model.bom import Bom
2626
from ..model.component import Component
@@ -72,12 +72,12 @@ def generate(self, force_regeneration: bool = False) -> None:
7272
@abstractmethod
7373
def output_as_string(self, *,
7474
indent: Optional[Union[int, str]] = None,
75-
**kwargs: Dict[str, Any]) -> str:
75+
**kwargs: Any) -> str:
7676
...
7777

7878
def output_to_file(self, filename: str, allow_overwrite: bool = False, *,
7979
indent: Optional[Union[int, str]] = None,
80-
**kwargs: Dict[str, Any]) -> None:
80+
**kwargs: Any) -> None:
8181
# Check directory writable
8282
output_filename = os.path.realpath(filename)
8383
output_directory = os.path.dirname(output_filename)

cyclonedx/output/json.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def generate(self, force_regeneration: bool = False) -> None:
7373

7474
def output_as_string(self, *,
7575
indent: Optional[Union[int, str]] = None,
76-
**kwargs: Dict[str, Any]) -> str:
76+
**kwargs: Any) -> str:
7777
self.generate()
7878
return json_dumps(self._bom_json,
7979
indent=indent)

cyclonedx/output/xml.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def __make_indent(v: Optional[Union[int, str]]) -> str:
7575

7676
def output_as_string(self, *,
7777
indent: Optional[Union[int, str]] = None,
78-
**kwargs: Dict[str, Any]) -> str:
78+
**kwargs: Any) -> str:
7979
self.generate()
8080
return self._bom_xml if indent is None else dom_parseString(self._bom_xml).toprettyxml(
8181
indent=self.__make_indent(indent)

0 commit comments

Comments
 (0)