Skip to content

Commit

Permalink
Fixed imports
Browse files Browse the repository at this point in the history
Signed-off-by: chandr-andr (Kiselev Aleksandr) <chandr@chandr.net>
  • Loading branch information
chandr-andr committed Oct 22, 2024
1 parent ff349fb commit e85cf53
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions falcon_deps/resource.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from typing import Any, Callable, Coroutine, Optional, Set, Union

import falcon.asgi
from falcon import constants
from falcon._typing import MethodDict
from falcon.asgi import Request, Response
from falcon.routing.util import SuffixedMethodNotFoundError
from taskiq_dependencies import DependencyGraph

Expand Down Expand Up @@ -130,8 +130,8 @@ def handle_with_graph_http(
responder_name: str,
) -> Callable[
[
falcon.asgi.Request,
falcon.asgi.Response,
Request,
Response,
Any,
],
Coroutine[Any, Any, None],
Expand All @@ -146,13 +146,13 @@ def handle_with_graph_http(
graph = self.graph_map[responder_name]

async def _handle_with_graph(
request: falcon.asgi.Request,
response: falcon.asgi.Response,
request: Request,
response: Response,
**params: Any,
) -> None:
async with graph.async_ctx(
{
falcon.asgi.Request: request,
Request: request,
},
) as ctx:
dep_kwargs = await ctx.resolve_kwargs()
Expand Down

0 comments on commit e85cf53

Please sign in to comment.