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

potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new 2ed06d1e9f chore(docs): add required import of BranchDayOfWeekOperator 
(#43053)
2ed06d1e9f is described below

commit 2ed06d1e9f446b73c89ceadfc35d1d93abd80282
Author: Sam Firke <[email protected]>
AuthorDate: Thu Oct 17 08:43:50 2024 -0400

    chore(docs): add required import of BranchDayOfWeekOperator (#43053)
    
    
    
    ---------
    
    Co-authored-by: Shahar Epstein <[email protected]>
---
 providers/src/airflow/providers/standard/operators/weekday.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/providers/src/airflow/providers/standard/operators/weekday.py 
b/providers/src/airflow/providers/standard/operators/weekday.py
index f59a1da134..0c74b19d79 100644
--- a/providers/src/airflow/providers/standard/operators/weekday.py
+++ b/providers/src/airflow/providers/standard/operators/weekday.py
@@ -39,6 +39,7 @@ class BranchDayOfWeekOperator(BaseBranchOperator):
     .. code-block:: python
 
         from airflow.operators.empty import EmptyOperator
+        from airflow.operators.weekday import BranchDayOfWeekOperator
 
         monday = EmptyOperator(task_id="monday")
         other_day = EmptyOperator(task_id="other_day")
@@ -59,6 +60,7 @@ class BranchDayOfWeekOperator(BaseBranchOperator):
         # import WeekDay Enum
         from airflow.utils.weekday import WeekDay
         from airflow.operators.empty import EmptyOperator
+        from airflow.operators.weekday import BranchDayOfWeekOperator
 
         workday = EmptyOperator(task_id="workday")
         weekend = EmptyOperator(task_id="weekend")

Reply via email to