Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BoolField can leave off a default to represent tri-states #9893

Merged
merged 1 commit into from
May 29, 2020

Conversation

Eric-Arellano
Copy link
Contributor

Stu pointed out that it can be valuable to know when a BoolField was left undefined. For example, this can be used to know to use a global default value.

Indeed, we had one python_binary field that uses this exact pattern and I didn't know how to port. We can now support this use case.

[ci skip-rust-tests]
[ci skip-jvm-tests]

# Delete this line to force CI to run Clippy and the Rust tests.
[ci skip-rust-tests]
# Delete this line to force CI to run the JVM tests.
[ci skip-jvm-tests]
@Eric-Arellano Eric-Arellano changed the title BoolField can have no default value to represent tri-states BoolField can leave off a default to represent tri-states May 29, 2020
Copy link
Sponsor Member

@stuhood stuhood left a comment

Choose a reason for hiding this comment

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

Thanks!

@Eric-Arellano Eric-Arellano merged commit 6addb3f into pantsbuild:master May 29, 2020
@Eric-Arellano Eric-Arellano deleted the bool-field branch May 29, 2020 04:44
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.

2 participants