Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions aiohttp_deps/initializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
"""
Expand Down
Loading