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. """