-
-
Notifications
You must be signed in to change notification settings - Fork 553
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
a few details in combinat, as suggested by ruff #36392
Conversation
Documentation preview for this PR (built with commit 47cbfa7; changes) is ready! 🎉 |
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.
Otherwise, LGTM.
src/sage/combinat/partition.py
Outdated
@@ -4201,8 +4201,8 @@ def zero_one_sequence(self): | |||
sage: all(Partitions().from_zero_one(mu.zero_one_sequence()) == mu for n in range(10) for mu in Partitions(n)) | |||
True | |||
""" | |||
tmp = [self[i]-i for i in range(len(self))] | |||
return ([Integer(not (i in tmp)) for i in range(-len(self)+1,self.get_part(0)+1)]) | |||
tmp = [self[i] - i for i in range(len(self))] |
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.
May be tmp
should be a set and not a list. I'm not sure if it is interesting here, and I agree it's not the object of this PR.
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.
LGTM.
merge conflict |
back to positive after trivial resolution of conflict |
this is fixing a few things in combinat, as suggested by the very fast linter
ruff
📝 Checklist