potiuk commented on PR #33754:
URL: https://github.com/apache/airflow/pull/33754#issuecomment-1694201750

   BTW. This calls for automation and pre-commit. I think we should ba able to 
have an AST pre-commit to verify if an import is only used in Type Hints (and 
ask to move them to `if TYPE_CHECKING`) - and the other way round - we could 
check if anything that is in `TYPE_CHECKING` is actually only used for type 
hints (cc: @uranusjr ). 


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