Add else-branch narrowing for if type(a) is A when A is @final by AlexWaygood · Pull Request #19925 · astral-sh/ruff (original) (raw)

@AlexWaygood

@AlexWaygood added the ty

Multi-file analysis & type inference

label

Aug 15, 2025

dcreager

dcreager added a commit that referenced this pull request

Aug 15, 2025

@dcreager

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 }})