Skip to content

Raise warnings when assign bool to int/enum field in Python Proto. This will turn into error in 34.0 release.#22875

Merged
copybara-service[bot] merged 1 commit intomainfrom
test_786468755
Aug 1, 2025
Merged

Raise warnings when assign bool to int/enum field in Python Proto. This will turn into error in 34.0 release.#22875
copybara-service[bot] merged 1 commit intomainfrom
test_786468755

Conversation

@copybara-service
Copy link
Copy Markdown

Raise warnings when assign bool to int/enum field in Python Proto. This will turn into error in 34.0 release.

@copybara-service copybara-service Bot force-pushed the test_786468755 branch 3 times, most recently from 42fcbe2 to 01e845f Compare August 1, 2025 05:18
…is will turn into error in 34.0 release.

PiperOrigin-RevId: 789619218
@copybara-service copybara-service Bot merged commit 4ee55d7 into main Aug 1, 2025
1 check passed
@copybara-service copybara-service Bot deleted the test_786468755 branch August 1, 2025 05:48
anandolee added a commit that referenced this pull request Aug 7, 2025
…o int/enum (#23030)

* Raise warnings when assign bool to int/enum field in Python Proto. This will turn into error in 34.0 release.

PiperOrigin-RevId: 789619218

* Fix --_BoolWarningCount to _BoolWarningCount -= 1

PiperOrigin-RevId: 789836477
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