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/12/22 02:06:33 UTC

[GitHub] [airflow] uranusjr commented on pull request #20422: Fix MyPy errors in Apache Providers

uranusjr commented on pull request #20422:
URL: https://github.com/apache/airflow/pull/20422#issuecomment-999225926


   I don’t think we need to `else` part. This should work:
   
   ```python
   if TYPE_CHECKING:
       from airflow.utils.context import Context
   
   def execute(self, context: "Context") -> None:
       ...
   ```


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