uranusjr commented on issue #19891: URL: https://github.com/apache/airflow/issues/19891#issuecomment-1003829748
The typed aliases are intentionally given a very long deprecation period and can be modified in a vastly more gradual pace. I would recommend one of the followings: 1. Keep using alises in `typing` and only start using PEP 585 definitions when Airflow drops 3.8 support (which gives the transition around two years). 2. Move the non-alised definitions when there is an official decision on PEP 649 (which allows you to safely use `from __future__ import annotation`). 3. Convert all alised annotations to stringified stdlib definitions (e.g. change `Dict[str, List[str]]` to `"dict[str, list[str]]"`; note the surrounding quotes). This works right now and does not need any future work to finish the transition, but is obviously not as pretty. -- 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]
