aboutsummaryrefslogtreecommitdiff
path: root/quality_control/file_utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'quality_control/file_utils.py')
-rw-r--r--quality_control/file_utils.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/quality_control/file_utils.py b/quality_control/file_utils.py
index fdce1e1..002f22c 100644
--- a/quality_control/file_utils.py
+++ b/quality_control/file_utils.py
@@ -1,10 +1,9 @@
"Common file utilities"
from typing import Union
from pathlib import Path
-from io import TextIOWrapper
from zipfile import ZipFile, is_zipfile
-def open_file(filepath: Union[str, Path]) -> Union[ZipFile, TextIOWrapper]:
+def open_file(filepath: Union[str, Path]):
"Transparently open both TSV and ZIP files"
if not is_zipfile(filepath):
return open(filepath, encoding="utf-8")