Skip to content

panic: internal error: entered unreachable code: NotDefinedYet #289

@correctmost

Description

@correctmost

zuban check crashes when checking this fuzzed code:

from typing import TypedDict

class C[int](TypedDict):
    a = int

    def fn(b: int):
        pass
thread 'main' panicked at crates/zuban_python/src/type_helpers/class.rs:1189:22:
internal error: entered unreachable code: NotDefinedYet { class_ref: ClassNodeRef(NodeRef { node: "class C[int](TypedDict):\n    a = int\n\n  ", point: Point { kind: Complex, locality: NameBinder, node_index: 0, needs_flow_analysis: false }, complex: "ClassStorage { .. }", file_index: FileIndex(14), node_index: 15 }) }

Version info

3963508

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions