Hadi Alqattan
Hadi Alqattan
I did some code debugging, I ended with a bug on `LibCST.RemoveFromParent()` function! ```python3 from typing import Union import libcst as cst class RemoveUnusedImportTransformer(cst.CSTTransformer): def leave_ImportFrom( self, original_node: cst.ImportFrom, updated_node:...
If that's the case, I'm gonna open an issue on the `LibCST` repo.
Please take a look at [Instagram/LibCST#390](https://github.com/Instagram/LibCST/issues/390)
I think we should implement a method that preserves node comment/empty-line from removal!
In my opinion, there is no need to add this functionality while some advanced tools like [`pycln`](https://pypi.org/project/pycln/) already exist to accomplish this task elegantly.
Hi, This behavior is because without using `--all` flag Pycln tries to analyze star imports in order to know weather they are actually used or not (the `--expand-stars` flag only...
Hi again @Avasam, Regarding improving the `UnexpandableImportStar` error, I'll think of it and respond later... The second suggestion sounds good to me and I believe it should've been already implemented!...
Fixed on #9, consider closing.
@elpython3, please add the bellow line to the PR description to link this PR with the related issues! ```md Fix: #2 #4 ```
@elpython3 BTW, you don't have to close this PR to edit the file!