diff options
author | Frederick Muriuki Muriithi | 2024-10-17 11:31:59 -0500 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2024-10-17 11:32:27 -0500 |
commit | 9db2d0986619bf801e2308ee55e4340d9f050376 (patch) | |
tree | 246afb4ccbf12b45c28e1c2ca49211ec36db8a16 /uploader/phenotypes | |
parent | b8299e6c7cdb0819883bfd8e142fc71c43440746 (diff) | |
download | gn-uploader-9db2d0986619bf801e2308ee55e4340d9f050376.tar.gz |
mypy: Fix some typing issues.
Diffstat (limited to 'uploader/phenotypes')
-rw-r--r-- | uploader/phenotypes/views.py | 4 |
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): |