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

Not removing imports noticed by pyflakes #41

Closed
dchimeno opened this issue Oct 25, 2018 · 2 comments
Closed

Not removing imports noticed by pyflakes #41

dchimeno opened this issue Oct 25, 2018 · 2 comments

Comments

@dchimeno
Copy link

Given the following example:

from pyspark.sql.types import (
    ArrayType,
    BooleanType,
    IntegerType,
)

a = ArrayType()

Run:

pyflakes example.py

Result:

example.py:1: 'pyspark.sql.types.BooleanType' imported but unused
example.py:1: 'pyspark.sql.types.IntegerType' imported but unused

Running

autoflake --remove-all-unused-imports example.py

Nothing happens.

autoflake 1.2
pyflakes 2.0.0

@ErwinJunge
Copy link

I have the same problem, same version as well.

@myint
Copy link
Member

myint commented Dec 23, 2018

See #8.

@myint myint closed this as completed Dec 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants