diff options
author | Munyoki Kilyungi | 2024-03-13 18:22:59 +0300 |
---|---|---|
committer | Munyoki Kilyungi | 2024-03-21 10:02:33 +0300 |
commit | c165942a58fe10f67f3cafcbc1e37ff5e413ff7f (patch) | |
tree | 1f6579f9922113be11c872d1a283330937158656 /gn_auth | |
parent | ade6c76208bd45c24cdd0e73bf3570e6a2bfa131 (diff) | |
download | gn-auth-c165942a58fe10f67f3cafcbc1e37ff5e413ff7f.tar.gz |
Rename "the_code" to "_code".
* gn_auth/auth/authentication/oauth2/grants/authorisation_code_grant.py
(__query_authorization_code__): Rename the_code -> _code.
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
Diffstat (limited to 'gn_auth')
-rw-r--r-- | gn_auth/auth/authentication/oauth2/grants/authorisation_code_grant.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gn_auth/auth/authentication/oauth2/grants/authorisation_code_grant.py b/gn_auth/auth/authentication/oauth2/grants/authorisation_code_grant.py index 98c36ee..02a876b 100644 --- a/gn_auth/auth/authentication/oauth2/grants/authorisation_code_grant.py +++ b/gn_auth/auth/authentication/oauth2/grants/authorisation_code_grant.py @@ -82,8 +82,9 @@ def __query_authorization_code__( This is found to be necessary since the `AuthorizationCodeGrant` class(es) do not have a way to pass the database connection.""" def __auth_code__(conn) -> str: - the_code = authorisation_code(conn, code, client) - return the_code.maybe(None, lambda cde: cde) # type: ignore[misc, arg-type, return-value] + _code = authorisation_code(conn, code, client) + # type: ignore[misc, arg-type, return-value] + return _code.maybe(None, lambda cde: cde) return with_db_connection(__auth_code__) |