ruff/crates/ruff_linter
Igor Drokin da16e00751
[`pyupgrade`] Extend version detection to include `sys.version_info.major` (`UP036`) (#18633)
## Summary

Resolves #18165 

Added pattern `["sys", "version_info", "major"]` to the existing matches
for `sys.version_info` to ensure consistent handling of both the base
object and its major version attribute.

## Test Plan
`cargo nextest run` and `cargo insta test`

---------

Co-authored-by: Brent Westbrook <brentrwestbrook@gmail.com>
2025-06-23 20:01:55 +00:00
..
resources [`pyupgrade`] Extend version detection to include `sys.version_info.major` (`UP036`) (#18633) 2025-06-23 20:01:55 +00:00
src [`pyupgrade`] Extend version detection to include `sys.version_info.major` (`UP036`) (#18633) 2025-06-23 20:01:55 +00:00
Cargo.toml Bump 0.12.0 (#18724) 2025-06-17 11:05:59 -04:00