-
-
Notifications
You must be signed in to change notification settings - Fork 517
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
fixing some E502 outside of schemes and combinat #35317
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## develop #35317 +/- ##
===========================================
- Coverage 88.62% 88.61% -0.01%
===========================================
Files 2148 2148
Lines 398855 398847 -8
===========================================
- Hits 353480 353435 -45
- Misses 45375 45412 +37
... and 24 files with indirect coverage changes Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report in Codecov by Sentry. |
@@ -87,29 +87,31 @@ def __init__(self, R, ngens=2, names=None, index_set=None): | |||
""" | |||
from sage.rings.integer_ring import ZZ | |||
try: | |||
assert (ngens in ZZ and ngens > 0 and ngens % 2 == 0) | |||
assert (ngens in ZZ and ngens > 0 and not ngens % 2) | |||
except AssertionError: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not a fan of this replacement. Seems harder to read for me after the change
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is more pythonic and slightly faster.
src/sage/algebras/lie_conformal_algebras/lie_conformal_algebra_element.py
Outdated
Show resolved
Hide resolved
Documentation preview for this PR is ready! 🎉 |
📚 Description
This fixes some pycodestyle warnings about
E502 the backslash is redundant between brackets
in py files outside the folders combinat/ and schemes/
📝 Checklist
⌛ Dependencies