buxizhizhoum commented on a change in pull request #16584:
URL: https://github.com/apache/airflow/pull/16584#discussion_r657047364



##########
File path: airflow/models/dag.py
##########
@@ -2122,7 +2165,7 @@ class DagTag(Base):
     dag_id = Column(String(ID_LEN), ForeignKey('dag.dag_id'), primary_key=True)
 
     def __repr__(self):
-        return self.name
+        return f"<DagTag: {self.name}>"

Review comment:
       This change has been rolled back, the original `return self.name` 
triggers an pylint error(__repr__ does not return str (invalid-repr-returned)), 
and I change it a little to suppress it.




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

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to