Skip to content

Deadcode breaks from...import statements #24

Description

@Freyb

deadcode seems to break import...from statements if contains an unused item.

These are the modifications it makes:

-from mymodule.test import used_func, unused_func
+from mymodule.test import used_func,         # <- note the trailing comma
-from mymodule.test import unused_func
+from mymodule.test import

deadcode version: 2.4.1

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions