Skip to content

panic: no entry found for key with stringified set comprehension in type expression #1865

@correctmost

Description

@correctmost

Summary

ty crashes when checking this fuzzed code:

x: "f'{1 if 1 else 1}'"
error[panic]: Panicked at crates/ty_python_semantic/src/types/infer/builder.rs:8187:28 when checking `/home/user/a.py`: `no entry found for key`

Version

5e31bc9 w/ astral-sh/ruff@bc8efa2fd86

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingfatala fatal error (panic or crash)fuzzerIssues surfaced by fuzzing ty

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions