pierrejeambrun commented on PR #44249:
URL: https://github.com/apache/airflow/pull/44249#issuecomment-2493487589

   > What's probably best is to make sure you're using the old syntax for every 
class that is going to be used in the context of a Pydantic model.
   
   Indeed this is not great. We have all the codebase updated to the new style 
type annotation. (`|`, `list`, etc...) and having to use the old one everywhere 
pydantic is involved might be not great. (maybe I didn't understand correctly 
what you are suggesting).
   
   > but the union syntax is not supported on Python 3.9.
   
   We use `from future import __annotation__` in conjunction with 
`eval-type-backport` and has been working nicely for us (new style annotation + 
forward evaluation). Is that expected or will we still face an issue with the 
new release ?


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