Skip to content

Commit cd3a7e1

Browse files
authored
issue-60000-http: Update conf imports for http provider (#60090)
1 parent c1b4138 commit cd3a7e1

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

providers/http/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ requires-python = ">=3.10"
5959
# After you modify the dependencies, and rebuild your Breeze CI image with ``breeze ci-image build``
6060
dependencies = [
6161
"apache-airflow>=2.11.0",
62-
"apache-airflow-providers-common-compat>=1.10.1",
62+
"apache-airflow-providers-common-compat>=1.10.1", # use next version
6363
# The 2.26.0 release of requests got rid of the chardet LGPL mandatory dependency, allowing us to
6464
# release it as a requirement for airflow
6565
"requests>=2.32.0,<3",

providers/http/src/airflow/providers/http/operators/http.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@
2525
from aiohttp import BasicAuth
2626
from requests import Response
2727

28-
from airflow.configuration import conf
29-
from airflow.providers.common.compat.sdk import AirflowException, BaseHook, BaseOperator
28+
from airflow.providers.common.compat.sdk import AirflowException, BaseHook, BaseOperator, conf
3029
from airflow.providers.http.triggers.http import HttpTrigger, serialize_auth_type
3130
from airflow.utils.helpers import merge_dicts
3231

providers/http/src/airflow/providers/http/sensors/http.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@
2121
from datetime import timedelta
2222
from typing import TYPE_CHECKING, Any
2323

24-
from airflow.configuration import conf
25-
from airflow.providers.common.compat.sdk import AirflowException, BaseSensorOperator
24+
from airflow.providers.common.compat.sdk import AirflowException, BaseSensorOperator, conf
2625
from airflow.providers.http.hooks.http import HttpHook
2726
from airflow.providers.http.triggers.http import HttpSensorTrigger
2827

0 commit comments

Comments
 (0)