mirror of
https://github.com/astral-sh/ruff
synced 2026-01-20 21:10:48 -05:00
## Summary Implement [`no-is-type-none`](https://github.com/dosisod/refurb/blob/master/refurb/checks/builtin/no_is_type_none.py) as `type-none-comparison` (`FURB169`). Auto-fixes comparisons that use `type` to compare the type of an object to `type(None)` to a `None` identity check. For example, ```python type(foo) is type(None) ``` becomes ```python foo is None ``` Related to #1348. ## Test Plan `cargo test`