Skip to content

Conversation

@Sorata-kanda
Copy link

This PR adds a new static assertion assert_not_both_not_none requested in issue #393.

Behavior validation:

  • (None, None) → allowed
  • (value, None) → allowed
  • (None, value) → allowed
  • (value, value) → AssertionError

Implemented in asserts.py and validated via existing assertion tests.
All local tests pass aside from an unrelated chexify docstring issue which occurs on main as well.

@google-cla
Copy link

google-cla bot commented Dec 21, 2025

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@Sorata-kanda
Copy link
Author

I have signed the CLA.

@Sorata-kanda Sorata-kanda force-pushed the add_not_both_none_assert branch from 2388356 to 7cee800 Compare December 22, 2025 16:10
@Sorata-kanda Sorata-kanda force-pushed the add_not_both_none_assert branch from 7cee800 to 0155790 Compare January 13, 2026 09:03
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