From 3c47afe8092ff9f5bc152320e724c07973c1941a Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Tue, 19 Jul 2022 15:55:05 +0300 Subject: Save standard error data. Fix linting and typing errors. --- quality_control/file_utils.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'quality_control') 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") -- cgit v1.2.3