Skip to content

Commit

Permalink
Task SDK: Fix typing for autoregistered_dags
Browse files Browse the repository at this point in the history
Fixing one of the TODOs: apache#43076

This was already addressed.
  • Loading branch information
kaxil committed Oct 30, 2024
1 parent b94b1a1 commit 47accc3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion task_sdk/src/airflow/sdk/definitions/abstractoperator.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ class AbstractOperator(DAGNode):

outlets: list
inlets: list
# TODO:

trigger_rule: TriggerRule
_needs_expansion: bool | None = None
_on_failure_fail_dagrun = False
Expand Down
3 changes: 1 addition & 2 deletions task_sdk/src/airflow/sdk/definitions/contextmanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,7 @@ class DagContext(ContextStack[DAG]):
"""

# TODO: Task-SDK, should module type be optional? Will that break more?
autoregistered_dags: set[tuple[DAG, ModuleType | None]] = set()
autoregistered_dags: set[tuple[DAG, ModuleType]] = set()
current_autoregister_module_name: str | None = None

@classmethod
Expand Down

0 comments on commit 47accc3

Please sign in to comment.