You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "dstandish (via GitHub)" <gi...@apache.org> on 2023/06/01 02:53:10 UTC
[GitHub] [airflow] dstandish commented on a diff in pull request #31650: Add shim to track depth of dependencies in a given statement
dstandish commented on code in PR #31650:
URL: https://github.com/apache/airflow/pull/31650#discussion_r1212509114
##########
airflow/models/taskmixin.py:
##########
@@ -34,6 +35,37 @@
from airflow.utils.task_group import TaskGroup
+@dataclass
+class DepthTracker:
+ """
+ Shim class to track depth of dependencies
+
+ Used for disallowing greater than one level of deps depth when used in context manager.
+
+ :meta private:
+ """
+
+ depth: int
+ obj: DependencyMixin | Sequence[DependencyMixin]
+
+ def __post_init__(self):
+ self.cw = None
Review Comment:
```suggestion
self.cm = None
```
--
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-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org