Skip to content

Assign all TypeVars to variables #1959

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 5, 2025
Merged

Conversation

yangdanny97
Copy link
Contributor

There were a few places in the conformance tests that had calls to TypeVar without assigning them to variables. This PR changes them to be assigned to variables, for consistency.

Based on the results, it appears that some existing typecheckers do not check TypeVars that are not assigned to variables, so the typechecker logic did not get exercised previously.

@erictraut
Copy link
Collaborator

Thanks for the fix. Looks good to me.

@erictraut erictraut merged commit 1bec6e9 into python:main Apr 5, 2025
4 checks passed
facebook-github-bot pushed a commit to facebook/pyrefly that referenced this pull request Apr 5, 2025
Summary:
I made a fix to the conformance tests, so I'm pulling in the latest changes and regenerating the outputs.

python/typing#1959

This also pulled in the new overload conformance tests.

Reviewed By: ndmitchell

Differential Revision: D72514863

fbshipit-source-id: 5a06f65d3738a2152ae864122c9c9b5691570b16
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