Skip to content

Crash with forward reference in TypedDict #3319

Closed

Description

@JukkaL

This causes a crash because we take a join during the second pass of semantic analysis when MROs aren't populated yet:

from mypy_extensions import TypedDict

X = TypedDict('X', {'b': 'B', 'c': int})

class B: pass

Originally reported by @JelleZijlstra as #3315, but separated the crash with TypedDict into this new issue.

Activity

  1. self-assigned this
    on Jun 16, 2017
  2. added a commit that references this issue on Jun 16, 2017
    3c39bd0
  3. added a commit that references this issue on Jun 21, 2017
    94b4cfd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions