[New-bugs-announce] [issue41973] Docs: TypedDict is now of type function instead of class
Bernat Gabor
report at bugs.python.org
Thu Oct 8 02:26:46 EDT 2020
New submission from Bernat Gabor <gaborjbernat at gmail.com>:
❯ 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.
----------
messages: 378212
nosy: gaborjbernat
priority: normal
severity: normal
status: open
title: Docs: TypedDict is now of type function instead of class
versions: Python 3.10, Python 3.9
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41973>
_______________________________________
More information about the New-bugs-announce
mailing list