Taragolis commented on code in PR #35409:
URL: https://github.com/apache/airflow/pull/35409#discussion_r1381715453


##########
airflow/utils/types.py:
##########
@@ -71,3 +71,10 @@ class EdgeInfoType(TypedDict):
     """Extra metadata that the DAG can store about an edge, usually generated 
from an EdgeModifier."""
 
     label: str | None
+
+
+@runtime_checkable
+class Stringable(Protocol):
+    def __str__(self) -> str:
+        pass

Review Comment:
   🤔 Is this required? Special method `__str__` should be implemented (implicit 
or explicit) in additional should return string, otherwise TypeError will raised



##########
airflow/utils/types.py:
##########
@@ -71,3 +71,10 @@ class EdgeInfoType(TypedDict):
     """Extra metadata that the DAG can store about an edge, usually generated 
from an EdgeModifier."""
 
     label: str | None
+
+
+@runtime_checkable
+class Stringable(Protocol):
+    def __str__(self) -> str:
+        pass

Review Comment:
   🤔 Is this required? Special method `__str__` should be implemented (implicit 
or explicit) in additional should return string, otherwise TypeError will raised



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