uranusjr commented on code in PR #71757:
URL: https://github.com/apache/airflow/pull/71757#discussion_r4336111513


##########
scripts/ci/prek/lang_sdk_compat_matrix.py:
##########
@@ -88,30 +93,91 @@ class Capability(NamedTuple):
     Capability("asset-state-store", "MAY", "runtime", False),
     Capability("asset-event-emit", "MAY", "runtime", False),
     Capability("asset-event-read", "MAY", "runtime", False),
+    Capability("object-store", "MAY", "runtime", False),
     Capability(NATIVE_DAG_GATE, "SHOULD", "native", False),
+    Capability("dag-args", "MUST", "native", True),
     Capability("task-args", "MUST", "native", True),
     Capability("dag-params", "MUST", "native", True),
+    Capability("explicit-dependencies", "MUST", "native", True),
     Capability("taskflow-dependencies", "MUST", "native", True),
-    Capability("branching", "SHOULD", "native", True),
-    Capability("dag-test", "SHOULD", "native", True),
     Capability("task-group", "MAY", "native", True),
-    Capability("dynamic-task-mapping", "MAY", "native", True),
-    Capability("asset-inlets-outlets", "MAY", "native", True),
+    Capability("if-else-branching", "SHOULD", "native", True),
+    Capability("switch-case-branching", "SHOULD", "native", True),
+    Capability("trigger-dag-run", "MAY", "native", True),
+    Capability("dynamic-dag-generation", "MAY", "native", True),
+    Capability("human-in-the-loop", "MAY", "native", True),
+    Capability("dag-test", "SHOULD", "native", True),
     Capability("asset-scheduling", "MAY", "native", True),
-    Capability("object-store", "MAY", "native", True),
+    Capability("mixed-lang-stub-target", "MUST", "stub", False),
+    Capability("taskflow-binding", "MUST", "stub", False),
+    Capability("dynamic-task-mapping", "MAY", "shared", True),
+    Capability("asset-inlets-outlets", "MAY", "shared", True),
 ]
 
 CAPABILITY_NAMES = {cap.name for cap in CAPABILITY_DIMENSIONS}
-
-GROUP_LABELS = {"runtime": "Runtime capabilities", "native": "Native-Dag 
authoring"}
-STATES_GROUP_LABEL = "TaskInstance states"
+SHARED_CAPABILITY_NAMES = {cap.name for cap in CAPABILITY_DIMENSIONS if 
cap.group == "shared"}
 
 LEGEND = (
     f"Marks: {SUPPORTED_MARK} supported · {UNSUPPORTED_MARK} not supported · "
     f"{NA_MARK} not applicable. A tier marked † applies only when 
`{NATIVE_DAG_GATE}` is supported."
 )
 
 
+class MatrixRow(NamedTuple):
+    kind: str  # "state" or "capability"

Review Comment:
   This should use Literal.



-- 
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]

Reply via email to