|
21 | 21 | import itertools
|
22 | 22 | import re
|
23 | 23 | import signal
|
24 |
| -import warnings |
25 | 24 | from datetime import datetime
|
26 | 25 | from functools import reduce
|
27 | 26 | from typing import TYPE_CHECKING, Any, Callable, Generator, Iterable, Mapping, MutableMapping, TypeVar, cast
|
28 | 27 |
|
29 | 28 | from lazy_object_proxy import Proxy
|
30 | 29 |
|
31 | 30 | from airflow.configuration import conf
|
32 |
| -from airflow.exceptions import AirflowException, RemovedInAirflow3Warning |
33 |
| -from airflow.utils.module_loading import import_string |
| 31 | +from airflow.exceptions import AirflowException |
34 | 32 | from airflow.utils.types import NOTSET
|
35 | 33 |
|
36 | 34 | if TYPE_CHECKING:
|
@@ -231,26 +229,6 @@ def partition(pred: Callable[[T], bool], iterable: Iterable[T]) -> tuple[Iterabl
|
231 | 229 | return itertools.filterfalse(pred, iter_1), filter(pred, iter_2)
|
232 | 230 |
|
233 | 231 |
|
234 |
| -def chain(*args, **kwargs): |
235 |
| - """Use `airflow.models.baseoperator.chain`, this function is deprecated.""" |
236 |
| - warnings.warn( |
237 |
| - "This function is deprecated. Please use `airflow.models.baseoperator.chain`.", |
238 |
| - RemovedInAirflow3Warning, |
239 |
| - stacklevel=2, |
240 |
| - ) |
241 |
| - return import_string("airflow.models.baseoperator.chain")(*args, **kwargs) |
242 |
| - |
243 |
| - |
244 |
| -def cross_downstream(*args, **kwargs): |
245 |
| - """Use `airflow.models.baseoperator.cross_downstream`, this function is deprecated.""" |
246 |
| - warnings.warn( |
247 |
| - "This function is deprecated. Please use `airflow.models.baseoperator.cross_downstream`.", |
248 |
| - RemovedInAirflow3Warning, |
249 |
| - stacklevel=2, |
250 |
| - ) |
251 |
| - return import_string("airflow.models.baseoperator.cross_downstream")(*args, **kwargs) |
252 |
| - |
253 |
| - |
254 | 232 | def build_airflow_url_with_query(query: dict[str, Any]) -> str:
|
255 | 233 | """
|
256 | 234 | Build airflow url using base_url and default_view and provided query.
|
|
0 commit comments