TypedDict gets converted into something weird with TypeVar #12609
Labels
bug
mypy got something wrong
topic-type-form
TypeForm might fix this
topic-type-variables
topic-typed-dict
The output is
Revealed type is "builtins.object*"
If I try to annotate the argument with:
args1: D = t(D)
Then I get a weird error:
Incompatible types in assignment (expression has type "D", variable has type "D")
It seems that the return type of the function is some modified version of
D
where all the values have been reduced toobject
.Not sure if this might be related to #9003 or #8620.
The text was updated successfully, but these errors were encountered: