[ty] Avoid panic from functional Enum(value=...) by charliermarsh · Pull Request #24639 · astral-sh/ruff (original) (raw)

Skip to content

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Conversation

@charliermarsh

Summary

Given Enum(value="Color"), we were inferring the name twice.

See: #24638 (comment).

@charliermarsh

@astral-sh-bot

Typing conformance results

No changes detected ✅

Current numbers
The percentage of diagnostics emitted that were expected errors held steady at 87.94%. The percentage of expected errors that received a diagnostic held steady at 83.21%. The number of fully passing files held steady at 79/133.

@astral-sh-bot

Memory usage report

Memory usage unchanged ✅

@astral-sh-bot

carljm

This was referenced

Apr 27, 2026

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters

[ Show hidden characters]({{ revealButtonHref }})

Labels

bug

Something isn't working

ty

Multi-file analysis & type inference