about summary refs log tree commit diff
path: root/gn_auth
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2026-08-26 10:13:59 -0500
committerFrederick Muriuki Muriithi2026-08-26 10:14:18 -0500
commitcc9368ed3da150728e970667602147f46e1692a9 (patch)
tree6895a54248842123ce62b0cb6ae2430b2358c020 /gn_auth
parentc34df781ff313655c78464e0973bc0208be2a585 (diff)
downloadgn-auth-cc9368ed3da150728e970667602147f46e1692a9.tar.gz
Fix type annotations.
Diffstat (limited to 'gn_auth')
-rw-r--r--gn_auth/auth/authorisation/data/genotypes.py2
-rw-r--r--gn_auth/auth/authorisation/data/mrna.py2
-rw-r--r--gn_auth/auth/authorisation/roles/views.py2
3 files changed, 3 insertions, 3 deletions
diff --git a/gn_auth/auth/authorisation/data/genotypes.py b/gn_auth/auth/authorisation/data/genotypes.py
index 17f3317..b6f0464 100644
--- a/gn_auth/auth/authorisation/data/genotypes.py
+++ b/gn_auth/auth/authorisation/data/genotypes.py
@@ -55,7 +55,7 @@ def ungrouped_genotype_data(# pylint: disable=[too-many-arguments, too-many-posi
         "FROM Species AS s INNER JOIN InbredSet AS iset "
         "ON s.SpeciesId=iset.SpeciesId INNER JOIN GenoFreeze AS gf "
         "ON iset.InbredSetId=gf.InbredSetId ")
-    params = tuple()
+    params: tuple[str, ...] = tuple()
     if bool(search_query):
         query = query + (
             "WHERE CONCAT(gf.Name, ' ', gf.FullName, ' ', gf.ShortName) "
diff --git a/gn_auth/auth/authorisation/data/mrna.py b/gn_auth/auth/authorisation/data/mrna.py
index 1af0c41..7cced10 100644
--- a/gn_auth/auth/authorisation/data/mrna.py
+++ b/gn_auth/auth/authorisation/data/mrna.py
@@ -57,7 +57,7 @@ def ungrouped_mrna_data(# pylint: disable=[too-many-arguments, too-many-position
         "ON s.SpeciesId=iset.SpeciesId INNER JOIN ProbeFreeze AS pf "
         "ON iset.InbredSetId=pf.InbredSetId INNER JOIN ProbeSetFreeze AS psf "
         "ON pf.ProbeFreezeId=psf.ProbeFreezeId ")
-    params = tuple()
+    params: tuple[str, ...] = tuple()
     if bool(search_query):
         query = query + (
             "WHERE CONCAT(pf.Name, psf.Name, ' ', psf.FullName, ' ', "
diff --git a/gn_auth/auth/authorisation/roles/views.py b/gn_auth/auth/authorisation/roles/views.py
index 163d67e..91292e7 100644
--- a/gn_auth/auth/authorisation/roles/views.py
+++ b/gn_auth/auth/authorisation/roles/views.py
@@ -20,4 +20,4 @@ def view_role(role_id: uuid.UUID) -> Response:
     with require_oauth.acquire("profile role") as _token:
         db_uri = current_app.config["AUTH_DB"]
         with db.connection(db_uri) as conn:
-            return jsonify(asdict(role_by_id(conn, role_id)))
+            return jsonify(asdict(role_by_id(conn, role_id)))# type: ignore[arg-type]