aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMunyoki Kilyungi2023-08-31 16:05:57 +0300
committerBonfaceKilz2023-09-05 14:57:51 +0300
commit22169b8a0c29f70f7189d62bcfe420ab29b45b5f (patch)
tree6171d8aa3c4e4bc7015f1fcb5cc7be4bef89f44f
parent42559337bc4ebfb6f4fd8b09bbc9accf78472db2 (diff)
downloadgenenetwork3-22169b8a0c29f70f7189d62bcfe420ab29b45b5f.tar.gz
Remove type annotations for "none_case_attrs" variables
* gn3/db/sample_data.py (update_sample_data, delete_sample_data, insert_sample_data): Remove type hints for "none_case_attrs". Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
-rw-r--r--gn3/db/sample_data.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/gn3/db/sample_data.py b/gn3/db/sample_data.py
index 38fa3d9..f2b5880 100644
--- a/gn3/db/sample_data.py
+++ b/gn3/db/sample_data.py
@@ -306,7 +306,7 @@ def update_sample_data(
dataset_name=dataset_name,
strain_name=extract_strain_name(csv_header, original_data),
)
- none_case_attrs: Dict[str, Callable] = {
+ none_case_attrs = {
"Strain Name": lambda x: 0,
"Value": lambda x: __update_data(conn, "ProbeSetData", x),
"SE": lambda x: __update_data(conn, "ProbeSetSE", x),
@@ -319,7 +319,7 @@ def update_sample_data(
phenotype_id=phenotype_id,
strain_name=extract_strain_name(csv_header, original_data),
)
- none_case_attrs: Dict[str, Callable] = {
+ none_case_attrs = {
"Strain Name": lambda x: 0,
"Value": lambda x: __update_data(conn, "PublishData", x),
"SE": lambda x: __update_data(conn, "PublishSE", x),
@@ -439,7 +439,7 @@ def delete_sample_data(
phenotype_id=phenotype_id,
strain_name=extract_strain_name(csv_header, data),
)
- none_case_attrs: Dict[str, Any] = {
+ none_case_attrs = {
"Strain Name": lambda: 0,
"Value": lambda: __delete_data(conn, "PublishData"),
"SE": lambda: __delete_data(conn, "PublishSE"),
@@ -532,7 +532,7 @@ def insert_sample_data(
dataset_name=dataset_name,
strain_name=extract_strain_name(csv_header, data),
)
- none_case_attrs: Dict[str, Any] = {
+ none_case_attrs = {
"Strain Name": lambda _: 0,
"Value": lambda x: __insert_data(conn, "ProbeSetData", x),
"SE": lambda x: __insert_data(conn, "ProbeSetSE", x),
@@ -545,7 +545,7 @@ def insert_sample_data(
phenotype_id=phenotype_id,
strain_name=extract_strain_name(csv_header, data),
)
- none_case_attrs: Dict[str, Any] = {
+ none_case_attrs = {
"Strain Name": lambda _: 0,
"Value": lambda x: __insert_data(conn, "PublishData", x),
"SE": lambda x: __insert_data(conn, "PublishSE", x),