Message412589
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
``` |
|
Date |
User |
Action |
Args |
2022-02-05 18:45:04 | GBeauregard | set | recipients:
+ GBeauregard, gvanrossum, JelleZijlstra, sobolevn, kj, AlexWaygood |
2022-02-05 18:45:04 | GBeauregard | set | messageid: <1644086704.31.0.748442195134.issue46642@roundup.psfhosted.org> |
2022-02-05 18:45:04 | GBeauregard | link | issue46642 messages |
2022-02-05 18:45:04 | GBeauregard | create | |
|