From 875d5caf8a38b2c53f7b9d8cd1890e5b1e677a62 Mon Sep 17 00:00:00 2001 From: Baradun Date: Mon, 24 Mar 2025 16:09:51 +0300 Subject: [PATCH] Fixing errors and removing unnecessary parameters in docstrings. --- taskiq/decor.py | 2 +- taskiq/kicker.py | 1 - taskiq/serialization.py | 2 +- taskiq/task.py | 2 +- 4 files changed, 3 insertions(+), 4 deletions(-) diff --git a/taskiq/decor.py b/taskiq/decor.py index dcbb2de0..6cbabcb3 100644 --- a/taskiq/decor.py +++ b/taskiq/decor.py @@ -163,7 +163,7 @@ def kicker(self) -> AsyncKicker[_FuncParams, _ReturnType]: """ This function returns kicker object. - Kicker is a object that can modify kiq request + Kicker is an object that can modify kiq request before sending it. :return: AsyncKicker instance. diff --git a/taskiq/kicker.py b/taskiq/kicker.py index d2ff8e6e..45a55d73 100644 --- a/taskiq/kicker.py +++ b/taskiq/kicker.py @@ -184,7 +184,6 @@ async def schedule_by_cron( :param source: schedule source. :param cron: cron expression. :param args: function's args. - :param cron_offset: cron offset. :param kwargs: function's kwargs. :return: schedule id. diff --git a/taskiq/serialization.py b/taskiq/serialization.py index cb927c9a..c8fd821d 100644 --- a/taskiq/serialization.py +++ b/taskiq/serialization.py @@ -336,7 +336,7 @@ def exception_to_python( """Convert serialized exception to Python exception. :param exc: encoded exception - :raises SecurityError: exception isn't indead an exception + :raises SecurityError: exception isn't indeed an exception :return: decoded exception or None """ if not exc: diff --git a/taskiq/task.py b/taskiq/task.py index c54e9d46..46f017a1 100644 --- a/taskiq/task.py +++ b/taskiq/task.py @@ -73,7 +73,7 @@ async def wait_result( ready. And if it is it returns the result. It may throw TaskiqResultTimeoutError if - task didn't became ready in provided + task didn't become ready in provided period of time. :param check_interval: How often checks are performed.