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

all the unused imports are removed #5555

Closed
wants to merge 1 commit into from
Closed

all the unused imports are removed #5555

wants to merge 1 commit into from

Conversation

sharmas1ddharth
Copy link

Closes #3483

refactor

Technical

I have removed all the unused imports or libraries and declutters the code

Testing

Screenshot

This PR does not touches UI

Stakeholders

@cclauss @imskr

@cclauss
Copy link
Contributor

cclauss commented Aug 17, 2021

I think that #3483 (comment) will still be the case.

@@ -20,7 +20,7 @@
from openlibrary.core.vendors import create_edition_from_amazon_metadata

# Seed might look unused, but removing it causes an error :/
Copy link
Collaborator

@hornc hornc Aug 17, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this comment looks relevant:
# Seed might look unused, but removing it causes an error :/

I believe there are unfortunately a number of cases in older OL code where things are imported in a file to be used elsewhere and it's not indicated clearly that the module is supposed to provide that interface.

@cdrini cdrini self-assigned this Aug 23, 2021
@cdrini
Copy link
Collaborator

cdrini commented May 27, 2022

Closing as stale; feel free to re-open if you have the time to work on it, @sharmas1ddharth ! I'd recommend targeting smaller chunks at a time; say max 10 files a PR :)

@cdrini cdrini closed this May 27, 2022
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.

Investigate Python Unused Imports
4 participants