potiuk commented on issue #14396:
URL: https://github.com/apache/airflow/issues/14396#issuecomment-785141528


   > We could also add a TypedDict -- at least IDEs will have good 
auto-completion
   
   Yep. @kaxil is right - TypedDict is far more pythonic (Hints are the way how 
types are usually added in Python). The thing with using fixed Dataclasses. We 
should basically never remove/rename anything in the context (maybe we should 
use some deprecation mechanism). 
   
   The context is used by pretty much every single custom operator out there, 
and the change you propose will immediately break all of them.. If anything 
else - this is a single reason why we should not do it.
   
   But the idea of improving developer's productivity is sound and since we 
have TypedDict which is backwards compatible and gives most benefits you 
mentioned, I think it is far better solution. Would youl like to pick this up 
@r-richmond ?


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

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


Reply via email to