vatsrahul1001 opened a new pull request, #77820: URL: https://github.com/apache/airflow/pull/77820
* Fix failing __doc__ usage in case of PYTHONOPTIMIZE=2 Handle case where __doc__ is None for description. PYTHONOPTIMIZE=2 drops the docstrings, causing an Attribute error when __doc__ is used * Add test for loading v2026_10_30 version changes without docstrings Compile the module with optimize=2, as python -OO / PYTHONOPTIMIZE=2 does, and execute it. Without the guard on inspect.cleandoc(__doc__) this raises AttributeError: 'NoneType' object has no attribute 'expandtabs'. --------- Co-authored-by: Shahar Epstein <[email protected]> (cherry picked from commit a81cfb7ac980d4b72a80765f076b51aa8fe124ad) Co-authored-by: diederikvdv <[email protected]> --- Clean cherry-pick of the merge commit, no conflicts. **Verified locally:** execution_api versions tests, 844 passed, 6 skipped. Backport of #77013. Generated-by: Claude Code 🤖 Generated with [Claude Code](https://claude.com/claude-code) -- 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]
