mirror of
https://github.com/astral-sh/ruff.git
synced 2025-07-16 09:35:17 +00: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:
parent
61b2ffa8e8
commit
d1f07008f7
11 changed files with 41 additions and 41 deletions
|
@ -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,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue