From e27a6fdeeb9950d1c17a386cc5885f440ed52e5a Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Mon, 23 Aug 2021 17:47:21 +0200 Subject: [PATCH] events: fix linting Signed-off-by: Jens Langhammer --- authentik/core/api/tokens.py | 1 + authentik/events/signals.py | 4 +++- authentik/stages/password/migrations/0007_app_password.py | 1 - 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/authentik/core/api/tokens.py b/authentik/core/api/tokens.py index 517f230d2..a109a684e 100644 --- a/authentik/core/api/tokens.py +++ b/authentik/core/api/tokens.py @@ -1,5 +1,6 @@ """Tokens API Viewset""" from typing import Any + from django.http.response import Http404 from drf_spectacular.utils import OpenApiResponse, extend_schema from rest_framework.decorators import action diff --git a/authentik/events/signals.py b/authentik/events/signals.py index 35f651e53..b659f2b42 100644 --- a/authentik/events/signals.py +++ b/authentik/events/signals.py @@ -51,7 +51,9 @@ def on_user_logged_in(sender, request: HttpRequest, user: User, **_): if PLAN_CONTEXT_METHOD in flow_plan.context: thread.kwargs[PLAN_CONTEXT_METHOD] = flow_plan.context[PLAN_CONTEXT_METHOD] # Save the login method used - thread.kwargs[PLAN_CONTEXT_METHOD_ARGS] = flow_plan.context.get(PLAN_CONTEXT_METHOD_ARGS, {}) + thread.kwargs[PLAN_CONTEXT_METHOD_ARGS] = flow_plan.context.get( + PLAN_CONTEXT_METHOD_ARGS, {} + ) thread.user = user thread.run() diff --git a/authentik/stages/password/migrations/0007_app_password.py b/authentik/stages/password/migrations/0007_app_password.py index 349758219..41d99be77 100644 --- a/authentik/stages/password/migrations/0007_app_password.py +++ b/authentik/stages/password/migrations/0007_app_password.py @@ -34,7 +34,6 @@ def replace_inbuilt(apps: Apps, schema_editor: BaseDatabaseSchemaEditor): class Migration(migrations.Migration): dependencies = [ - ("authentik_flows", "0008_default_flows"), ("authentik_stages_password", "0006_passwordchange_rename"), ]