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 2022/04/04 19:53:00 UTC

[GitHub] [airflow] jedcunningham commented on a diff in pull request #22735: Docs: Fix example usage for `AzureCosmosDocumentSensor`

jedcunningham commented on code in PR #22735:
URL: https://github.com/apache/airflow/pull/22735#discussion_r842087495


##########
airflow/providers/microsoft/azure/sensors/cosmos.py:
##########
@@ -31,12 +31,12 @@ class AzureCosmosDocumentSensor(BaseSensorOperator):
 
     .. code-block::
 
-    azure_cosmos_sensor = AzureCosmosDocumentSensor(
-        database_name="somedatabase_name",
-        collection_name="somecollection_name",
-        document_id="unique-doc-id",
-        azure_cosmos_conn_id="azure_cosmos_default",
-        task_id="azure_cosmos_sensor")
+        azure_cosmos_sensor = AzureCosmosDocumentSensor(
+            database_name="somedatabase_name",
+            collection_name="somecollection_name",
+            document_id="unique-doc-id",
+            azure_cosmos_conn_id="azure_cosmos_default",
+            task_id="azure_cosmos_sensor")

Review Comment:
   ```suggestion
               task_id="azure_cosmos_sensor",
           )
   ```
   nit: this might look even better



-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org