Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ruff fix UP027 (list comprehension) #36606

Merged
merged 1 commit into from
Nov 5, 2023

Conversation

fchapoton
Copy link
Contributor

This one is about avoiding creating lists when iterators can do the job.

Scripted using ruff check --fix --select=UP027 src/sage

📝 Checklist

  • The title is concise, informative, and self-explanatory.
  • The description explains in detail what this PR is about.

Copy link

Documentation preview for this PR (built with commit 6e0db5b; changes) is ready! 🎉

Copy link
Collaborator

@kwankyu kwankyu left a comment

Choose a reason for hiding this comment

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

Nice tip. LGTM.

vbraun pushed a commit to vbraun/sage that referenced this pull request Nov 2, 2023
sagemathgh-36606: ruff fix UP027 (list comprehension)
    
This one is about avoiding creating lists when iterators can do the job.

Scripted using `ruff  check --fix --select=UP027  src/sage`

### 📝 Checklist

- [x] The title is concise, informative, and self-explanatory.
- [x] The description explains in detail what this PR is about.
    
URL: sagemath#36606
Reported by: Frédéric Chapoton
Reviewer(s): Kwankyu Lee
@vbraun vbraun merged commit 23f7eeb into sagemath:develop Nov 5, 2023
@mkoeppe mkoeppe added this to the sage-10.2 milestone Nov 5, 2023
@fchapoton fchapoton deleted the fix-ruff-UP027 branch November 5, 2023 16:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants