amoghrajesh commented on code in PR #53929: URL: https://github.com/apache/airflow/pull/53929#discussion_r2253944275
########## airflow-core/src/airflow/utils/helpers.py: ########## @@ -244,11 +244,6 @@ def render_template_to_string(template: jinja2.Template, context: Context) -> st return render_template(template, cast("MutableMapping[str, Any]", context), native=False) -def render_template_as_native(template: jinja2.Template, context: Context) -> Any: - """Shorthand to ``render_template(native=True)`` with better typing support.""" - return render_template(template, cast("MutableMapping[str, Any]", context), native=True) Review Comment: Compat works fine: ``` Checking for compat: Python 3.10.18 (tags/v3.10.18:88663ef, Jul 22 2025, 04:10:51) [GCC 12.2.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> from airflow.utils.helpers import render_template_as_native <stdin>:1 DeprecationWarning: airflow.utils.helpers.render_template_as_native is deprecated. Use airflow.sdk.definitions.context.render_template_as_native instead. >>> from airflow.utils.helpers import prevent_duplicates <stdin>:1 DeprecationWarning: airflow.utils.helpers.prevent_duplicates is deprecated. Use airflow.sdk.definitions.mappedoperator.prevent_duplicates instead. New location: >>> from airflow.sdk.definitions.context import render_template_as_native >>> from airflow.sdk.definitions.mappedoperator import prevent_duplicates ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@airflow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org