-
Notifications
You must be signed in to change notification settings - Fork 169
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
Code refactoring #1817
Code refactoring #1817
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.
Can't we remove res = f"[{res[:-2]}]"
and just use res = ", ".join(ext_list)
? seems like we add and remove a comma at the end which doesn't need to happen anymore.
Refactored |
Looks good to me. Test failure seems unrelated |
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
This reverts commit c61b6f8.
These slight code adjustments aim to enhance Pythonic quality by incorporating python
str.join