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.9 support #7028
Drop Python 3.9 support #7028
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.
This looks good to me.
I looked at the changes in Python 3.10 to see what we could now use and noticed:
- the
match
statement which is a super-powerful switch/case system. - the
|
operator acts with classes now (as this PR implements). The result is like a tuple combining classes in e.g.isinstance(obj, class1 | class2)
itertools.pairwise
is now available (probably making our utilitypairwise
obsolete, but I haven't checked the details yet.
I'll make an issue to check whether we can/should change code due to any of these.
I also notice type annotations have been corrected in networkx/readwrite/text.py
. They must have slipped into that module. I'll prepare a PR to remove those.
* Drop Python 3.9 support See https://scientific-python.org/specs/spec-0000/ * Run ruff linter
* Drop Python 3.9 support See https://scientific-python.org/specs/spec-0000/ * Run ruff linter
* Drop Python 3.9 support See https://scientific-python.org/specs/spec-0000/ * Run ruff linter
See https://scientific-python.org/specs/spec-0000/