Skip to content

Commit f9c7990

Browse files
committed
fix: relaxed typing of parameter to be compatible with Python < 3.9
Signed-off-by: Paul Horton <[email protected]>
1 parent d272d2e commit f9c7990

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cyclonedx/model/vulnerability.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ class VulnerabilitySeverity(Enum):
8484
UNKNOWN = 'Unknown'
8585

8686
@staticmethod
87-
def get_from_cvss_scores(scores: tuple[float] = None):
87+
def get_from_cvss_scores(scores: tuple = None):
8888
if type(scores) is float:
8989
scores = (scores,)
9090

0 commit comments

Comments
 (0)