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

Deadcode breaks from...import statements #24

Open
Freyb opened this issue Nov 14, 2024 · 0 comments
Open

Deadcode breaks from...import statements #24

Freyb opened this issue Nov 14, 2024 · 0 comments

Comments

@Freyb
Copy link

Freyb commented Nov 14, 2024

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

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

No branches or pull requests

1 participant