Refactor: Replace get_console().print() with console_print() helper#63561
Open
ad-m wants to merge 2 commits intoapache:mainfrom
Open
Refactor: Replace get_console().print() with console_print() helper#63561ad-m wants to merge 2 commits intoapache:mainfrom
ad-m wants to merge 2 commits intoapache:mainfrom
Conversation
Replace all direct get_console().print(...) calls with the console_print(...) helper throughout the breeze codebase for consistency. Remove unused get_console imports where it was only used for .print() calls. https://claude.ai/code/session_01XGwwP3viANwtiSBU4Kppdh
The production code now uses console_print() directly, so tests need to mock the console_print function rather than get_console().print. https://claude.ai/code/session_01XGwwP3viANwtiSBU4Kppdh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR refactors console output calls throughout the Breeze codebase by replacing direct
get_console().print()calls with a newconsole_print()helper function. This improves code consistency and maintainability by centralizing console output logic.There was
console_print()function inairflow_breeze/utils/console.pyas a convenience wrapper aroundget_console().print(), but it was not widely used.Changes Made
console_printfrom the console utilities moduleget_console().print(...)withconsole_print(...)throughout the codebase, including:Benefits
get_console().print()Testing
No testing needed - this is a straightforward refactoring that maintains identical behavior. All existing functionality is preserved, and the change is purely syntactic.
https://claude.ai/code/session_01XGwwP3viANwtiSBU4Kppdh
Was generative AI tooling used to co-author this PR?
Generated-by: Claude Code / Opus 4.6
{pr_number}.significant.rst, in airflow-core/newsfragments. You can add this file in a follow-up commit after the PR is created so you know the PR number.