From 1ce3b79de95a69f0142530b4ca1891f13e7a5546 Mon Sep 17 00:00:00 2001 From: Kalyan R Date: Mon, 2 Dec 2024 00:26:01 +0530 Subject: [PATCH] remove internal_api_call decorator (#44525) --- airflow/models/variable.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/airflow/models/variable.py b/airflow/models/variable.py index 563cac46e8c84..4b3e4f77e47e1 100644 --- a/airflow/models/variable.py +++ b/airflow/models/variable.py @@ -25,7 +25,6 @@ from sqlalchemy.dialects.mysql import MEDIUMTEXT from sqlalchemy.orm import declared_attr, reconstructor, synonym -from airflow.api_internal.internal_api_call import internal_api_call from airflow.configuration import ensure_secrets_loaded from airflow.models.base import ID_LEN, Base from airflow.models.crypto import get_fernet @@ -182,7 +181,6 @@ def set( @staticmethod @provide_session - @internal_api_call def _set( key: str, value: Any, @@ -238,7 +236,6 @@ def update( @staticmethod @provide_session - @internal_api_call def _update( key: str, value: Any, @@ -279,7 +276,6 @@ def delete(key: str, session: Session = None) -> int: @staticmethod @provide_session - @internal_api_call def _delete(key: str, session: Session = None) -> int: """ Delete an Airflow Variable for a given key.