-
-
Notifications
You must be signed in to change notification settings - Fork 580
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 the file hexad.py #36635
clean the file hexad.py #36635
Conversation
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/games/hexad.py
Outdated
MINIMOG[0][2], MINIMOG[2][1]) | ||
if H != []: # must be type 3 | ||
if H: # must be type 3 | ||
return list(H), WHAT | ||
if H == []: # could be type 0 |
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 could be if not H:
, or we can remove this test as we checked if H:
2 lines before.
The same situation appears multiple times below.
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.
voila, merci pour la relecture
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. Passes tests on Fedora 35.
Documentation preview for this PR (built with commit 78a16ba; changes) is ready! 🎉 |
various little pep8 details, some fixes by ruff, unicode art, etc
📝 Checklist