jmcarp edited a comment on issue #8145: Drop redundant project id null checks. URL: https://github.com/apache/airflow/pull/8145#issuecomment-609452801 I added a simple mypy plugin to preserve types for decorated functions, and to update types when decorators change function signatures. For example, `fallback_to_default_project_id` effectively changes the type of the `project_id` argument from `str` to `Optional[str]`. This also fixes the problem of decorators changing the types of all decorated callables to `Callable[..., Any]`. Still a WIP, but what do you think? By the way, mypy might support this kind of behavior natively at some point, but this issue has been open for a long time: https://github.com/python/mypy/issues/3157.
---------------------------------------------------------------- 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] With regards, Apache Git Services
