You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2021/06/04 06:48:46 UTC

[GitHub] [airflow] turbaszek commented on a change in pull request #16250: Use f-string in custom operator docs

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:
users@infra.apache.org