potiuk commented on pull request #20469: URL: https://github.com/apache/airflow/pull/20469#issuecomment-1000829833
> Why are the pyi files needed? They seem to duplicate the exact same type hints in their corresponding actual .py files. It's about the default (= None). The problem is that until we properly handle 'apply_defaults' mypy complains about missing parameters in examples (where mandatory parameters are passed only by apply defaults). We had few other cases like that and while it is not perfect it works for now. I think eventually we will need a mypy plugin to handle this case but this would require to learn more on how mypy internals work. -- 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]
