You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by ep...@apache.org on 2023/01/11 21:26:01 UTC

[airflow] 20/27: Fix Incorrect Example (#28609)

This is an automated email from the ASF dual-hosted git repository.

ephraimanierobi pushed a commit to branch v2-5-test
in repository https://gitbox.apache.org/repos/asf/airflow.git

commit 4a885dfed0eb189acd5cf128c4ddfcd1222ed841
Author: Jared Fallt <fa...@gmail.com>
AuthorDate: Wed Dec 28 11:00:26 2022 -0500

    Fix Incorrect Example (#28609)
    
    Following the existing example to create a decorator results in this error:
    AttributeError: 'list' object has no attribute 'rsplit'
    
    Changing it to a list fixes this
    
    (cherry picked from commit 761aa59f9256fb2901039ac8ef7fd6e69af8528f)
---
 docs/apache-airflow/howto/create-custom-decorator.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/docs/apache-airflow/howto/create-custom-decorator.rst b/docs/apache-airflow/howto/create-custom-decorator.rst
index 182e87bb3f..dc7efd21c4 100644
--- a/docs/apache-airflow/howto/create-custom-decorator.rst
+++ b/docs/apache-airflow/howto/create-custom-decorator.rst
@@ -77,7 +77,7 @@ tasks. The steps to create and register ``@task.foo`` are:
                     {
                         "name": "foo",
                         # "Import path" and function name of the `foo_task`
-                        "class-name": ["name.of.python.package.foo_task"],
+                        "class-name": "name.of.python.package.foo_task",
                     }
                 ],
                 # ...