Skip to content

TypeDict not accepting dict in constructor. #597

@stolati

Description

@stolati

Describe the Bug

If I use a dictionary in the constructor of a TypeDict (instead of named parameters directly), pyrefly assign it as an error, even if the result is the same in python.

Sandbox Link

https://pyrefly.org/sandbox/?code=FAMwTg9gtgBALgTwA4EsB2BzGKpImOGAERQGM4AaGAGRQGdKaU4BTMAQwBsqAVZFgCYlywUcFKd2dOjB4sGPIgAo+SQcLgBKAFzAY+mAH1DiNce1NWHTgG0ARAAk2LOwF09ButBaGUAi+hwYuwwALyy8nCKSsamPoZhMI7OdlReUD5+4QDMAAyaogBGiXIKygDedrH8xnYWyWAuVHbpmQJ1MHkAvgXiFqVRRImV1WaGHQ1NSa2+7RbdYkhggUrsBUsrhevLaHBKpL2iQA

(Only applicable for extension issues) IDE Information

No response

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions