Skip to content

Clarify error message for TypeVar function#20954

Open
hyperkai wants to merge 2 commits intopython:masterfrom
hyperkai:hyperkai-patch-1
Open

Clarify error message for TypeVar function#20954
hyperkai wants to merge 2 commits intopython:masterfrom
hyperkai:hyperkai-patch-1

Conversation

@hyperkai
Copy link
Contributor

@hyperkai hyperkai commented Mar 3, 2026

Fix: #20922

@github-actions

This comment has been minimized.

@github-actions
Copy link
Contributor

github-actions bot commented Mar 4, 2026

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

Copy link
Collaborator

@hauntsaninja hauntsaninja left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the current phrasing is more precise. I'd be open to a version of this PR that is just the argument -> parameter swap

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.

UNBOUND_TYPEVAR error message should be more direct and shorter

2 participants