From 3a276642bea934f0a7ef8f581d8639e617357a2a Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Wed, 9 Oct 2024 16:35:40 -0500 Subject: Linting: Fix minor linting errors --- gn_auth/auth/authentication/oauth2/models/oauth2client.py | 5 ++++- gn_auth/auth/authorisation/users/admin/views.py | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'gn_auth') diff --git a/gn_auth/auth/authentication/oauth2/models/oauth2client.py b/gn_auth/auth/authentication/oauth2/models/oauth2client.py index 2c36f45..df5d564 100644 --- a/gn_auth/auth/authentication/oauth2/models/oauth2client.py +++ b/gn_auth/auth/authentication/oauth2/models/oauth2client.py @@ -292,7 +292,10 @@ def delete_client( def update_client_attribute( - client: OAuth2Client, attribute: str, value: Any) -> OAuth2Client: + client: OAuth2Client,# pylint: disable=[redefined-outer-name] + attribute: str, + value: Any +) -> OAuth2Client: """Return a new OAuth2Client with the given attribute updated/changed.""" attrs = { attr: type(value) diff --git a/gn_auth/auth/authorisation/users/admin/views.py b/gn_auth/auth/authorisation/users/admin/views.py index 5ad9038..9bc1c36 100644 --- a/gn_auth/auth/authorisation/users/admin/views.py +++ b/gn_auth/auth/authorisation/users/admin/views.py @@ -327,6 +327,7 @@ def delete_client(): @admin.route("/clients//change-secret", methods=["GET", "POST"]) @is_admin def change_client_secret(client_id: uuid.UUID): + """Enable changing of a client's secret.""" def __no_client__(): # Calling the function causes the flash to be evaluated # flash("No such client was found!", "alert-danger") -- cgit v1.2.3