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

fix small issues in iter_subproc #547

Merged
merged 2 commits into from
Nov 27, 2023
Merged

fix small issues in iter_subproc #547

merged 2 commits into from
Nov 27, 2023

Conversation

mih
Copy link
Member

@mih mih commented Nov 27, 2023

This commit fixes a small bug in iter_subproc.__init__. The parameter chunksize was never used. Instead a constant value was used. The new code passes the value down to iterable_subprocess.

This commit also improve iter_subproc type
annotation for input to accept any
Iterable.

This commit fixes a small bug in `iter_subproc.__init__`.
The parameter `chunksize` was never used. Instead a
constant value was used. The new code passes the value
down to `iterable_subprocess`.
This commit changes the type of the
`input`-parameter of `iter_subproc` from
`List[bytes]` to `Iterable[bytes]` (wich
includes `List[bytes]`).
The previous annotation was unnecessarily
restrictive and would lead to type-check
errors if an iterator-object, e.g. a
result of `iter(...)` was provided as
`input`-parameter.
@mih
Copy link
Member Author

mih commented Nov 27, 2023

Appveyor is not in a good place -- but that is unrelated.

@mih mih enabled auto-merge November 27, 2023 10:10
@mih mih disabled auto-merge November 27, 2023 10:16
@mih mih merged commit 54f8abe into main Nov 27, 2023
8 of 10 checks passed
@mih mih deleted the bf-iter-subproc branch November 27, 2023 10:16
@mih mih added this to the 1.1 milestone Dec 6, 2023
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