Skip to content

Commit abaa65a

Browse files
authored
Merge pull request #26 from taskiq-python/feature/hidden-params
Updated deps, fixed aiohttp integration.
2 parents dc80597 + b93a1df commit abaa65a

File tree

5 files changed

+702
-596
lines changed

5 files changed

+702
-596
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- name: Set up Python
1616
uses: actions/setup-python@v4
1717
with:
18-
python-version: "3.9"
18+
python-version: "3.11"
1919
- name: Install deps
2020
run: poetry install
2121
- name: Set version

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- name: Set up Python
1919
uses: actions/setup-python@v4
2020
with:
21-
python-version: "3.9"
21+
python-version: "3.11"
2222
cache: "poetry"
2323
- name: Install deps
2424
run: poetry install
@@ -31,7 +31,7 @@ jobs:
3131
contents: write
3232
strategy:
3333
matrix:
34-
py_version: ["3.8", "3.9", "3.10", "3.11"]
34+
py_version: ["3.9", "3.10", "3.11", "3.12"]
3535
runs-on: "ubuntu-latest"
3636
steps:
3737
- uses: actions/checkout@v2

aiohttp_deps/initializer.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import copy
22
import inspect
3+
import warnings
34
from typing import Awaitable, Callable, Type
45

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

0 commit comments

Comments
 (0)