Pull in RustPython parser (#6099)

This commit is contained in:
Micha Reiser 2023-07-27 11:29:11 +02:00 committed by GitHub
parent 86539c1fc5
commit 40f54375cb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
779 changed files with 108400 additions and 2078 deletions

View file

@ -1,7 +1,7 @@
use crate::context::PyFormatContext;
use crate::{AsFormat, IntoFormat, PyFormatter};
use ruff_formatter::{Format, FormatOwnedWithRule, FormatRefWithRule, FormatResult, FormatRule};
use rustpython_ast::Mod;
use ruff_python_ast::Mod;
pub(crate) mod mod_expression;
pub(crate) mod mod_function_type;

View file

@ -1,6 +1,6 @@
use crate::{AsFormat, FormatNodeRule, PyFormatter};
use ruff_formatter::{Format, FormatResult};
use rustpython_ast::ModExpression;
use ruff_python_ast::ModExpression;
#[derive(Default)]
pub struct FormatModExpression;

View file

@ -1,6 +1,6 @@
use crate::{not_yet_implemented, FormatNodeRule, PyFormatter};
use ruff_formatter::{write, Buffer, FormatResult};
use rustpython_ast::ModFunctionType;
use ruff_python_ast::ModFunctionType;
#[derive(Default)]
pub struct FormatModFunctionType;

View file

@ -1,6 +1,6 @@
use crate::{not_yet_implemented, FormatNodeRule, PyFormatter};
use ruff_formatter::{write, Buffer, FormatResult};
use rustpython_ast::ModInteractive;
use ruff_python_ast::ModInteractive;
#[derive(Default)]
pub struct FormatModInteractive;

View file

@ -2,7 +2,7 @@ use crate::statement::suite::SuiteLevel;
use crate::{AsFormat, FormatNodeRule, PyFormatter};
use ruff_formatter::prelude::hard_line_break;
use ruff_formatter::{write, Buffer, FormatResult};
use rustpython_ast::ModModule;
use ruff_python_ast::ModModule;
#[derive(Default)]
pub struct FormatModModule;