mirror of
https://github.com/astral-sh/ruff
synced 2026-01-07 14:44:17 -05:00
Rename Notebook related symbols (#6862)
This PR renames the following symbols: * `PySourceType::Jupyter` -> `PySourceType::Ipynb` * `SourceKind::Jupyter` -> `SourceKind::IpyNotebook` * `JupyterIndex` -> `NotebookIndex`
This commit is contained in:
@@ -313,7 +313,7 @@ impl AsMode for PySourceType {
|
||||
fn as_mode(&self) -> Mode {
|
||||
match self {
|
||||
PySourceType::Python | PySourceType::Stub => Mode::Module,
|
||||
PySourceType::Jupyter => Mode::Jupyter,
|
||||
PySourceType::Ipynb => Mode::Jupyter,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user