Skip to content

Commit

Permalink
Merge pull request #26 from taskiq-python/feature/hidden-params
Browse files Browse the repository at this point in the history
Updated deps, fixed aiohttp integration.
  • Loading branch information
s3rius authored Dec 9, 2024
2 parents dc80597 + b93a1df commit abaa65a
Show file tree
Hide file tree
Showing 5 changed files with 702 additions and 596 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.9"
python-version: "3.11"
- name: Install deps
run: poetry install
- name: Set version
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.9"
python-version: "3.11"
cache: "poetry"
- name: Install deps
run: poetry install
Expand All @@ -31,7 +31,7 @@ jobs:
contents: write
strategy:
matrix:
py_version: ["3.8", "3.9", "3.10", "3.11"]
py_version: ["3.9", "3.10", "3.11", "3.12"]
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v2
Expand Down
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 abaa65a

Please sign in to comment.