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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]