Skip to content

Add exactly size of n doc to padded#807

Merged
bbayles merged 4 commits intomore-itertools:masterfrom
james-wasson:doc_padded_make_exact_size
Feb 7, 2024
Merged

Add exactly size of n doc to padded#807
bbayles merged 4 commits intomore-itertools:masterfrom
james-wasson:doc_padded_make_exact_size

Conversation

@james-wasson
Copy link
Copy Markdown
Contributor

Issue reference

#794

Changes

I have used to native method I discussed in the issue to add to the documentation. If this is not acceptable and we want to only compose using the padded method I don't think any docstring PR should be merged related to this issue.

Using the padded method
islice(padded(iterable, '?', n), n)
is less performant and less clear than using
islice(chain(iterable, repeat('?')), n)
in my opinion.

Thoughts on this are welcome.

@james-wasson
Copy link
Copy Markdown
Contributor Author

Not sure why this build is failing. Locally there is no issue with make check-all. Any help would be appreciated.

@elliotwutingfeng
Copy link
Copy Markdown
Contributor

I am getting the same "black" reformat warnings from a clean slate + removed erroneous quotes from the workflow file (https://github.com/elliotwutingfeng/more-itertools/actions/runs/7739500311).

@bjrtx bjrtx mentioned this pull request Feb 4, 2024
@bbayles bbayles merged commit 287fb8a into more-itertools:master Feb 7, 2024
@bbayles
Copy link
Copy Markdown
Collaborator

bbayles commented Feb 7, 2024

Resolution: update to the latest versions of flake8 and black.

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.

3 participants