From ff22132f21c35f9132f692df6af9658fbb300b70 Mon Sep 17 00:00:00 2001 From: BonfaceKilz Date: Thu, 10 Mar 2022 17:21:50 +0300 Subject: 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. --- gn3/db/sample_data.py | 4 ++-- 1 file 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. """ -- cgit v1.2.3