Skip to content

Conversation

@Skylion007
Copy link
Contributor

Enable a ruff rule that avoid copies in list reversal. Use builtin reverse method.
The builtin does an efficient stride reversal and avoids accidental copies.
This is extra helpful since the changed reverses are for perf optimization.

@Skylion007 Skylion007 marked this pull request as draft February 21, 2025 15:30
@Skylion007 Skylion007 force-pushed the skylion007/apply-ruff-FURB187-2025-02-21 branch from a7c673d to 21a28f4 Compare February 21, 2025 15:33
@Skylion007 Skylion007 force-pushed the skylion007/apply-ruff-FURB187-2025-02-21 branch from 21a28f4 to 91bf811 Compare February 21, 2025 15:45
@Skylion007 Skylion007 marked this pull request as ready for review February 21, 2025 15:45
@github-actions

This comment has been minimized.

Copy link
Collaborator

@cdce8p cdce8p left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @Skylion007 👍🏻

@cdce8p cdce8p added the upnext label Feb 25, 2025
@cdce8p cdce8p requested a review from hauntsaninja March 26, 2025 16:38
@JukkaL
Copy link
Collaborator

JukkaL commented Mar 28, 2025

This now has a merge conflict.

@Skylion007
Copy link
Contributor Author

@JukkaL Merge conflict resolved

@github-actions
Copy link
Contributor

github-actions bot commented Apr 2, 2025

According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅

@JukkaL JukkaL merged commit 1214a74 into python:master Apr 3, 2025
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants