Skip to content

Commit

Permalink
fix: fix type info for python < 3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
tngraf committed Jan 28, 2024
1 parent 67b6846 commit 546d971
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions capycli/common/purl_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# SPDX-License-Identifier: MIT
# -------------------------------------------------------------------------------

from typing import Any, Dict, Optional
from typing import Any, Dict, Optional, Tuple

from packageurl import PackageURL

Expand Down Expand Up @@ -44,7 +44,7 @@ def __bool__(self, *args: Any, **kwargs: Any) -> bool:
""" True if self else False """
return bool(self.purl_cache)

def add(self, purl: PackageURL, entry: Any) -> tuple[bool, Any]:
def add(self, purl: PackageURL, entry: Any) -> Tuple[bool, Any]:
# Prepare cache for purl
pc = self.purl_cache
for key in (purl.type, purl.namespace, purl.name):
Expand Down

0 comments on commit 546d971

Please sign in to comment.