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

style: Compare Python types with is, not == #218

Merged
merged 1 commit into from
Aug 28, 2023

Conversation

adrienverge
Copy link
Owner

The right way to compare primitive types in Python is to use the exact comparison is.

This shuts up the flake8 linter, currently complaining on master branch.

The right way to compare primitive types in Python is to use the exact
comparison `is`.

This shuts up the flake8 linter, currently complaining on master branch.
@adrienverge adrienverge merged commit 9b9676f into master Aug 28, 2023
10 checks passed
@adrienverge adrienverge deleted the style/type-comparison branch August 28, 2023 09:35
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.

1 participant