Skip to content
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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

kloczek
Copy link

@kloczek kloczek commented Mar 31, 2024

According to https://endoflife.date/python python 3.7 has been EOSed 27 Jun 2023.
Filter all code over pyupgrade --py38-plus.

kloczek added 2 commits March 31, 2024 18:05
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]>
Copy link
Owner

@serge-sans-paille serge-sans-paille left a 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))
Copy link
Owner

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)
Copy link
Owner

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants