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

Checkify: Add documentation for adding run-time values to error message. #13584

Merged
merged 1 commit into from
Dec 12, 2022

Conversation

LenaMartens
Copy link
Contributor

No description provided.

msg: error message if error is added. Can be a format string.
*fmt_args, **fmt_kwargs: Posistional and keyword formatting arguments for
`msg`, eg.:
``check(..., msg="check failed on values {} and {named}", x, named=y)``.
Copy link
Member

Choose a reason for hiding this comment

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

I don't think you can have positional arguments following named arguments.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ah whoops, good catch!

@google-ml-butler google-ml-butler bot added kokoro:force-run pull ready Ready for copybara import and testing labels Dec 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pull ready Ready for copybara import and testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants