From bc05d5ab812f15bc96a088e8c9c9b6ed50b17cf5 Mon Sep 17 00:00:00 2001 From: Niels Bantilan Date: Tue, 19 Oct 2021 16:17:42 -0400 Subject: [PATCH] update task cache docs (#459) Signed-off-by: Niels Bantilan --- cookbook/core/flyte_basics/task_cache.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/cookbook/core/flyte_basics/task_cache.py b/cookbook/core/flyte_basics/task_cache.py index 6288e022f6..d0f3ff8a13 100644 --- a/cookbook/core/flyte_basics/task_cache.py +++ b/cookbook/core/flyte_basics/task_cache.py @@ -49,10 +49,11 @@ def square(n: int) -> int: # %% # If in a subsequent code update, we update the signature of the task to return the original number along with the result, it'll automatically invalidate the cache (even though the cache version remains the same). # -# :py:func:`flytekit.task` -# @task(cache=True, cache_version="1.0") -# def square(n: int) -> (int, int): -# ... +# .. code-block:: python +# +# @task(cache=True, cache_version="1.0") +# def square(n: int) -> (int, int): +# ... # %% # .. note::