Skip to content

Commit 111dfb6

Browse files
authored
Merge pull request #34 from taskiq-python/bugfix/types
2 parents 34b0b00 + 3789690 commit 111dfb6

File tree

5 files changed

+22
-8
lines changed

5 files changed

+22
-8
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
contents: write
3636
strategy:
3737
matrix:
38-
py_version: ["3.9", "3.10", "3.11", "3.12"]
38+
py_version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
3939
os: [ubuntu-latest, windows-latest]
4040
runs-on: "${{ matrix.os }}"
4141
steps:

.python-version

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
3.11.4
2-
3.10.12
3-
3.9.17
4-
3.8.17
1+
3.13.1
2+
3.12.8
3+
3.11.11
4+
3.10.16
5+
3.9.21

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,11 @@ classifiers = [
1010
"Programming Language :: Python",
1111
"Programming Language :: Python :: 3",
1212
"Programming Language :: Python :: 3 :: Only",
13-
"Programming Language :: Python :: 3.8",
1413
"Programming Language :: Python :: 3.9",
1514
"Programming Language :: Python :: 3.10",
1615
"Programming Language :: Python :: 3.11",
16+
"Programming Language :: Python :: 3.12",
17+
"Programming Language :: Python :: 3.13",
1718
"Operating System :: OS Independent",
1819
"Intended Audience :: Developers",
1920
]

taskiq_dependencies/dependency.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
import inspect
22
import uuid
3+
from collections.abc import Coroutine
34
from contextlib import _AsyncGeneratorContextManager, _GeneratorContextManager
5+
from types import CoroutineType
46
from typing import (
57
Any,
68
AsyncGenerator,
79
Callable,
8-
Coroutine,
910
Dict,
1011
Generator,
1112
Optional,
@@ -68,6 +69,16 @@ def Depends(
6869
...
6970

7071

72+
@overload
73+
def Depends(
74+
dependency: Optional[Callable[..., "CoroutineType[Any, Any, _T]"]] = None,
75+
*,
76+
use_cache: bool = True,
77+
kwargs: Optional[Dict[str, Any]] = None,
78+
) -> _T: # pragma: no cover
79+
...
80+
81+
7182
@overload
7283
def Depends(
7384
dependency: Optional[Callable[..., Coroutine[Any, Any, _T]]] = None,

tox.ini

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
[tox]
22
isolated_build = true
33
env_list =
4+
py313
5+
py312
46
py311
57
py310
68
py39
7-
py38
89

910
[testenv]
1011
skip_install = true

0 commit comments

Comments
 (0)