Skip to content

fix new rule - legacy TypeVar not assigned to variable #3755#3843

Open
asukaminato0721 wants to merge 2 commits into
facebook:mainfrom
asukaminato0721:3755
Open

fix new rule - legacy TypeVar not assigned to variable #3755#3843
asukaminato0721 wants to merge 2 commits into
facebook:mainfrom
asukaminato0721:3755

Conversation

@asukaminato0721

Copy link
Copy Markdown
Contributor

Summary

Fixes #3755

bare statement calls to TypeVar, ParamSpec, and TypeVarTuple now emit invalid declaration errors.

Test Plan

add test

@github-actions

This comment has been minimized.

@github-actions github-actions Bot added size/s and removed size/s labels Jun 17, 2026
@github-actions

Copy link
Copy Markdown

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

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

new rule - legacy TypeVar not assigned to variable

2 participants