Conversation

galz10

Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:

  • Make sure to open an issue as a bug/issue before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
  • Ensure the tests and linter pass
  • Code coverage does not decrease (if any source code was changed)
  • Appropriate docs were updated (if necessary)

Fixes #<issue_number_goes_here> 🦕

BEGIN_COMMIT_OVERRIDE
chore: added helper functions to DocumentWrapper
END_COMMIT_OVERRIDE

@galz10galz10 requested a review from a team as a code owner October 12, 2022 18:36
@product-auto-labelproduct-auto-label bot added the size: mPull request size is medium.label Oct 12, 2022
@galz10galz10 requested a review from dizcology October 12, 2022 18:36
@galz10galz10 mentioned this pull request Oct 12, 2022
4 tasks
@galz10galz10 requested a review from dizcology October 13, 2022 22:37
@galz10galz10 requested a review from dizcology October 18, 2022 19:40
target_string is not None and pattern is not None
):
raise ValueError(
"Exactly one of target_string and pattern must be specified."
Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe "or" instead of "and".

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is checking if both target_string and pattern are populated so it needs an "and" to make sure both are not none.

@galz10galz10 merged commit d103c08 into main Oct 19, 2022
@galz10galz10 deleted the add-helpers branch October 19, 2022 18:27
Sign up for free to join this conversation on . Already have an account? Sign in to comment
size: mPull request size is medium.
None yet

Successfully merging this pull request may close these issues.