Skip to content

chore: remove dead version check conditional - #19061

Open
daniel-sanche wants to merge 1 commit into
google-cloud-python-internal_gapic-generator_lro-api-version-header-576380032from
google-cloud-python-internal_gapic-generator_remove-version-header-todos
Open

daniel-sanche wants to merge 1 commit into
google-cloud-python-internal_gapic-generator_lro-api-version-header-576380032from
google-cloud-python-internal_gapic-generator_remove-version-header-todos

Conversation

@daniel-sanche

Copy link
Copy Markdown
Contributor

The generator was generating a stale HAS_GOOGLE_API_CORE_VERSION_HEADER flag, which is only read on api_core < 2.19.0. Because we now have a higher floor, we can remove this flag and related TODOs

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request removes conditional checks and fallback logic for the version_header module from google-api-core, implying that the minimum supported version of google-api-core is now 2.19.0 or higher. It cleans up templates, generated golden files, and tests by removing try/except imports, HAS_GOOGLE_API_CORE_VERSION_HEADER checks, and conditional test skips. I have no further feedback to provide as there are no review comments.

@daniel-sanche
daniel-sanche marked this pull request as ready for review November 13, 2026 03:37
@daniel-sanche
daniel-sanche requested a review from a team as a code owner November 13, 2026 03:37

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant