diff --git a/aiohttp_deps/initializer.py b/aiohttp_deps/initializer.py index e3ab2ab..476aa00 100644 --- a/aiohttp_deps/initializer.py +++ b/aiohttp_deps/initializer.py @@ -93,10 +93,12 @@ def __init__( for method in hdrs.METH_ALL if hasattr(original_route, method.lower()) } - self.graph_map = { - method: DependencyGraph(getattr(original_route, method)) - for method in allowed_methods - } + with warnings.catch_warnings(): + warnings.filterwarnings("ignore", r".*Cannot resolve.*Request.*") + self.graph_map = { + method: DependencyGraph(getattr(original_route, method)) + for method in allowed_methods + } async def __call__(self, request: web.Request) -> web.StreamResponse: """