Skip to content

[3.11] typing: Add more tests for TypeVar (GH-104571) #104577

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 2 commits into from
May 17, 2023

Conversation

JelleZijlstra
Copy link
Member

During the PEP 695 implementation at one point I made TypeVar.name return garbage, and all of test_typing passed. So I decided to add a few more tests. (cherry picked from commit 2693194)

During the PEP 695 implementation at one point I made
TypeVar.__name__ return garbage, and all of test_typing passed.
So I decided to add a few more tests. In the process I discovered
a minor incompatibility from the C implementation of TypeVar:
empty constraints were returned as None instead of an empty tuple..
(cherry picked from commit 2693194)

Co-authored-by: Jelle Zijlstra <[email protected]>
@JelleZijlstra JelleZijlstra enabled auto-merge (squash) May 17, 2023 13:38
@JelleZijlstra JelleZijlstra merged commit f106aef into python:3.11 May 17, 2023
@JelleZijlstra JelleZijlstra deleted the backport-2693194-3.11 branch May 17, 2023 13:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip issue skip news tests Tests in the Lib/test dir
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants