typing_extensions icon indicating copy to clipboard operation
typing_extensions copied to clipboard

support inline `TypedDict`s

Open DetachHead opened this issue 9 months ago • 1 comments

https://peps.python.org/pep-0764/

from typing_extensions import TypedDict

foo: TypedDict[{"name": str}] = {"name": "asdf"}

this currently crashes at runtime:

TypeError: 'function' object is not subscriptable

DetachHead avatar Apr 03 '25 03:04 DetachHead

cc @Viicos

JelleZijlstra avatar Apr 03 '25 03:04 JelleZijlstra

Done in #580

JelleZijlstra avatar May 05 '25 00:05 JelleZijlstra