turbaszek commented on a change in pull request #16250:
URL: https://github.com/apache/airflow/pull/16250#discussion_r645330683



##########
File path: docs/apache-airflow/howto/custom-operator.rst
##########
@@ -117,7 +117,7 @@ Let's extend our previous example to fetch name from MySQL:
             hook = MySqlHook(mysql_conn_id=self.mysql_conn_id, 
schema=self.database)
             sql = "select name from user"
             result = hook.get_first(sql)
-            message = "Hello {}".format(result["name"])
+            message = f"Hello {result["name"]}"

Review comment:
       ```suggestion
               message = f"Hello {result['name']}"
   ```




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