Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jul 7, 2024
1 parent b6fe116 commit 98b3698
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion strawberry/flask/views.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion strawberry/http/types.py
Original file line number Diff line number Diff line change
@@ -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[
Expand Down
3 changes: 1 addition & 2 deletions strawberry/sanic/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
TYPE_CHECKING,
Any,
Dict,
List,
Mapping,
Optional,
Type,
Expand Down Expand Up @@ -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}

Expand Down

0 comments on commit 98b3698

Please sign in to comment.