From 98b36982142eb7434b74f441ac7be7f81750ed5a Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sun, 7 Jul 2024 16:47:02 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- strawberry/flask/views.py | 2 +- strawberry/http/types.py | 2 +- strawberry/sanic/views.py | 3 +-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/strawberry/flask/views.py b/strawberry/flask/views.py index a5c330091b..63c6ccae8d 100644 --- a/strawberry/flask/views.py +++ b/strawberry/flask/views.py @@ -1,7 +1,7 @@ from __future__ import annotations import warnings -from typing import TYPE_CHECKING, Any, List, Mapping, Optional, Union, cast +from typing import TYPE_CHECKING, Any, Mapping, Optional, Union, cast from flask import Request, Response, render_template_string, request from flask.views import View diff --git a/strawberry/http/types.py b/strawberry/http/types.py index 4b53be9611..1bbfbf51d6 100644 --- a/strawberry/http/types.py +++ b/strawberry/http/types.py @@ -1,4 +1,4 @@ -from typing import Any, List, Mapping, Optional, Union +from typing import Any, Mapping, Optional from typing_extensions import Literal, TypedDict HTTPMethod = Literal[ diff --git a/strawberry/sanic/views.py b/strawberry/sanic/views.py index 33de41825f..b27bcd5cbe 100644 --- a/strawberry/sanic/views.py +++ b/strawberry/sanic/views.py @@ -6,7 +6,6 @@ TYPE_CHECKING, Any, Dict, - List, Mapping, Optional, Type, @@ -43,7 +42,7 @@ def query_params(self) -> QueryParams: # the keys are the unique variable names and the values are lists # of values for each variable name. To ensure consistency, we're # enforcing the use of the first value in each list. - + args = self.request.get_args(keep_blank_values=True) return {k: args.get(k, None) for k in args}