From 51428f6971d9bd036279fd28c29c89f61cfacf41 Mon Sep 17 00:00:00 2001 From: "Laura Luebbert, Ph.D." <56094636+lauraluebbert@users.noreply.github.com> Date: Tue, 24 Sep 2024 14:46:18 -0400 Subject: [PATCH] Remove type hinting to support earlier Python versions --- gget/gget_seq.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/gget/gget_seq.py b/gget/gget_seq.py index 5656e0c2..bbf254e8 100644 --- a/gget/gget_seq.py +++ b/gget/gget_seq.py @@ -95,12 +95,10 @@ def seq( query = {"ids": ens_ids_clean} # noinspection PyTypeChecker - results_list: list[dict[str, ...]] = post_query(server, endpoint, query) - results_dict: dict[str, dict[str, ...]] = {v['query']: v for v in results_list if v is not None} + results_list = post_query(server, endpoint, query) + results_dict = {v['query']: v for v in results_list if v is not None} for ensembl_ID, df_temp in results_dict.items(): - df_temp: dict[str, ...] - # Delete superfluous entries keys_to_delete = ["query", "id", "version", "molecule"] for key in keys_to_delete: