uranusjr opened a new pull request #20669:
URL: https://github.com/apache/airflow/pull/20669


   Tests are failing:
   
   ```
   TypeError: Protocols can only inherit from other protocols, got <class 
'airflow.providers.amazon.aws.operators.ecs.ECSProtocol'>
   ```
   
   This is due to the compatibility shim for `ECSProtocol` is incorrectly 
double-inheriting `Protocol`. Since the “real” `ECSProtocol` class (i.e. 
`NewECSProtocol`) is already a protocol, the compat `ECSProtocol` does not need 
to (and can’t) also inherit from `Protocol`. Similarly, the 
`@runtime_checkable` decorator shouldn’t be applied, since the parent 
`ECSProtocol` is already runtime-checkable.


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to