Message412589
| 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: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 | |