Skip to content

Commit 5560ebe

Browse files
committed
remove weird static stuff
1 parent a5b8e48 commit 5560ebe

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

packages/service-library/src/servicelib/aiohttp/requests_validation.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
""" Parses and validation aiohttp requests against pydantic models
1+
"""Parses and validation aiohttp requests against pydantic models
22
33
Rationale: These functions follow an interface analogous to ``pydantic.tools``'s
44
@@ -10,7 +10,7 @@
1010
import json.decoder
1111
from collections.abc import Iterator
1212
from contextlib import contextmanager
13-
from typing import TypeAlias, TypeVar, Union
13+
from typing import TypeVar
1414

1515
from aiohttp import web
1616
from common_library.json_serialization import json_dumps
@@ -21,7 +21,6 @@
2121

2222
ModelClass = TypeVar("ModelClass", bound=BaseModel)
2323
ModelOrListOrDictType = TypeVar("ModelOrListOrDictType", bound=BaseModel | list | dict)
24-
UnionOfModelTypes: TypeAlias = Union[type[ModelClass], type[ModelClass]] # noqa: UP007
2524

2625

2726
@contextmanager
@@ -132,7 +131,7 @@ def parse_request_path_parameters_as(
132131

133132

134133
def parse_request_query_parameters_as(
135-
parameters_schema_cls: type[ModelClass] | UnionOfModelTypes,
134+
parameters_schema_cls: type[ModelClass],
136135
request: web.Request,
137136
*,
138137
use_enveloped_error_v1: bool = True,

0 commit comments

Comments
 (0)