Skip to content

Type tqdm.contrib.tzip per column - #16942

Open
Lushiyao5 wants to merge 2 commits into
python:mainfrom
Lushiyao5:fix-tqdm-tzip-types
Open

Lushiyao5 wants to merge 2 commits into
python:mainfrom
Lushiyao5:fix-tqdm-tzip-types

Conversation

@Lushiyao5

Copy link
Copy Markdown
Contributor

tzip yields the tuples produced by the built-in zip, but its stub currently gives every result an incomplete type. Follow the built-in zip overloads by preserving the individual element types for up to five iterables and using a variadic tuple for more. Keep the first iterable usable by keyword in the one-input case, and leave subsequent named options available to the progress wrapper.

I verified the runtime output for one through six iterables and for an extra keyword forwarded to a custom progress wrapper. The new type assertions and the changed stub pass mypy.

This patch was prepared with assistance from OpenAI Codex.

@github-actions

github-actions Bot commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant