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

kaxilnaik pushed a commit to branch v3-0-test
in repository https://gitbox.apache.org/repos/asf/airflow.git

commit d8f1b00e51bd8b66758c264293db1e6812937888
Author: Kaxil Naik <[email protected]>
AuthorDate: Thu Apr 24 11:29:34 2025 +0530

    Docs: Use `get_current_context` from Task SDK (#49654)
    
    The one in Standard Operator is just for Back compat
    
    (cherry picked from commit d90bb69b02a278852e2f3ab6786396e3ca2abc5e)
---
 airflow-core/docs/authoring-and-scheduling/dynamic-task-mapping.rst | 2 +-
 airflow-core/docs/tutorial/taskflow.rst                             | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/airflow-core/docs/authoring-and-scheduling/dynamic-task-mapping.rst 
b/airflow-core/docs/authoring-and-scheduling/dynamic-task-mapping.rst
index 1ca973125c1..03119f411a6 100644
--- a/airflow-core/docs/authoring-and-scheduling/dynamic-task-mapping.rst
+++ b/airflow-core/docs/authoring-and-scheduling/dynamic-task-mapping.rst
@@ -203,7 +203,7 @@ Since the template is rendered after the main execution 
block, it is possible to
 
 .. code-block:: python
 
-    from airflow.providers.standard.operators.python import get_current_context
+    from airflow.sdk import get_current_context
 
 
     @task(map_index_template="{{ my_variable }}")
diff --git a/airflow-core/docs/tutorial/taskflow.rst 
b/airflow-core/docs/tutorial/taskflow.rst
index c673d1f182b..8ba2df9a510 100644
--- a/airflow-core/docs/tutorial/taskflow.rst
+++ b/airflow-core/docs/tutorial/taskflow.rst
@@ -388,7 +388,7 @@ method.
 
 .. code-block:: python
 
-    from airflow.providers.standard.operators.python import get_current_context
+    from airflow.sdk import get_current_context
 
 
     def some_function_in_your_library():

Reply via email to