Skip to content

Commit

Permalink
Add type hint and TODO comment
Browse files Browse the repository at this point in the history
  • Loading branch information
tuokri committed Jul 25, 2024
1 parent 4efa071 commit 14ab474
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion UDKTests/run_udk_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ def download_file(url: str, out_file: Path, progress_bar: bool = True):
def remove_old_extracted(cache: Cache):
print("removing old extracted files, if any")

dirs = []
dirs: list[Path] = []

for file in cache.pkg_archive_extracted_files:
p = Path(file).resolve()
Expand Down Expand Up @@ -265,6 +265,7 @@ def already_extracted(archive_file: str, out_dir: Path, cache: Cache) -> bool:

# Convince UDK.exe to flush the log file.
# TODO: this is fucking stupid.
# TODO: also not needed since -FORCELOGFLUSH is enabled.
def poke_file(file: Path, event: threading.Event):
while not event.is_set():
file.stat()
Expand Down

0 comments on commit 14ab474

Please sign in to comment.