File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
packages/service-library/src/servicelib/aiohttp Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 1- """ Parses and validation aiohttp requests against pydantic models
1+ """Parses and validation aiohttp requests against pydantic models
22
33Rationale: These functions follow an interface analogous to ``pydantic.tools``'s
44
1010import json .decoder
1111from collections .abc import Iterator
1212from contextlib import contextmanager
13- from typing import TypeAlias , TypeVar , Union
13+ from typing import TypeVar
1414
1515from aiohttp import web
1616from common_library .json_serialization import json_dumps
2121
2222ModelClass = TypeVar ("ModelClass" , bound = BaseModel )
2323ModelOrListOrDictType = 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
134133def 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 ,
You can’t perform that action at this time.
0 commit comments