Skip to content

Commit bf404c8

Browse files
committed
Relax typing check for invocation of shutil there
1 parent c1c09b4 commit bf404c8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

heudiconv/parser.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,12 +141,12 @@ def get_extracted_dicoms(fl: Iterable[str]) -> ItemsView[Optional[str], list[str
141141
os.chmod(tmpdir, mode=0o700)
142142
# For tar (only!) starting with 3.12 we should provide filter
143143
# (enforced in 3.14) on how to filter/safe-guard filenames.
144-
kws = {}
144+
kws: dict[str, str] = {}
145145
if sys.version_info >= (3, 12) and t.endswith(_TAR_UNPACK_FORMATS):
146146
# Allow for a user-workaround if would be desired
147147
# see e.g. https://docs.python.org/3.12/library/tarfile.html#extraction-filters
148148
kws["filter"] = os.environ.get("HEUDICONV_TAR_FILTER", "tar")
149-
shutil.unpack_archive(t, extract_dir=tmpdir, **kws)
149+
shutil.unpack_archive(t, extract_dir=tmpdir, **kws) # type: ignore[arg-type]
150150

151151
archive_content = list(find_files(regex=".*", topdir=tmpdir))
152152

0 commit comments

Comments
 (0)