From 01f3df120254aa4d0b1863d8e6e1080668ccfb69 Mon Sep 17 00:00:00 2001 From: Joakim Soderlund Date: Wed, 15 May 2024 11:19:49 +0200 Subject: [PATCH] Fix typing for archive builds without extras path --- fimfarchive/tasks/build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fimfarchive/tasks/build.py b/fimfarchive/tasks/build.py index 24392ae..825fd5e 100644 --- a/fimfarchive/tasks/build.py +++ b/fimfarchive/tasks/build.py @@ -95,7 +95,7 @@ class BuildTask: directory: Path to read extras from """ if directory is None: - return () + return for path in Path(directory).iterdir(): yield path.name, path.read_bytes()