flows: fix lint errors

This commit is contained in:
Jens Langhammer 2021-02-02 17:02:02 +01:00
parent c60934f9b1
commit 0114bc0d6a
2 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,6 @@
"""authentik benchmark command""" """authentik benchmark command"""
from csv import DictWriter from csv import DictWriter
from multiprocessing import Manager, Process, cpu_count, get_context from multiprocessing import Manager, cpu_count, get_context
from sys import stdout from sys import stdout
from time import time from time import time

View File

@ -65,6 +65,7 @@ class FlowExecutorView(View):
message = exc.__doc__ if exc.__doc__ else str(exc) message = exc.__doc__ if exc.__doc__ else str(exc)
return self.stage_invalid(error_message=message) return self.stage_invalid(error_message=message)
# pylint: disable=unused-argument
def dispatch(self, request: HttpRequest, flow_slug: str) -> HttpResponse: def dispatch(self, request: HttpRequest, flow_slug: str) -> HttpResponse:
# Early check if theres an active Plan for the current session # Early check if theres an active Plan for the current session
if SESSION_KEY_PLAN in self.request.session: if SESSION_KEY_PLAN in self.request.session: