Skip to content

Fix crashing on invalid Concatenate usage - #21562

Merged
hauntsaninja merged 2 commits into
python:masterfrom
themylogin:concatenate-crash
Sep 19, 2026
Merged

hauntsaninja merged 2 commits into
python:masterfrom
themylogin:concatenate-crash

Conversation

@themylogin

Copy link
Copy Markdown
Contributor

An extra pair of square brackets in Callable[[Concatenate[int, ...]], None] caused mypy to crash.

@github-actions

This comment has been minimized.

@github-actions

Copy link
Copy Markdown
Contributor

According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅

@hauntsaninja

Copy link
Copy Markdown
Collaborator

Thank you!

@hauntsaninja
hauntsaninja merged commit f179d1e into python:master Sep 19, 2026
25 checks passed
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