This is an automated email from the ASF dual-hosted git repository.
potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new 272cd9ac6c Removed deprecated Chainable type from BaseOperator (#42776)
272cd9ac6c is described below
commit 272cd9ac6c1b437d282fd7dfc754ffa9d54a3e71
Author: Gopal Dirisala <[email protected]>
AuthorDate: Tue Oct 15 06:26:03 2024 +0530
Removed deprecated Chainable type from BaseOperator (#42776)
* Removed deprecated Chainable type from BaseOperator
* Chainable word removed from spelling_wordlist.txt
* Chainable word removed from spelling_wordlist.txt
* Chainable word removed from spelling_wordlist.txt
* news fragment added
---
airflow/models/baseoperator.py | 5 -----
docs/spelling_wordlist.txt | 1 -
newsfragments/42776.significant.rst | 1 +
3 files changed, 1 insertion(+), 6 deletions(-)
diff --git a/airflow/models/baseoperator.py b/airflow/models/baseoperator.py
index 0c3d119be1..514553e05a 100644
--- a/airflow/models/baseoperator.py
+++ b/airflow/models/baseoperator.py
@@ -45,7 +45,6 @@ from typing import (
NoReturn,
Sequence,
TypeVar,
- Union,
cast,
)
@@ -1789,10 +1788,6 @@ class BaseOperator(AbstractOperator,
metaclass=BaseOperatorMeta):
return self.start_trigger_args
-# TODO: Deprecate for Airflow 3.0
-Chainable = Union[DependencyMixin, Sequence[DependencyMixin]]
-
-
def chain(*tasks: DependencyMixin | Sequence[DependencyMixin]) -> None:
r"""
Given a number of tasks, builds a dependency chain.
diff --git a/docs/spelling_wordlist.txt b/docs/spelling_wordlist.txt
index 4413be1fc7..78025bfe9f 100644
--- a/docs/spelling_wordlist.txt
+++ b/docs/spelling_wordlist.txt
@@ -227,7 +227,6 @@ cgi
Cgroups
cgroups
cgroupspy
-Chainable
chakra
Changelog
changelog
diff --git a/newsfragments/42776.significant.rst
b/newsfragments/42776.significant.rst
new file mode 100644
index 0000000000..5fad7dfe79
--- /dev/null
+++ b/newsfragments/42776.significant.rst
@@ -0,0 +1 @@
+Removed deprecated ``Chainable`` type from ``BaseOperator``.