Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
contents: write
strategy:
matrix:
py_version: ["3.9", "3.10", "3.11", "3.12"]
py_version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
os: [ubuntu-latest, windows-latest]
runs-on: "${{ matrix.os }}"
steps:
Expand Down
9 changes: 5 additions & 4 deletions .python-version
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
3.11.4
3.10.12
3.9.17
3.8.17
3.13.1
3.12.8
3.11.11
3.10.16
3.9.21
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@ classifiers = [
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Operating System :: OS Independent",
"Intended Audience :: Developers",
]
Expand Down
13 changes: 12 additions & 1 deletion taskiq_dependencies/dependency.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import inspect
import uuid
from collections.abc import Coroutine
from contextlib import _AsyncGeneratorContextManager, _GeneratorContextManager
from types import CoroutineType
from typing import (
Any,
AsyncGenerator,
Callable,
Coroutine,
Dict,
Generator,
Optional,
Expand Down Expand Up @@ -68,6 +69,16 @@ def Depends(
...


@overload
def Depends(
dependency: Optional[Callable[..., "CoroutineType[Any, Any, _T]"]] = None,
*,
use_cache: bool = True,
kwargs: Optional[Dict[str, Any]] = None,
) -> _T: # pragma: no cover
...


@overload
def Depends(
dependency: Optional[Callable[..., Coroutine[Any, Any, _T]]] = None,
Expand Down
3 changes: 2 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
[tox]
isolated_build = true
env_list =
py313
py312
py311
py310
py39
py38

[testenv]
skip_install = true
Expand Down