ruff
a29009e4 - [`pyupgrade`] Comments within parenthesized value ranges should not affect applicability (`UP040`) (#16027)

Commit
308 days ago
[`pyupgrade`] Comments within parenthesized value ranges should not affect applicability (`UP040`) (#16027) ## Summary Follow-up to #16026. Previously, the fix for this would be marked as unsafe, even though all comments are preserved: ```python # .pyi T: TypeAlias = ( # Comment int | str ) ``` Now it is safe: comments within the parenthesized range no longer affect applicability. ## Test Plan `cargo nextest run` and `cargo insta test`. --------- Co-authored-by: Dylan <53534755+dylwil3@users.noreply.github.com>
Author
Parents
Loading