Skip to content

Remove unused imports#5193

Merged
ilevkivskyi merged 3 commits intopython:masterfrom
emmatyping:rmtestimp
Jun 11, 2018
Merged

Remove unused imports#5193
ilevkivskyi merged 3 commits intopython:masterfrom
emmatyping:rmtestimp

Conversation

@emmatyping
Copy link
Copy Markdown
Member

@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
Copy Markdown
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