Skip to content

Commit c46075f

Browse files
committed
fix tarfile error on linux Debian - typing
1 parent 1bf0c03 commit c46075f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/nplinker/metabolomics/gnps/gnps_extractor.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import zipfile
55
from os import PathLike
66
from pathlib import Path
7+
from tarfile import TarInfo
78
from nplinker import utils
89
from .gnps_format import GNPSFormat
910
from .gnps_format import gnps_format_from_archive
@@ -233,7 +234,7 @@ def _select_zip_member(self, prefix: str, suffix: str) -> str:
233234
)
234235
return member_list[0]
235236

236-
def _select_tar_member(self, prefix: str, suffix: str) -> str:
237+
def _select_tar_member(self, prefix: str, suffix: str) -> TarInfo:
237238
"""Helper function to extract files matching a prefix and suffix from the tar archive."""
238239
with tarfile.open(self._file) as tf:
239240
member_list = [

0 commit comments

Comments
 (0)