dazza-codes commented on a change in pull request #6811: [RFC][AIRFLOW-6245] 
Add custom waiters for AWS batch jobs
URL: https://github.com/apache/airflow/pull/6811#discussion_r361011370
 
 

 ##########
 File path: tests/test_core_to_contrib.py
 ##########
 @@ -757,6 +757,11 @@
         "airflow.providers.amazon.aws.operators.batch.AwsBatchOperator",
         "airflow.contrib.operators.awsbatch_operator.AWSBatchOperator",
     ),
+    # # Leave this out to avoid TypeError: Instance and class checks can only 
be used with @runtime protocols
+    # (
+    #     "airflow.providers.amazon.aws.hooks.batch_client.AwsBatchProtocol",
+    #     "airflow.contrib.operators.awsbatch_operator.BatchProtocol",
+    # ),
 
 Review comment:
   Maybe a solution to the problem will arrive on SO at
   - 
https://stackoverflow.com/questions/59461689/how-can-you-test-that-a-python-typing-protocol-is-a-subclass-of-another-protocol

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


With regards,
Apache Git Services

Reply via email to