|
76 | 76 | # - `authorizer`: (If applicable) Information from a custom authorizer (e.g., Lambda authorizer) that you've configured for your API Gateway API. |
77 | 77 |
|
78 | 78 |
|
79 | | -TAWSRequestContext = dict[str, Union[str, bytes, int, float, bool, dict[str, str], None]] |
| 79 | +TAWSRequestContext = dict[ |
| 80 | + str, Union[str, bytes, int, float, bool, dict[str, str], None] |
| 81 | +] |
80 | 82 | TAWSEvent = dict[ |
81 | 83 | str, Union[str, bytes, int, float, bool, dict[str, str], TAWSRequestContext, None] |
82 | 84 | ] |
@@ -195,7 +197,9 @@ async def handle( |
195 | 197 | self, event: dict[str, Any], context: Union[dict[str, Any], None] = None |
196 | 198 | ) -> dict[str, Any]: |
197 | 199 | req: HTTPRequest = AWSLambdaEvent.AsRequest(event) |
198 | | - r: Union[HTTPResponse, Coroutine[Any, HTTPResponse, Any]] = self.app.process(req) |
| 200 | + r: Union[HTTPResponse, Coroutine[Any, HTTPResponse, Any]] = self.app.process( |
| 201 | + req |
| 202 | + ) |
199 | 203 | if isinstance(r, HTTPResponse): |
200 | 204 | res: HTTPResponse = r |
201 | 205 | else: |
@@ -241,7 +245,9 @@ def event( |
241 | 245 |
|
242 | 246 |
|
243 | 247 | def awslambda( |
244 | | - handler: Callable[[HTTPRequest], Union[HTTPResponse, Coroutine[Any, HTTPResponse, Any]]], |
| 248 | + handler: Callable[ |
| 249 | + [HTTPRequest], Union[HTTPResponse, Coroutine[Any, HTTPResponse, Any]] |
| 250 | + ], |
245 | 251 | ) -> Callable[[dict[str, Any], Union[dict[str, Any], None]], dict[str, Any]]: |
246 | 252 | def wrapper( |
247 | 253 | event: dict[str, Any], context: Union[dict[str, Any], None] = None |
|
0 commit comments