diff options
author | Frederick Muriuki Muriithi | 2023-01-20 12:43:47 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2023-01-20 12:43:47 +0300 |
commit | b7b743001eae170792c5f533757fa40d86a9788a (patch) | |
tree | 68eed68fa2fdd828083b7f313445d7a89744d86f /gn3/auth/authentication/oauth2/models | |
parent | f0745377da36b7060da86412f3f5b04b5d383877 (diff) | |
download | genenetwork3-b7b743001eae170792c5f533757fa40d86a9788a.tar.gz |
mypy: minor fixes to typing errors
Diffstat (limited to 'gn3/auth/authentication/oauth2/models')
-rw-r--r-- | gn3/auth/authentication/oauth2/models/oauth2client.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gn3/auth/authentication/oauth2/models/oauth2client.py b/gn3/auth/authentication/oauth2/models/oauth2client.py index ac3bdb1..70b8f59 100644 --- a/gn3/auth/authentication/oauth2/models/oauth2client.py +++ b/gn3/auth/authentication/oauth2/models/oauth2client.py @@ -135,7 +135,7 @@ def client(conn: db.DbConnection, client_id: uuid.UUID, "SELECT * FROM oauth2_clients WHERE client_id=?", (str(client_id),)) result = cursor.fetchone() the_user = user or user_by_id(conn, result["user_id"]).maybe( - None, lambda usr: usr) + None, lambda usr: usr)# type: ignore if result: return Just( OAuth2Client(uuid.UUID(result["client_id"]), |