-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Closed
Description
An attempt to define a nested TypedDict results in a not very helpful message:
from mypy_extensions import TypedDict
D = TypedDict('D', {
'x': TypedDict('E', { # Invalid field type
'y': int
})
})
A better message could be something like "Inline TypedDict types not supported; use assignment" statement to define a TypedDict".
jasonkuhrt, anishpatel, FreCap, tuukkamustonen, mkbabb and 2 more