Skip to content

panic: no entry found for key with invalid type expression #1847

@correctmost

Description

@correctmost

Summary

ty crashes when checking this fuzzed code:

_: "a*(_ for _ in _)"
error[panic]: Panicked at crates/ty_python_semantic/src/types/infer/builder.rs:7815:14 when checking `/home/user/a.py`: `no entry found for key`

Version

35e23aa w/ astral-sh/ruff@1b44d7e

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