Skip to content

[mypy parity] We should look at narrowing on dict (and typed dict) .get #238

@stroxler

Description

@stroxler

Describe the Bug

We ran into an issue trying to migrate someone where they wanted to narrow the .get(<key>) access on a dictionary (where the key was a literal string) from Any | None to Any

This would be a good thing to support, both for migration and general usability

Sandbox Link

No response

(Only applicable for extension issues) IDE Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions