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

Remove unused imports #5193

Merged
merged 3 commits into from
Jun 11, 2018
Merged

Remove unused imports #5193

merged 3 commits into from
Jun 11, 2018

Conversation

emmatyping
Copy link
Collaborator

@emmatyping emmatyping commented Jun 11, 2018

PyCharm has a pretty powerful engine which reports unused imports. I decided to go through and remove all the validly unused imports it reported. I tried to split it into separate commits for a bit easier review.

I did make one code change which should have no real effect. stubgen.py was importing parse_all_signatures, find_unique_signatures from stubgenc.py which were really just re-exported from stubutil.py. I just removed this unneeded re-exporting and directly imported them in stubgen.py.

Copy link
Member

@ilevkivskyi ilevkivskyi left a comment

Choose a reason for hiding this comment

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

I like the idea!

@ilevkivskyi ilevkivskyi merged commit 5ab9499 into python:master Jun 11, 2018
@emmatyping emmatyping deleted the rmtestimp branch January 31, 2019 02:33
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.

2 participants