Skip to content

Commit 0705f73

Browse files
authored
Fixed mypy job (#215)
1 parent cf87480 commit 0705f73

File tree

7 files changed

+6
-16
lines changed

7 files changed

+6
-16
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
- name: Set up Python
5050
uses: actions/setup-python@v4
5151
with:
52-
python-version: "3.9"
52+
python-version: "3.11"
5353
- name: Install deps
5454
run: poetry install
5555
- name: Release package

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
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

docs/guide/dynamic-brokers.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Taskiq allows you to set up broker instances throughout your application and reg
1313

1414
To define tasks and assign them to a broker, use `register_task` method.
1515

16-
@[code python](../examples/dynamics/broker.py)
16+
@[code python](../examples/dynamics/dyn_broker.py)
1717

1818
In this example, the task is defined using a lambda within the `main` function. As the lambda is not visible outside of the `main` function scope, the task is not executable by `taskiq worker` command.
1919

@@ -24,10 +24,10 @@ To overcome this issue, you can:
2424

2525
Here's an example of a dynamic worker task creation:
2626

27-
@[code python](../examples/dynamics/receiver.py)
27+
@[code python](../examples/dynamics/dyn_receiver.py)
2828

2929
In this example, a named dynamic lambda task is created and registered in a broker, similar to the previous example. The difference is the creation of a new receiver coroutine for the worker task. It will listen to the new messages and execute them. The worker task will be executed in the current event loop. After exiting the scope, the worker task will get cancelled. For illustration purposes it is cancelled explicitly.
3030

3131
It's possible to run a scheduler in the current event loop as well:
3232

33-
@[code python](../examples/dynamics/scheduler.py)
33+
@[code python](../examples/dynamics/dyn_scheduler.py)

poetry.lock

Lines changed: 1 addition & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)