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

Switch type comparisons from == to is, and upgrade flake8, in preparation for Python 3.12 #2857

Merged
merged 1 commit into from
Aug 11, 2023

Conversation

benclifford
Copy link
Collaborator

Upcoming Python 3.12 (at least in python 3.12-rc1) requires a newer version of flake8 as flake8 6.0.0 gets confused by things happening inside format strings with Python 3.12-rc1.

This PR makes that upgrade.

Flake8 6.1.0 introduces a new rule to use is-equality, rather than ==-equality, when comparing types, and so this PR fixes violations of that rule too. In theory this shouldn't change behaviour.

Type of change

  • Code maintentance/cleanup

Upcoming Python 3.12 (at least in python 3.12-rc1) requires a newer version
of flake8 as flake8 6.0.0 gets confused by things happening inside format
strings with Python 3.12-rc1.

This PR makes that upgrade.

Flake8 6.1.0 introduces a new rule to use is-equality, rather than
==-equality, when comparing types, and so this PR fixes violations of
that rule too. In theory this shouldn't change behaviour.
Copy link
Collaborator

@khk-globus khk-globus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Simple enough change; just reran the failed test as it appears to have timed out.

@benclifford benclifford changed the title Upgrade flake8 and subsequent fixes, in preparation for Python 3.12 Switch type comparisons from == to is, and upgrade flake8, in preparation for Python 3.12 Aug 11, 2023
@benclifford benclifford merged commit eb7ffe9 into master Aug 11, 2023
4 checks passed
@benclifford benclifford deleted the benc-flake8-6.0.1 branch August 11, 2023 06:17
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