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

remove unused import + pep8 cleanup in modform/element #39611

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

fchapoton
Copy link
Contributor

full pep8 cleanup in the modified file

📝 Checklist

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

Copy link

github-actions bot commented Mar 1, 2025

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

Copy link
Contributor

@dcoudert dcoudert left a comment

Choose a reason for hiding this comment

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

LGTM.

@@ -995,11 +993,11 @@ def period(self, M, prec=53):

M = self.group()(M)
# coefficients of the matrix M
(b, c, d) = (M.b(), M.c() / N, M.d())
b, c, d = (M.b(), M.c() / N, M.d())
Copy link
Contributor

Choose a reason for hiding this comment

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

parenthesis are not needed on the right side either.

if d == 0:
return R.zero()
if d < 0:
(b, c, d) = (-b, -c, -d)
b, c, d = (-b, -c, -d)
Copy link
Contributor

Choose a reason for hiding this comment

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

same here.

vbraun pushed a commit to vbraun/sage that referenced this pull request Mar 1, 2025
full pep8 cleanup in the modified file

### 📝 Checklist

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

URL: sagemath#39611
Reported by: Frédéric Chapoton
Reviewer(s): David Coudert
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