Message378212
❯ py -3.8 -c 'from typing import TypedDict; print(type(TypedDict))'
<class 'typing._TypedDictMeta'>
❯ py -3.9 -c 'from typing import TypedDict; print(type(TypedDict))'
<class 'function'>
Python 3.9 changed the type of the TypedDict but the documentation still says it's a class - see https://docs.python.org/3.9/library/typing.html#typing.TypedDict. I must also say I'm suprised you can inherit from a function, but we should update the documentation to reflect that the type of the element in question is no longer class. |
|
Date |
User |
Action |
Args |
2020-10-08 06:26:47 | gaborjbernat | set | recipients:
+ gaborjbernat |
2020-10-08 06:26:46 | gaborjbernat | set | messageid: <1602138406.98.0.272652370144.issue41973@roundup.psfhosted.org> |
2020-10-08 06:26:46 | gaborjbernat | link | issue41973 messages |
2020-10-08 06:26:46 | gaborjbernat | create | |
|