ruff
7672dd08 - Stabilize FURB169 preview behavior (#16666)

Commit
350 days ago
Stabilize FURB169 preview behavior (#16666) ## Summary This PR stabilizes the preview behavior introduced in https://github.com/astral-sh/ruff/pull/15905 The behavior change is that the rule now also recognizes `type(expr) is type(None)` comparisons where `expr` isn't a name expression. For example, the rule now detects `type(a.b) is type(None)` and suggests rewriting the comparison to `a.b is None`. The new behavior was introduced with Ruff 0.9.5 (6th of February), about a month ago. There are no open issues or PRs related to this rule (or behavior change).
Author
Parents
Loading