aboutsummaryrefslogtreecommitdiff
path: root/uploader/phenotypes
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-10-17 11:31:59 -0500
committerFrederick Muriuki Muriithi2024-10-17 11:32:27 -0500
commit9db2d0986619bf801e2308ee55e4340d9f050376 (patch)
tree246afb4ccbf12b45c28e1c2ca49211ec36db8a16 /uploader/phenotypes
parentb8299e6c7cdb0819883bfd8e142fc71c43440746 (diff)
downloadgn-uploader-9db2d0986619bf801e2308ee55e4340d9f050376.tar.gz
mypy: Fix some typing issues.
Diffstat (limited to 'uploader/phenotypes')
-rw-r--r--uploader/phenotypes/views.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/uploader/phenotypes/views.py b/uploader/phenotypes/views.py
index eb0b460..5f6e4a6 100644
--- a/uploader/phenotypes/views.py
+++ b/uploader/phenotypes/views.py
@@ -259,7 +259,7 @@ def create_dataset(species: dict, population: dict, **kwargs):# pylint: disable=
request.args.get("error_values", "")))
form = request.form
- _errors = tuple()
+ _errors: tuple[tuple[str, str], ...] = tuple()
if not is_valid_representative_name(
(form.get("dataset-name") or "").strip()):
_errors = _errors + (("dataset-name", "Invalid dataset name."),)
@@ -297,7 +297,7 @@ def create_dataset(species: dict, population: dict, **kwargs):# pylint: disable=
species_redirect_uri="species.populations.phenotypes.index",
population_redirect_uri="species.populations.phenotypes.select_population",
redirect_uri="species.populations.phenotypes.list_datasets")
-def add_phenotypes(species: dict, population: dict, dataset: dict, **kwargs):
+def add_phenotypes(species: dict, population: dict, dataset: dict, **kwargs):# pylint: disable=[unused-argument, too-many-locals]
"""Add one or more phenotypes to the dataset."""
with (database_connection(app.config["SQL_URI"]) as conn,
conn.cursor(cursorclass=DictCursor) as cursor):