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 03:10:15 UTC

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

josh-fell commented on pull request #20422:
URL: https://github.com/apache/airflow/pull/20422#issuecomment-999250417


   > I don’t think we need the `else` part. This should work:
   > 
   > ```python
   > if TYPE_CHECKING:
   >     from airflow.utils.context import Context
   > 
   > def execute(self, context: "Context") -> None:
   >     ...
   > ```
   
   I can confirm this works in #20034 for the Docker decorator.


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