Skip to content

Conversation

@fchapoton
Copy link
Contributor

about not creating a list when an iterator could do

📝 Checklist

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

@vincentmacri
Copy link
Member

According to the ruff docs there is no reason to use the UP027 rule, the performance impact is neutral and the rule is deprecated. https://docs.astral.sh/ruff/rules/unpacked-list-comprehension/

Approving because the impact of the rule is neutral and the added type annotations are good, but no need to worry about fixing this rule elsewhere.

vbraun pushed a commit to vbraun/sage that referenced this pull request Nov 16, 2025
sagemathgh-41172: some fixes from UP027
    
about not creating a list when an iterator could do

### 📝 Checklist

- [x] The title is concise and informative.
- [x] The description explains in detail what this PR is about.
    
URL: sagemath#41172
Reported by: Frédéric Chapoton
Reviewer(s):
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.

2 participants