mirror of
https://github.com/astral-sh/ruff
synced 2026-01-21 21:40:51 -05:00
This refactors the importer abstraction to use a shared `Insertion`. This is mostly just moving some code around with some slight tweaks. The plan here is to keep the rest of the importing code in `ruff_linter` and then write something ty-specific on top of `Insertion`. This ends up sharing some code, but not as much as would be ideal. In particular, the `ruff_linter` imported is pretty tightly coupled with ruff's semantic model. So to share the code, we'd need to abstract over that.
8 lines
121 B
Rust
8 lines
121 B
Rust
/*!
|
|
Low-level helpers for manipulating Python import statements.
|
|
*/
|
|
|
|
pub use self::insertion::Insertion;
|
|
|
|
mod insertion;
|