diff options
author | Frederick Muriuki Muriithi | 2023-08-23 09:12:07 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2023-08-23 09:13:02 +0300 |
commit | 8d35e0413fa670ef4fc08e7262a12c43b89df6fc (patch) | |
tree | dd6bbc1f13a5a241f28f8507a659de1d3474af24 /gn_auth/auth/authentication/oauth2/endpoints | |
parent | 277297d9a804e09137493bd9e1613df94f154dc0 (diff) | |
download | gn-auth-8d35e0413fa670ef4fc08e7262a12c43b89df6fc.tar.gz |
pylint: Replace `lambda ...` statements with `def ...`
Diffstat (limited to 'gn_auth/auth/authentication/oauth2/endpoints')
-rw-r--r-- | gn_auth/auth/authentication/oauth2/endpoints/utilities.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gn_auth/auth/authentication/oauth2/endpoints/utilities.py b/gn_auth/auth/authentication/oauth2/endpoints/utilities.py index 29ace7c..2c13c66 100644 --- a/gn_auth/auth/authentication/oauth2/endpoints/utilities.py +++ b/gn_auth/auth/authentication/oauth2/endpoints/utilities.py @@ -12,7 +12,9 @@ def query_token(# pylint: disable=[unused-argument] endpoint_object: Any, token_str: str, token_type_hint) -> Optional[ OAuth2Token]: """Retrieve the token from the database.""" - __identity__ = lambda val: val + def __identity__(val): + """Identity function.""" + return val token = Nothing with db.connection(current_app.config["AUTH_DB"]) as conn: if token_type_hint == "access_token": |