Skip to content

Don't remove re-exported imports #258

@thejcannon

Description

@thejcannon

mypy has the concept of "re-export"ing a module by importing it and giving it the same name in the as dotted name:
https://mypy.readthedocs.io/en/stable/config_file.html#confval-implicit_reexport

from whatever import thing as thing

thing may not be used, but it needs to stay, since it is being exported. (This is primarily to allow for moving a definition but maintaining backwards compatibility).

It'd be great if autoflake doesn't remove these.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions