remove_import_name
Remove specific names from Python multi-name import statements while preserving other imports. When removing the last name, deletes the entire import line.
Instructions
Remove a name from a Python from <module> import a, b, c statement. If removing
the only remaining name, removes the entire import statement. Python-only.
Use this when: You want to remove a single name from a multi-name import.
Don't use this when: You want to remove the entire import line -> use remove_import.
Example: module="typing" name="List"
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | ||
| module | Yes | ||
| name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |