Skip to content

Commit d06494f

Browse files
committed
Improve docstring.
1 parent 480fc47 commit d06494f

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/_pytask/collect_utils.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -213,14 +213,15 @@ def _merge_dictionaries(list_of_dicts: list[dict[Any, Any]]) -> dict[Any, Any]:
213213
_ERROR_MULTIPLE_DEPENDENCY_DEFINITIONS = """The task uses multiple ways to define \
214214
dependencies. Dependencies should be defined with either
215215
216-
- '@pytask.mark.depends_on' and a 'depends_on' function argument.
217216
- as default value for the function argument 'depends_on'.
217+
- as '@pytask.task(kwargs={"depends_on": ...})'
218+
- or with the deprecated '@pytask.mark.depends_on' and a 'depends_on' function argument.
218219
219220
Use only one of the two ways!
220221
221-
Hint: You do not need to use 'depends_on' since pytask v0.4. Every function argument \
222-
that is not a product is treated as a dependency. Read more about dependencies in the \
223-
documentation: https://tinyurl.com/yrezszr4.
222+
Hint: You do not need to use 'depends_on' as the argument name since pytask v0.4. \
223+
Every function argument that is not a product is treated as a dependency. Read more \
224+
about dependencies in the documentation: https://tinyurl.com/yrezszr4.
224225
"""
225226

226227

0 commit comments

Comments
 (0)