From cfeda5afaf926ab045ba9e681a8c0fe3b7be103d Mon Sep 17 00:00:00 2001 From: maxtaran2010 Date: Wed, 8 Jul 2026 12:04:38 +0300 Subject: [PATCH] Fix typos in docstrings and docs - cancelation -> cancellation in taskiq/abc/schedule_source.py and docs/examples/ - dependant -> dependent in docs/guide/state-and-deps.md (four occurrences) --- docs/examples/extending/schedule_source.py | 2 +- docs/guide/state-and-deps.md | 8 ++++---- taskiq/abc/schedule_source.py | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/examples/extending/schedule_source.py b/docs/examples/extending/schedule_source.py index 8c1eb3af..94cb6fcc 100644 --- a/docs/examples/extending/schedule_source.py +++ b/docs/examples/extending/schedule_source.py @@ -26,7 +26,7 @@ async def add_schedule(self, schedule: "ScheduledTask") -> None: print("New schedule added:", schedule) # This method is completely optional, but if you want to support - # schedule cancelation, you must implement it. + # schedule cancellation, you must implement it. async def delete_schedule(self, schedule_id: str) -> None: print("Deleting schedule:", schedule_id) diff --git a/docs/guide/state-and-deps.md b/docs/guide/state-and-deps.md index f503043a..aa79b322 100644 --- a/docs/guide/state-and-deps.md +++ b/docs/guide/state-and-deps.md @@ -278,9 +278,9 @@ async def get_transaction( ) -> AsyncGenerator[Transaction, None]: trans = db_driver.begin_transaction(): try: - # Here we give transaction to our dependant function. + # Here we give transaction to our dependent function. yield trans - # If exception was found in dependant function, + # If exception was found in dependent function, # we rollback our transaction. except Exception: await trans.rollback() @@ -297,9 +297,9 @@ async def get_transaction( ) -> AsyncGenerator[Transaction, None]: trans = db_driver.begin_transaction(): try: - # Here we give transaction to our dependant function. + # Here we give transaction to our dependent function. yield trans - # If exception was found in dependant function, + # If exception was found in dependent function, # we rollback our transaction. except Exception: await trans.rollback() diff --git a/taskiq/abc/schedule_source.py b/taskiq/abc/schedule_source.py index 7525a4bd..c196078c 100644 --- a/taskiq/abc/schedule_source.py +++ b/taskiq/abc/schedule_source.py @@ -46,7 +46,7 @@ async def delete_schedule(self, schedule_id: str) -> None: """ Method to delete schedule by id. - This is useful for schedule cancelation. + This is useful for schedule cancellation. :param schedule_id: id of schedule to delete. """