ruff/crates/ruff_python_semantic/src/star_import.rs
2023-06-20 13:12:46 -04:00

7 lines
268 B
Rust

#[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>,
}