-
-
Notifications
You must be signed in to change notification settings - Fork 628
Clean affine permutation #40034
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
Clean affine permutation #40034
Conversation
Documentation preview for this PR (built with commit 4f48259; 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.
Note that the change to use _element_constructor_
is actually a (slight) regression as it involves an extra function call. If directly constructing the element is working (i.e., no special processing is done by _element_constructor_
), then I don't think we should make the change. Hence, I don't quite understand your justification for the change.
do you talk about this kind of change:
? |
Yes, that's right. |
PS - An alternative is
although this likely makes no difference in practice... |
4a5052e
to
06bdb63
Compare
I have stepped back to using "type(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.
Thank you. LGTM.
sagemathgh-40034: Clean affine permutation pep8 cleanup adding typing annotations, fixing some code details but more importantly, using properly the `_element_constructor_` ### 📝 Checklist - [x] The title is concise and informative. - [x] The description explains in detail what this PR is about. - [ ] I have linked a relevant issue or discussion. - [ ] I have created tests covering the changes. - [ ] I have updated the documentation and checked the documentation preview. URL: sagemath#40034 Reported by: Frédéric Chapoton Reviewer(s): Travis Scrimshaw
sagemathgh-40034: Clean affine permutation pep8 cl 9A0E eanup adding typing annotations, fixing some code details but more importantly, using properly the `_element_constructor_` ### 📝 Checklist - [x] The title is concise and informative. - [x] The description explains in detail what this PR is about. - [ ] I have linked a relevant issue or discussion. - [ ] I have created tests covering the changes. - [ ] I have updated the documentation and checked the documentation preview. URL: sagemath#40034 Reported by: Frédéric Chapoton Reviewer(s): Travis Scrimshaw
sagemathgh-40034: Clean affine permutation pep8 cleanup adding typing annotations, fixing some code details but more importantly, using properly the `_element_constructor_` ### 📝 Checklist - [x] The title is concise and informative. - [x] The description explains in detail what this PR is about. - [ ] I have linked a relevant issue or discussion. - [ ] I have created tests covering the changes. - [ ] I have updated the documentation and checked the documentation preview. URL: sagemath#40034 Reported by: Frédéric Chapoton Reviewer(s): Travis Scrimshaw
pep8 cleanup
adding typing annotations, fixing some code details
but more importantly, using properly the
_element_constructor_
📝 Checklist