Skip to content

Accept value as keyword argument in TypeAliasType - #20556

Merged
JelleZijlstra merged 1 commit into
python:masterfrom
hamdanal:typealiastype
Jan 10, 2026
Merged

JelleZijlstra merged 1 commit into
python:masterfrom
hamdanal:typealiastype

Conversation

@hamdanal

Copy link
Copy Markdown
Collaborator

Fixes #20531

The case where value is missing is handled and tested

@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. ✅

@JelleZijlstra
JelleZijlstra merged commit 7285830 into python:master Jan 10, 2026
23 checks passed
@hamdanal
hamdanal deleted the typealiastype branch January 10, 2026 17:09
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.

Using the type alias created by TypeAliasType which is the base of a type statement, mypy gives error

2 participants