From 2490270e1682dbf79819209c8e180c335997d926 Mon Sep 17 00:00:00 2001 From: Tobias Raabe Date: Sun, 16 Jul 2023 22:13:06 +0200 Subject: [PATCH] make error messages more pretty. --- src/_pytask/collect_utils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/_pytask/collect_utils.py b/src/_pytask/collect_utils.py index 7004f5de..19c4d924 100644 --- a/src/_pytask/collect_utils.py +++ b/src/_pytask/collect_utils.py @@ -219,10 +219,10 @@ def _merge_dictionaries(list_of_dicts: list[dict[Any, Any]]) -> dict[Any, Any]: _ERROR_MULTIPLE_DEPENDENCY_DEFINITIONS = """The task uses multiple ways to define \ dependencies. Dependencies should be defined with either -- '@pytask.mark.depends_on' -- as default arguments for the argument 'depends_on' +- '@pytask.mark.depends_on' and a 'depends_on' function argument. +- as default value for the function argument 'depends_on'. -Use only one of the two ways. +Use only one of the two ways! Hint: You do not need to use 'depends_on' since pytask v0.4. Every function argument \ that is not a product is treated as a dependency. Read more about dependencies in the \