Skip to content

inline typed dicts should not need to be wrapped in dict[] #585

@DetachHead

Description

@DetachHead

mypy added support for them in python/mypy#17457, but it differs from ours:

# mypy:
foo: {"foo": str}
# basedpyright:
foo: dict[{"foo": str}]

i like mypy's one better so we should switch to that instead

Metadata

Metadata

Assignees

No one assigned

    Labels

    basednon-standard/breaking change (eg. would cause issues in 3rd party code)

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions