diff options
author | Frederick Muriuki Muriithi | 2022-07-19 15:55:05 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2022-07-19 15:55:05 +0300 |
commit | 3c47afe8092ff9f5bc152320e724c07973c1941a (patch) | |
tree | 30f0f54a2ecac03a0bb67dda6b1ea7f0580af005 /quality_control | |
parent | c52570a4069abb6b8953e486adb326392ce6714c (diff) | |
download | gn-uploader-3c47afe8092ff9f5bc152320e724c07973c1941a.tar.gz |
Save standard error data. Fix linting and typing errors.
Diffstat (limited to 'quality_control')
-rw-r--r-- | quality_control/file_utils.py | 3 |
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") |