-
Notifications
You must be signed in to change notification settings - Fork 193
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
drop python<=3.7 support #2193
base: master
Are you sure you want to change the base?
drop python<=3.7 support #2193
Conversation
According to https://endoflife.date/python python 3.7 has been EOSed 27 Jun 2023. Filter all code over `pyupgrade --py38-plus`. Signed-off-by: Tomasz Kłoczko <[email protected]>
Signed-off-by: Tomasz Kłoczko <[email protected]>
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.
I'm fine with most changes - thanks for going through this. Please just don't change the papers/* files, they are associated with published papers and should stay as they are.
I've mentioned using more f-strings instead of sometimes using the format method, don't feel obliged to do so, that can be left for another round.
@@ -43,8 +43,8 @@ def n_queens(queen_count): | |||
cols = range(queen_count) | |||
#for vec in permutations(cols): | |||
for vec in permutations(cols,None): | |||
if (queen_count == len(set(vec[i]+i for i in cols)) |
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.
don't touch the input of paper examples.
@@ -69,7 +68,7 @@ def inline(self): | |||
if tp_decl is None: | |||
return tp_lines | |||
else: | |||
return "%s %s" % (tp_lines, tp_decl) | |||
return "{} {}".format(tp_lines, tp_decl) |
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.
why not using fstrings here too?
According to https://endoflife.date/python python 3.7 has been EOSed 27 Jun 2023.
Filter all code over
pyupgrade --py38-plus
.