Skip to content

Commit f45032d

Browse files
committed
Fix lints
Signed-off-by: Jon Johnson <jon.johnson@chainguard.dev>
1 parent 1c6cd54 commit f45032d

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

src/spdx_tools/spdx/model/document.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,4 +95,4 @@ def cached_function(document: Document):
9595
cache[key] = value
9696
return value
9797

98-
return cached_function
98+
return cached_function

src/spdx_tools/spdx/validation/spdx_id_validators.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66

77
from beartype.typing import List, Set
88

9-
from functools import cache
10-
119
from spdx_tools.spdx.document_utils import get_contained_spdx_element_ids
1210
from spdx_tools.spdx.model import Document, File
1311
from spdx_tools.spdx.model.document import document_cache
@@ -25,7 +23,6 @@ def is_spdx_id_present_in_files(spdx_id: str, files: List[File]) -> bool:
2523
return spdx_id in [file.spdx_id for file in files]
2624

2725

28-
# @cache
2926
def is_spdx_id_present_in_document(spdx_id: str, document: Document) -> bool:
3027
all_spdx_ids_in_document: Set[str] = get_set_of_all_spdx_ids(document)
3128

0 commit comments

Comments
 (0)