Skip to content

Conversation

fchapoton
Copy link
Contributor

as suggested by ruff check --select=SIM113

📝 Checklist

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

Copy link

github-actions bot commented Sep 29, 2025

Documentation preview for this PR (built with commit 6d4d7bf; changes) is ready! 🎉
This preview will update shortly after each push to this PR.

by using join at the end

Co-authored-by: Martin Rubey <axiomize@yahoo.de>
return "0"

s = " + ".join(terms)
return s.replace("+ -", "- ")
Copy link
Contributor

Choose a reason for hiding this comment

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

the following lines should be removed, and there is whitespace. Sorry, that's an artefact of how github suggestions do not work :-(

Copy link
Contributor Author

Choose a reason for hiding this comment

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

indeed.. now fixed

Copy link
Contributor

@mantepse mantepse left a comment

Choose a reason for hiding this comment

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

LGTM

@fchapoton
Copy link
Contributor Author

Danke schön !

vbraun pushed a commit to vbraun/sage that referenced this pull request Oct 5, 2025
sagemathgh-40916: more usage of enumerate()
    
as suggested by `ruff check --select=SIM113`

### 📝 Checklist

- [x] The title is concise and informative.
- [x] The description explains in detail what this PR is about.
    
URL: sagemath#40916
Reported by: Frédéric Chapoton
Reviewer(s): Frédéric Chapoton, Martin Rubey
@vbraun vbraun merged commit 40fcffc into sagemath:develop Oct 6, 2025
25 of 26 checks passed
@fchapoton fchapoton deleted the using_enumerate branch October 7, 2025 06:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants