Fix typing for archive builds without extras path

This commit is contained in:
Joakim Soderlund 2024-05-15 11:19:49 +02:00
parent bb02c334ae
commit 01f3df1202

View file

@ -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()