diff options
author | BonfaceKilz | 2022-03-10 17:21:50 +0300 |
---|---|---|
committer | BonfaceKilz | 2022-03-12 15:33:09 +0300 |
commit | ff22132f21c35f9132f692df6af9658fbb300b70 (patch) | |
tree | 8f25a25dbc64ed9847386626f3eaef96e9ab7463 /gn3/db | |
parent | dfa6a6106718f0c88f1b09aedae42eb31aafbb6c (diff) | |
download | genenetwork3-ff22132f21c35f9132f692df6af9658fbb300b70.tar.gz |
Add missing return type-annotations
* tests/unit/db/test_sample_data.py (delete_sample_data): Add missing return
type for type annotations.
(insert_sample_data): Ditto.
Diffstat (limited to 'gn3/db')
-rw-r--r-- | gn3/db/sample_data.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gn3/db/sample_data.py b/gn3/db/sample_data.py index cfa4a3d..6482116 100644 --- a/gn3/db/sample_data.py +++ b/gn3/db/sample_data.py @@ -214,7 +214,7 @@ def delete_sample_data(conn: Any, trait_name: str, data: str, csv_header: str, - phenotype_id: int): + phenotype_id: int) -> int: """Given the right parameters, delete sample-data from the relevant tables.""" def __delete_data(conn, table): @@ -277,7 +277,7 @@ def insert_sample_data(conn: Any, # pylint: disable=[R0913] trait_name: str, data: str, csv_header: str, - phenotype_id: int): + phenotype_id: int) -> int: """Given the right parameters, insert sample-data to the relevant table. """ |