aboutsummaryrefslogtreecommitdiff
path: root/uploader/phenotypes
diff options
context:
space:
mode:
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):