-
Notifications
You must be signed in to change notification settings - Fork 436
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
Fix quality issues reported by DeepSource #574
Fix quality issues reported by DeepSource #574
Conversation
Fixes: - PYL-W0612: Rename unused variable to `_` - PYL-C0123: Use `isinstance()` for checking type - PAP-W0011: Use `dict.items()` to iterate over a dictionary - PAP-W0012: Use `dict.get()` to access value from dictionary instead of an `if` query to check whether the key exists - PYL-C0325: Remove superfluous brackets `()` - PYL-R1701: Merge multiple consecutive `isinstance()` calls into one
Hi @ob-stripe, here are some more code quality issues fixed. Suggestions:
|
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.
One minor request, but looks great! Thanks!
Updated the PR. Good to go. |
Awesome, thanks! |
Released as 2.28.2. |
@sauravsrijan I've already added |
You have to do |
Fixes:
_
isinstance()
for checking typedict.items()
to iterate over a dictionarydict.get()
to access value from dictionary instead of anif
query to check whether the key exists()
isinstance()
calls into one