-
Notifications
You must be signed in to change notification settings - Fork 311
Added takewhile_inclusive #736
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
Merged
bbayles
merged 4 commits into
more-itertools:master
from
OlegAlexander:takewhile-inclusive
Jul 27, 2023
Merged
Added takewhile_inclusive #736
bbayles
merged 4 commits into
more-itertools:master
from
OlegAlexander:takewhile-inclusive
Jul 27, 2023
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Collaborator
|
Could you fix this
Thanks for the PR! |
Contributor
Author
|
Done. |
Contributor
Author
|
I saw the black 3.8 error. I formatted the code with black using the settings in your pyproject.toml file. I hope it works! |
Contributor
Author
|
Trying again with: python -m black more_itertools/more.pyi -t py37 --line-length=79 -S
python -m black tests/test_more.py -t py37 --line-length=79 -SFingers crossed. |
bbayles
approved these changes
Jul 27, 2023
Collaborator
|
Many thanks! |
lengau
referenced
this pull request
in canonical/charmcraft
Sep 12, 2023
[](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [more-itertools](https://togithub.com/more-itertools/more-itertools) | `==10.0.0` -> `==10.1.0` | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>more-itertools/more-itertools (more-itertools)</summary> ### [`v10.1.0`](https://togithub.com/more-itertools/more-itertools/releases/tag/v10.1.0): Version 10.1.0 [Compare Source](https://togithub.com/more-itertools/more-itertools/compare/v10.0.0...v10.1.0) ##### What's Changed - Add more tests for `zip_broadcast()` by [@​kalekundert](https://togithub.com/kalekundert) in [https://github.com/more-itertools/more-itertools/pull/739](https://togithub.com/more-itertools/more-itertools/pull/739) - Added takewhile_inclusive by [@​OlegAlexander](https://togithub.com/OlegAlexander) in [https://github.com/more-itertools/more-itertools/pull/736](https://togithub.com/more-itertools/more-itertools/pull/736) - Speed up `zip_broadcast()` by pre-filling the scalar elements by [@​kalekundert](https://togithub.com/kalekundert) in [https://github.com/more-itertools/more-itertools/pull/740](https://togithub.com/more-itertools/more-itertools/pull/740) - Added outer_product. by [@​OlegAlexander](https://togithub.com/OlegAlexander) in [https://github.com/more-itertools/more-itertools/pull/743](https://togithub.com/more-itertools/more-itertools/pull/743) - Simplify `zip_broadcast` by [@​pochmann](https://togithub.com/pochmann) in [https://github.com/more-itertools/more-itertools/pull/742](https://togithub.com/more-itertools/more-itertools/pull/742) - Simplify `_zip_equal` by [@​pochmann](https://togithub.com/pochmann) in [https://github.com/more-itertools/more-itertools/pull/744](https://togithub.com/more-itertools/more-itertools/pull/744) - fix consume() type annotation by [@​obaltian](https://togithub.com/obaltian) in [https://github.com/more-itertools/more-itertools/pull/746](https://togithub.com/more-itertools/more-itertools/pull/746) - Version 10.1.0 by [@​bbayles](https://togithub.com/bbayles) in [https://github.com/more-itertools/more-itertools/pull/747](https://togithub.com/more-itertools/more-itertools/pull/747) ##### New Contributors - [@​OlegAlexander](https://togithub.com/OlegAlexander) made their first contribution in [https://github.com/more-itertools/more-itertools/pull/736](https://togithub.com/more-itertools/more-itertools/pull/736) - [@​obaltian](https://togithub.com/obaltian) made their first contribution in [https://github.com/more-itertools/more-itertools/pull/746](https://togithub.com/more-itertools/more-itertools/pull/746) **Full Changelog**: more-itertools/more-itertools@v10.0.1...v10.1.0 </details> --- ### Configuration 📅 **Schedule**: Branch creation - "every weekend" in timezone Etc/UTC, Automerge - "before 07:00" in timezone Etc/UTC. 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/canonical/charmcraft). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNi44My4wIiwidXBkYXRlZEluVmVyIjoiMzYuODMuMCIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Issue reference
#730
Changes
I've added the
takewhile_inclusivefunction and tests for it.I ran the entire test suite and all the tests passed except for one:
I wasn't sure how to fix it so I left it alone. I'm on Windows 11. Python 3.10.6.
Please let me know if you'd like me to make any changes. Thank you!