Skip to content

details about ruff code RET in modular folder #40199

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

Merged
merged 1 commit into from
Jun 14, 2025

Conversation

fchapoton
Copy link
Contributor

mainly about small simplifications

📝 Checklist

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

Copy link

github-actions bot commented Jun 2, 2025

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

q = self._series_ring.gen()
E4_ZZ = ((-q*self.J_inv_ZZ().derivative())**2/(self.J_inv_ZZ()*(self.J_inv_ZZ()-1))).power_series()
return E4_ZZ
return ((-q*self.J_inv_ZZ().derivative())**2 / (self.J_inv_ZZ()*(self.J_inv_ZZ()-1))).power_series()
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
return ((-q*self.J_inv_ZZ().derivative())**2 / (self.J_inv_ZZ()*(self.J_inv_ZZ()-1))).power_series()
J_Inv = self.J_inv_ZZ()
return ((-q * J_Inv.derivative())**2 / (J_inv * (J_inv-1))).power_series()

q = self._series_ring.gen()
E6_ZZ = ((-q*self.J_inv_ZZ().derivative())**3/(self.J_inv_ZZ()**2*(self.J_inv_ZZ()-1))).power_series()
return E6_ZZ
return ((-q*self.J_inv_ZZ().derivative())**3 / (self.J_inv_ZZ()**2*(self.J_inv_ZZ()-1))).power_series()
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
return ((-q*self.J_inv_ZZ().derivative())**3 / (self.J_inv_ZZ()**2*(self.J_inv_ZZ()-1))).power_series()
J_inv = self.J_inv_ZZ()
return ((-q * J_inv.derivative())**3 / (J_inv**2 * (J_inv-1))).power_series()

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

vbraun pushed a commit to vbraun/sage that referenced this pull request Jun 4, 2025
mainly about small simplifications

### 📝 Checklist

- [x] The title is concise and informative.
- [x] The description explains in detail what this PR is about.

URL: sagemath#40199
Reported by: Frédéric Chapoton
Reviewer(s): Martin Rubey
@fchapoton
Copy link
Contributor Author

Thanks Martin !

@mantepse
Copy link
Contributor

mantepse commented Jun 5, 2025

Possibly move the two suggestions to a new ticket?

@fchapoton
Copy link
Contributor Author

indeed, as Volker has started to use the branch, one should not include them here. As I try hard to avoid dependencies between pull requests, I will have to remember later..

vbraun pushed a commit to vbraun/sage that referenced this pull request Jun 6, 2025
sagemathgh-40199: details about ruff code RET in modular folder
    
mainly about small simplifications

### 📝 Checklist

- [x] The title is concise and informative.
- [x] The description explains in detail what this PR is about.
    
URL: sagemath#40199
Reported by: Frédéric Chapoton
Reviewer(s): Martin Rubey
vbraun pushed a commit to vbraun/sage that referenced this pull request Jun 8, 2025
sagemathgh-40199: details about ruff code RET in modular folder
    
mainly about small simplifications

### 📝 Checklist

- [x] The title is concise and informative.
- [x] The description explains in detail what this PR is about.
    
URL: sagemath#40199
Reported by: Frédéric Chapoton
Reviewer(s): Martin Rubey
vbraun pushed a commit to vbraun/sage that referenced this pull request Jun 9, 2025
sagemathgh-40199: details about ruff code RET in modular folder
    
mainly about small simplifications

### 📝 Checklist

- [x] The title is concise and informative.
- [x] The description explains in detail what this PR is about.
    
URL: sagemath#40199
Reported by: Frédéric Chapoton
Reviewer(s): Martin Rubey
vbraun pushed a commit to vbraun/sage that referenced this pull request Jun 9, 2025
sagemathgh-40199: details about ruff code RET in modular folder
    
mainly about small simplifications

### 📝 Checklist

- [x] The title is concise and informative.
- [x] The description explains in detail what this PR is about.
    
URL: sagemath#40199
Reported by: Frédéric Chapoton
Reviewer(s): Martin Rubey
vbraun pushed a commit to vbraun/sage that referenced this pull request Jun 9, 2025
sagemathgh-40199: details about ruff code RET in modular folder
    
mainly about small simplifications

### 📝 Checklist

- [x] The title is concise and informative.
- [x] The description explains in detail what this PR is about.
    
URL: sagemath#40199
Reported by: Frédéric Chapoton
Reviewer(s): Martin Rubey
@vbraun vbraun merged commit 9ecd407 into sagemath:develop Jun 14, 2025
26 checks passed
@fchapoton fchapoton deleted the ruff_code_RET_modular branch June 15, 2025 06:11
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