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

   SQLAlchemy 2.1 changed the type definition in a backward incompatible way, 
causing Mypy issues with the existing code base (runtime support does not 
break, only type hints). The new types should be the way going forward, but 
unfortunately 2.1 does not support Python 3.13 and lower, and some of the 
Airflow providers do not yet support 3.14.
   
   To work around the issue, a small shim is implemented in Airflow with a 
small plugin to switch behavior between the two distinct combinations. Once 
Python 3.14 is supported across the board, we can simply remove the plugin and 
change the type imports without needing to fix any of the type hints.
   
   While applying the shim, issues were discovered in LazySelectSequence. After 
further inspection, the offending code was leftover from Airflow 2 that has 
been dead for quite a while and no longer needed. It doesn't work if explicitly 
called anyway (reflected by the now-correct type hints), and therefore has been 
removed entirely.


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