-
-
Notifications
You must be signed in to change notification settings - Fork 25.9k
MNT fix ruff type vs isinstance errors #27039
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
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.
LGTM.
I'd expect a comment in the code if the author (for some obscure reason) really wanted to check the type instead of the usual/normal isinstance
.
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.
Fine with merging this.
Is there a reason not to pin ruff as with the other linting tools though? It could even be an additional lockfile like we do for the "standard" (build+test) CI builds.
@lesteve we can pin the version, but regarding the lock files, I've had difficulties dealing with them, they're large, and it's very confusing to manage them. So for now I rather stay out of it personally 😁 |
Fix issues raised by new ruff. Right now linting is failing on
main