Message409702
Yes, there are a few exceptions to that :(
```
>>> from typing import Annotated
>>> x = Annotated[int, "idk some int"]
>>> x()
0
>>> isinstance(x, type)
False
>>>
>>> from re import Pattern
>>> y = Pattern[str]
>>> y()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: cannot create 're.Pattern' instances
>>> isinstance(y, type)
True
``` |
|
Date |
User |
Action |
Args |
2022-01-04 19:45:14 | AlexWaygood | set | recipients:
+ AlexWaygood, gvanrossum, serhiy.storchaka, joperez, kj, martinitus |
2022-01-04 19:45:14 | AlexWaygood | set | messageid: <1641325514.91.0.795382610617.issue45665@roundup.psfhosted.org> |
2022-01-04 19:45:14 | AlexWaygood | link | issue45665 messages |
2022-01-04 19:45:14 | AlexWaygood | create | |
|