Skip to content

Commit

Permalink
Updated deps, fixed aiohttp integration.
Browse files Browse the repository at this point in the history
  • Loading branch information
s3rius committed Dec 9, 2024
1 parent dc80597 commit f8a14d8
Show file tree
Hide file tree
Showing 3 changed files with 698 additions and 592 deletions.
5 changes: 4 additions & 1 deletion aiohttp_deps/initializer.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import copy
import inspect
import warnings
from typing import Awaitable, Callable, Type

from aiohttp import hdrs, web
Expand Down Expand Up @@ -29,7 +30,9 @@ def __init__(
original_route: Callable[..., Awaitable[web.StreamResponse]],
) -> None:
self.original_handler = copy.copy(original_route)
self.graph = DependencyGraph(self.original_handler)
with warnings.catch_warnings():
warnings.filterwarnings("ignore", r".*Cannot resolve.*Request.*")
self.graph = DependencyGraph(self.original_handler)
signature = inspect.signature(self.original_handler)
# This flag means that the function requires one argument and
# doesn't depend on any other dependencies.
Expand Down
Loading

0 comments on commit f8a14d8

Please sign in to comment.