mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-21 11:00:31 +00:00
Range formatting API (#9635)
This commit is contained in:
parent
6bb126415d
commit
ce14f4dea5
65 changed files with 3273 additions and 762 deletions
|
@ -203,6 +203,12 @@ impl PyFormatOptions {
|
|||
self.preview = preview;
|
||||
self
|
||||
}
|
||||
|
||||
#[must_use]
|
||||
pub fn with_source_map_generation(mut self, source_map: SourceMapGeneration) -> Self {
|
||||
self.source_map_generation = source_map;
|
||||
self
|
||||
}
|
||||
}
|
||||
|
||||
impl FormatOptions for PyFormatOptions {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue