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

Apply ruff/pycodestyle rule E721 #1465

Merged
merged 1 commit into from
Jul 2, 2024
Merged

Conversation

DimitriPapadopoulos
Copy link
Contributor

  • I have added a news fragment under changelog.d/ (if the patch affects the end users)

Summary of changes

New in ruff 0.5.0?

E721 Use `is` and `is not` for type comparisons, or `isinstance()` for isinstance checks

Test plan

CI tests.

huxuan
huxuan previously approved these changes Jul 2, 2024
@huxuan
Copy link
Member

huxuan commented Jul 2, 2024

This will fix #1467.

But to avoid conflicts, would you mind reverting the changes of the version in pre commit config?

E721 Use `is` and `is not` for type comparisons,
     or `isinstance()` for isinstance checks
@chrysle chrysle merged commit a3a2a7e into pypa:main Jul 2, 2024
11 checks passed
@DimitriPapadopoulos DimitriPapadopoulos deleted the E721 branch July 2, 2024 13:13
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.

3 participants