xinbinhuang commented on a change in pull request #8635:
URL: https://github.com/apache/airflow/pull/8635#discussion_r417783083
##########
File path: airflow/models/baseoperator.py
##########
@@ -1044,8 +1044,7 @@ def get_direct_relatives(self, upstream: bool = False) ->
List[str]:
return self.downstream_list
def __repr__(self):
- return "<Task({self.__class__.__name__}): {self.task_id}>".format(
- self=self)
+ return f"<Task({self.__class__.__name__}): {self.task_id}>"
Review comment:
I agree with you that removing "Task" is a better way to go. Thanks for
the suggestion
----------------------------------------------------------------
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]