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

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


Reply via email to