ruff
da5eb850 - [ruff] Add API for splicing into an existing import statement

Commit
4 days ago
[ruff] Add API for splicing into an existing import statement Basically, given a `from module import name1, name2, ...` statement, we'd like to be able to insert another name in that list. This new `Insertion::existing_import` API provides such functionality. There isn't much to it, although we are careful to try and avoid inserting nonsense for import statements that are already invalid.
Author
Committer
Parents
Loading