Skip to content

Commit 189f687

Browse files
committed
Revert one cleanup in decorator
1 parent 7dbb0a0 commit 189f687

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

scripts/ci/pre_commit/sync_init_decorator.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,10 @@ def _expr_to_ast_dump(expr: str) -> str:
119119
# Mapping of allowble Decorator type -> Class attribute type
120120
_expr_to_ast_dump("Collection[str] | None"): _expr_to_ast_dump("MutableSet[str]"),
121121
_expr_to_ast_dump("ParamsDict | dict[str, Any] | None"): _expr_to_ast_dump("ParamsDict"),
122+
# TODO: This one is legacy access control. Remove it in 3.0. RemovedInAirflow3Warning
123+
_expr_to_ast_dump(
124+
"dict[str, dict[str, Collection[str]]] | dict[str, Collection[str]] | None"
125+
): _expr_to_ast_dump("dict[str, dict[str, Collection[str]]] | None"),
122126
}
123127

124128

0 commit comments

Comments
 (0)