[ty] Simplify an intersection of N & ~T to Never if B & ~T would simplify to Never, where B is the concrete base type of a NewType N by AlexWaygood · Pull Request #24086 · 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

@AlexWaygood

@AlexWaygood AlexWaygood added bug

Something isn't working

ty

Multi-file analysis & type inference

labels

Mar 20, 2026

@AlexWaygood

…olve to Never, where B is the concrete base type of a NewType N

@AlexWaygood AlexWaygood changed the title[ty] Solve an intersection of N & ~T to Never if B & ~T would solve to Never, where B is the concrete base type of a NewType N [ty] Simplify an intersection of N & ~T to Never if B & ~T would simplify to Never, where B is the concrete base type of a NewType N

Mar 20, 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