This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author GBeauregard
Recipients AlexWaygood, GBeauregard, JelleZijlstra, gvanrossum, kj, sobolevn
Date 2022-02-05.18:45:04
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1644086704.31.0.748442195134.issue46642@roundup.psfhosted.org>
In-reply-to
Content
The reason this test passed before is a bit confusing. Run the following code standalone to see where the type(TypeVar('T'))(name, bases, namespace) check is coming from.
```
class TypeVar:
    def __init__(self, name, *constraints):
        # in actual TypeVar, each constraint is run through
        # typing._type_check, casuing TypeError via not callable() 
        print(repr(constraints))

class V(TypeVar("T")):
    pass
```
History
Date User Action Args
2022-02-05 18:45:04GBeauregardsetrecipients: + GBeauregard, gvanrossum, JelleZijlstra, sobolevn, kj, AlexWaygood
2022-02-05 18:45:04GBeauregardsetmessageid: <1644086704.31.0.748442195134.issue46642@roundup.psfhosted.org>
2022-02-05 18:45:04GBeauregardlinkissue46642 messages
2022-02-05 18:45:04GBeauregardcreate