From 4daf2ed654ada25d12c3897da8425d80006982c0 Mon Sep 17 00:00:00 2001 From: Charles Le Maux Date: Tue, 10 Sep 2024 13:29:00 +0200 Subject: [PATCH] [-] Removed var narrowing (from the main scope) --- app.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app.py b/app.py index f05b9e3..5ef04eb 100644 --- a/app.py +++ b/app.py @@ -72,7 +72,7 @@ def authenticate_request(data: dict): def parse_and_validate_request(parameters: list[str]) -> Union[list[str], None]: - args = [] + fn_args = [] data = request.get_json() if not data: raise Exception("Empty request body.") @@ -82,8 +82,8 @@ def parse_and_validate_request(parameters: list[str]) -> Union[list[str], None]: if name not in data: raise Exception(f"Missing parameter {name}") value = data[name] - args.append(value) - return args + fn_args.append(value) + return fn_args route_handlers = {