mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-28 21:05:08 +00:00
Move StarImport
to its own module (#5186)
This commit is contained in:
parent
b369288833
commit
310abc769d
4 changed files with 11 additions and 9 deletions
7
crates/ruff_python_semantic/src/star_import.rs
Normal file
7
crates/ruff_python_semantic/src/star_import.rs
Normal file
|
@ -0,0 +1,7 @@
|
|||
#[derive(Debug, Clone)]
|
||||
pub struct StarImport<'a> {
|
||||
/// The level of the import. `None` or `Some(0)` indicate an absolute import.
|
||||
pub level: Option<u32>,
|
||||
/// The module being imported. `None` indicates a wildcard import.
|
||||
pub module: Option<&'a str>,
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue