Skip to content

Commit 01b4ec3

Browse files
committed
update docstring
1 parent 00f7a7e commit 01b4ec3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

taskiq_fastapi/initializator.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ def startup_event_generator(
2121
and runs startup event on broker's startup.
2222
2323
:param broker: current broker.
24-
:param app_or_path: application path or fastapi instance or callable that creates fastapi app instance.
24+
:param app_or_path: application path or fastapi instance
25+
or callable that creates fastapi app instance.
2526
:returns: startup handler.
2627
"""
2728

@@ -82,7 +83,8 @@ def init(broker: AsyncBroker, app_or_path: PathOrAppOrFactory) -> None:
8283
startup events will run.
8384
8485
:param broker: current broker to use.
85-
:param app_or_path: application path or fastapi instance or callable that creates fastapi app instance.
86+
:param app_or_path: application path or fastapi instance
87+
or callable that creates fastapi app instance.
8688
"""
8789
broker.add_event_handler(
8890
TaskiqEvents.WORKER_STARTUP,

0 commit comments

Comments
 (0)