Skip to content

Commit 255cb80

Browse files
committed
Fix mypy for retry function
Ironic
1 parent 6a0f84f commit 255cb80

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Tools/build/generate_sbom.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import re
88
import subprocess
99
import sys
10+
import time
1011
import typing
1112
import urllib.request
1213
import urllib.error
@@ -162,7 +163,7 @@ def get_externals() -> list[str]:
162163
return externals
163164

164165

165-
def download_with_retries(download_location, retries=5):
166+
def download_with_retries(download_location: str, retries: int = 5):
166167
"""Download a file with exponential backoff retry."""
167168
attempt = 0
168169
while attempt < retries:

0 commit comments

Comments
 (0)