Skip to content

Commit

Permalink
fix: fix type info for python < 3.10
Browse files Browse the repository at this point in the history
  • Loading branch information
tngraf committed Jan 28, 2024
1 parent 6ef4e14 commit 67b6846
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion capycli/bom/findsources.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ def get_github_source_url(self, github_url: str, version: str) -> str:
tag_info_checked = self.check_for_github_error(tag_info)
return self.get_matching_tag(tag_info_checked, version, github_url)

def check_for_github_error(self, tag_info: List[Dict[str, Any]] | Dict[str, Any]) -> List[Dict[str, Any]]:
def check_for_github_error(self, tag_info: get_github_info_type) -> List[Dict[str, Any]]:
if isinstance(tag_info, list):
# assume valid answer
return tag_info
Expand Down

0 comments on commit 67b6846

Please sign in to comment.