Skip to content

Conversation

@copybara-service
Copy link

@copybara-service copybara-service bot commented Aug 2, 2025

fix: make tool description for bigquery execute_sql for various write modes self contained

So far we had a default docstring for the execute-sql tool and for non-default write modes we were concatenating more content to it. This was working fine in Python 3.9-3.12 but broke in Python 3.13 because of a nuanced difference in the string concatenation to the __doc__ property of a function b/433914562#comment4. This change makes the docstring management more robust and readable.

@copybara-service copybara-service bot changed the title refactor: make descriptions for various write modes for execute-sql tool self contained fix: make tool description for bigquery execute_sql for various write modes self contained Aug 21, 2025
@copybara-service copybara-service bot force-pushed the copybara/790016525 branch 12 times, most recently from 28f8281 to c64910f Compare August 21, 2025 12:17
…te modes self contained

So far we had a default docstring for the `execute-sql` tool and for non-default write modes we were concatenating more content to it. This was working fine in Python 3.9-3.12 but broke in Python 3.13 because of a nuanced difference in the string concatenation to the `__doc__` property of a function b/433914562#comment4. This change makes the docstring management more robust and readable.

PiperOrigin-RevId: 797843736
@copybara-service copybara-service bot merged commit 167182b into main Aug 21, 2025
@copybara-service copybara-service bot deleted the copybara/790016525 branch August 21, 2025 18:26
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