From 43ef908d61fd03e5a4c2ecfabdf22764c8613429 Mon Sep 17 00:00:00 2001 From: Rodney Richardson Date: Mon, 30 May 2022 10:50:39 +0100 Subject: [PATCH] Fix type hint on ComparableTuple Signed-off-by: Rodney Richardson --- cyclonedx/model/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cyclonedx/model/__init__.py b/cyclonedx/model/__init__.py index cb68ec75..88e4868a 100644 --- a/cyclonedx/model/__init__.py +++ b/cyclonedx/model/__init__.py @@ -62,7 +62,7 @@ def sha1sum(filename: str) -> str: _T = TypeVar('_T') -class ComparableTuple(Tuple[_T, ...]): +class ComparableTuple(Tuple[Optional[_T], ...]): """ Allows comparison of tuples, allowing for None values. """