mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-04 02:38:25 +00:00
Remove unsupported type_comment
field
<!-- Thank you for contributing to Ruff! To help us out with reviewing, please consider the following: - Does this pull request include a summary of the change? (See below.) - Does this pull request include a descriptive title? - Does this pull request include references to any relevant issues? --> ## Summary This PR removes the `type_comment` field which our parser doesn't support. <!-- What's the purpose of the change? What does it do, and why? --> ## Test Plan `cargo test` <!-- How was it tested? -->
This commit is contained in:
parent
4ad5903ef6
commit
7c7231db2e
54 changed files with 31 additions and 322 deletions
|
@ -57,7 +57,6 @@ fn assignment(obj: &Expr, name: &str, value: &Expr, generator: Generator) -> Str
|
|||
range: TextRange::default(),
|
||||
})],
|
||||
value: Box::new(value.clone()),
|
||||
type_comment: None,
|
||||
range: TextRange::default(),
|
||||
});
|
||||
generator.stmt(&stmt)
|
||||
|
|
|
@ -286,7 +286,6 @@ fn generate_fix(
|
|||
range: TextRange::default(),
|
||||
})],
|
||||
value: Box::new(exc_arg.clone()),
|
||||
type_comment: None,
|
||||
range: TextRange::default(),
|
||||
});
|
||||
|
||||
|
|
|
@ -566,7 +566,6 @@ fn ternary(target_var: &Expr, body_value: &Expr, test: &Expr, orelse_value: &Exp
|
|||
let node1 = ast::StmtAssign {
|
||||
targets: vec![target_var.clone()],
|
||||
value: Box::new(node.into()),
|
||||
type_comment: None,
|
||||
range: TextRange::default(),
|
||||
};
|
||||
node1.into()
|
||||
|
@ -957,7 +956,6 @@ pub(crate) fn use_dict_get_with_default(checker: &mut Checker, stmt_if: &StmtIf)
|
|||
let node5 = ast::StmtAssign {
|
||||
targets: vec![node4],
|
||||
value: Box::new(node3.into()),
|
||||
type_comment: None,
|
||||
range: TextRange::default(),
|
||||
};
|
||||
let contents = checker.generator().stmt(&node5.into());
|
||||
|
|
|
@ -229,7 +229,6 @@ fn function(
|
|||
decorator_list: vec![],
|
||||
returns: Some(Box::new(return_type)),
|
||||
type_params: vec![],
|
||||
type_comment: None,
|
||||
range: TextRange::default(),
|
||||
});
|
||||
return generator.stmt(&func);
|
||||
|
@ -242,7 +241,6 @@ fn function(
|
|||
decorator_list: vec![],
|
||||
returns: None,
|
||||
type_params: vec![],
|
||||
type_comment: None,
|
||||
range: TextRange::default(),
|
||||
});
|
||||
generator.stmt(&func)
|
||||
|
|
|
@ -566,24 +566,14 @@ impl<'stmt> BasicBlocksBuilder<'stmt> {
|
|||
let _ = (body, handlers, orelse, finalbody); // Silence unused code warnings.
|
||||
self.unconditional_next_block(after)
|
||||
}
|
||||
Stmt::With(StmtWith {
|
||||
items,
|
||||
body,
|
||||
type_comment,
|
||||
..
|
||||
})
|
||||
| Stmt::AsyncWith(StmtAsyncWith {
|
||||
items,
|
||||
body,
|
||||
type_comment,
|
||||
..
|
||||
}) => {
|
||||
Stmt::With(StmtWith { items, body, .. })
|
||||
| Stmt::AsyncWith(StmtAsyncWith { items, body, .. }) => {
|
||||
// TODO: handle `with` statements, see
|
||||
// <https://docs.python.org/3/reference/compound_stmts.html#the-with-statement>.
|
||||
// I recommend to `try` statements first as `with` can desugar
|
||||
// to a `try` statement.
|
||||
// For now we'll skip over it.
|
||||
let _ = (items, body, type_comment); // Silence unused code warnings.
|
||||
let _ = (items, body); // Silence unused code warnings.
|
||||
self.unconditional_next_block(after)
|
||||
}
|
||||
Stmt::Match(StmtMatch { subject, cases, .. }) => {
|
||||
|
|
|
@ -376,7 +376,6 @@ impl<'a> From<&'a Box<ast::Arg>> for ComparableArg<'a> {
|
|||
pub struct ComparableArg<'a> {
|
||||
arg: &'a str,
|
||||
annotation: Option<Box<ComparableExpr<'a>>>,
|
||||
type_comment: Option<&'a str>,
|
||||
}
|
||||
|
||||
impl<'a> From<&'a ast::Arg> for ComparableArg<'a> {
|
||||
|
@ -384,7 +383,6 @@ impl<'a> From<&'a ast::Arg> for ComparableArg<'a> {
|
|||
Self {
|
||||
arg: arg.arg.as_str(),
|
||||
annotation: arg.annotation.as_ref().map(Into::into),
|
||||
type_comment: arg.type_comment.as_deref(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -955,7 +953,6 @@ pub struct StmtFunctionDef<'a> {
|
|||
decorator_list: Vec<ComparableDecorator<'a>>,
|
||||
type_params: Vec<ComparableTypeParam<'a>>,
|
||||
returns: Option<ComparableExpr<'a>>,
|
||||
type_comment: Option<&'a str>,
|
||||
}
|
||||
|
||||
#[derive(Debug, PartialEq, Eq, Hash)]
|
||||
|
@ -966,7 +963,6 @@ pub struct StmtAsyncFunctionDef<'a> {
|
|||
decorator_list: Vec<ComparableDecorator<'a>>,
|
||||
type_params: Vec<ComparableTypeParam<'a>>,
|
||||
returns: Option<ComparableExpr<'a>>,
|
||||
type_comment: Option<&'a str>,
|
||||
}
|
||||
|
||||
#[derive(Debug, PartialEq, Eq, Hash)]
|
||||
|
@ -1048,7 +1044,6 @@ pub struct TypeParamTypeVarTuple<'a> {
|
|||
pub struct StmtAssign<'a> {
|
||||
targets: Vec<ComparableExpr<'a>>,
|
||||
value: ComparableExpr<'a>,
|
||||
type_comment: Option<&'a str>,
|
||||
}
|
||||
|
||||
#[derive(Debug, PartialEq, Eq, Hash)]
|
||||
|
@ -1072,7 +1067,6 @@ pub struct StmtFor<'a> {
|
|||
iter: ComparableExpr<'a>,
|
||||
body: Vec<ComparableStmt<'a>>,
|
||||
orelse: Vec<ComparableStmt<'a>>,
|
||||
type_comment: Option<&'a str>,
|
||||
}
|
||||
|
||||
#[derive(Debug, PartialEq, Eq, Hash)]
|
||||
|
@ -1081,7 +1075,6 @@ pub struct StmtAsyncFor<'a> {
|
|||
iter: ComparableExpr<'a>,
|
||||
body: Vec<ComparableStmt<'a>>,
|
||||
orelse: Vec<ComparableStmt<'a>>,
|
||||
type_comment: Option<&'a str>,
|
||||
}
|
||||
|
||||
#[derive(Debug, PartialEq, Eq, Hash)]
|
||||
|
@ -1102,14 +1095,12 @@ pub struct StmtIf<'a> {
|
|||
pub struct StmtWith<'a> {
|
||||
items: Vec<ComparableWithItem<'a>>,
|
||||
body: Vec<ComparableStmt<'a>>,
|
||||
type_comment: Option<&'a str>,
|
||||
}
|
||||
|
||||
#[derive(Debug, PartialEq, Eq, Hash)]
|
||||
pub struct StmtAsyncWith<'a> {
|
||||
items: Vec<ComparableWithItem<'a>>,
|
||||
body: Vec<ComparableStmt<'a>>,
|
||||
type_comment: Option<&'a str>,
|
||||
}
|
||||
|
||||
#[derive(Debug, PartialEq, Eq, Hash)]
|
||||
|
@ -1221,7 +1212,6 @@ impl<'a> From<&'a ast::Stmt> for ComparableStmt<'a> {
|
|||
body,
|
||||
decorator_list,
|
||||
returns,
|
||||
type_comment,
|
||||
type_params,
|
||||
range: _range,
|
||||
}) => Self::FunctionDef(StmtFunctionDef {
|
||||
|
@ -1230,7 +1220,6 @@ impl<'a> From<&'a ast::Stmt> for ComparableStmt<'a> {
|
|||
body: body.iter().map(Into::into).collect(),
|
||||
decorator_list: decorator_list.iter().map(Into::into).collect(),
|
||||
returns: returns.as_ref().map(Into::into),
|
||||
type_comment: type_comment.as_ref().map(String::as_str),
|
||||
type_params: type_params.iter().map(Into::into).collect(),
|
||||
}),
|
||||
ast::Stmt::AsyncFunctionDef(ast::StmtAsyncFunctionDef {
|
||||
|
@ -1239,7 +1228,6 @@ impl<'a> From<&'a ast::Stmt> for ComparableStmt<'a> {
|
|||
body,
|
||||
decorator_list,
|
||||
returns,
|
||||
type_comment,
|
||||
type_params,
|
||||
range: _range,
|
||||
}) => Self::AsyncFunctionDef(StmtAsyncFunctionDef {
|
||||
|
@ -1248,7 +1236,6 @@ impl<'a> From<&'a ast::Stmt> for ComparableStmt<'a> {
|
|||
body: body.iter().map(Into::into).collect(),
|
||||
decorator_list: decorator_list.iter().map(Into::into).collect(),
|
||||
returns: returns.as_ref().map(Into::into),
|
||||
type_comment: type_comment.as_ref().map(String::as_str),
|
||||
type_params: type_params.iter().map(Into::into).collect(),
|
||||
}),
|
||||
ast::Stmt::ClassDef(ast::StmtClassDef {
|
||||
|
@ -1292,12 +1279,10 @@ impl<'a> From<&'a ast::Stmt> for ComparableStmt<'a> {
|
|||
ast::Stmt::Assign(ast::StmtAssign {
|
||||
targets,
|
||||
value,
|
||||
type_comment,
|
||||
range: _range,
|
||||
}) => Self::Assign(StmtAssign {
|
||||
targets: targets.iter().map(Into::into).collect(),
|
||||
value: value.into(),
|
||||
type_comment: type_comment.as_ref().map(String::as_str),
|
||||
}),
|
||||
ast::Stmt::AugAssign(ast::StmtAugAssign {
|
||||
target,
|
||||
|
@ -1326,28 +1311,24 @@ impl<'a> From<&'a ast::Stmt> for ComparableStmt<'a> {
|
|||
iter,
|
||||
body,
|
||||
orelse,
|
||||
type_comment,
|
||||
range: _range,
|
||||
}) => Self::For(StmtFor {
|
||||
target: target.into(),
|
||||
iter: iter.into(),
|
||||
body: body.iter().map(Into::into).collect(),
|
||||
orelse: orelse.iter().map(Into::into).collect(),
|
||||
type_comment: type_comment.as_ref().map(String::as_str),
|
||||
}),
|
||||
ast::Stmt::AsyncFor(ast::StmtAsyncFor {
|
||||
target,
|
||||
iter,
|
||||
body,
|
||||
orelse,
|
||||
type_comment,
|
||||
range: _range,
|
||||
}) => Self::AsyncFor(StmtAsyncFor {
|
||||
target: target.into(),
|
||||
iter: iter.into(),
|
||||
body: body.iter().map(Into::into).collect(),
|
||||
orelse: orelse.iter().map(Into::into).collect(),
|
||||
type_comment: type_comment.as_ref().map(String::as_str),
|
||||
}),
|
||||
ast::Stmt::While(ast::StmtWhile {
|
||||
test,
|
||||
|
@ -1372,22 +1353,18 @@ impl<'a> From<&'a ast::Stmt> for ComparableStmt<'a> {
|
|||
ast::Stmt::With(ast::StmtWith {
|
||||
items,
|
||||
body,
|
||||
type_comment,
|
||||
range: _range,
|
||||
}) => Self::With(StmtWith {
|
||||
items: items.iter().map(Into::into).collect(),
|
||||
body: body.iter().map(Into::into).collect(),
|
||||
type_comment: type_comment.as_ref().map(String::as_str),
|
||||
}),
|
||||
ast::Stmt::AsyncWith(ast::StmtAsyncWith {
|
||||
items,
|
||||
body,
|
||||
type_comment,
|
||||
range: _range,
|
||||
}) => Self::AsyncWith(StmtAsyncWith {
|
||||
items: items.iter().map(Into::into).collect(),
|
||||
body: body.iter().map(Into::into).collect(),
|
||||
type_comment: type_comment.as_ref().map(String::as_str),
|
||||
}),
|
||||
ast::Stmt::Match(ast::StmtMatch {
|
||||
subject,
|
||||
|
|
|
@ -79,13 +79,6 @@ impl<'a> AnyFunctionDefinition<'a> {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn type_comments(self) -> Option<&'a str> {
|
||||
match self {
|
||||
Self::FunctionDefinition(definition) => definition.type_comment.as_deref(),
|
||||
Self::AsyncFunctionDefinition(definition) => definition.type_comment.as_deref(),
|
||||
}
|
||||
}
|
||||
|
||||
/// Returns `true` if this is [`Self::AsyncFunctionDefinition`]
|
||||
pub const fn is_async(self) -> bool {
|
||||
matches!(self, Self::AsyncFunctionDefinition(_))
|
||||
|
|
|
@ -156,7 +156,6 @@ pub struct StmtFunctionDef {
|
|||
pub decorator_list: Vec<Decorator>,
|
||||
pub returns: Option<Box<Expr>>,
|
||||
pub type_params: Vec<TypeParam>,
|
||||
pub type_comment: Option<String>,
|
||||
}
|
||||
|
||||
impl From<StmtFunctionDef> for Stmt {
|
||||
|
@ -175,7 +174,6 @@ pub struct StmtAsyncFunctionDef {
|
|||
pub decorator_list: Vec<Decorator>,
|
||||
pub returns: Option<Box<Expr>>,
|
||||
pub type_params: Vec<TypeParam>,
|
||||
pub type_comment: Option<String>,
|
||||
}
|
||||
|
||||
impl From<StmtAsyncFunctionDef> for Stmt {
|
||||
|
@ -249,7 +247,6 @@ pub struct StmtAssign {
|
|||
pub range: TextRange,
|
||||
pub targets: Vec<Expr>,
|
||||
pub value: Box<Expr>,
|
||||
pub type_comment: Option<String>,
|
||||
}
|
||||
|
||||
impl From<StmtAssign> for Stmt {
|
||||
|
@ -297,7 +294,6 @@ pub struct StmtFor {
|
|||
pub iter: Box<Expr>,
|
||||
pub body: Vec<Stmt>,
|
||||
pub orelse: Vec<Stmt>,
|
||||
pub type_comment: Option<String>,
|
||||
}
|
||||
|
||||
impl From<StmtFor> for Stmt {
|
||||
|
@ -314,7 +310,6 @@ pub struct StmtAsyncFor {
|
|||
pub iter: Box<Expr>,
|
||||
pub body: Vec<Stmt>,
|
||||
pub orelse: Vec<Stmt>,
|
||||
pub type_comment: Option<String>,
|
||||
}
|
||||
|
||||
impl From<StmtAsyncFor> for Stmt {
|
||||
|
@ -366,7 +361,6 @@ pub struct StmtWith {
|
|||
pub range: TextRange,
|
||||
pub items: Vec<WithItem>,
|
||||
pub body: Vec<Stmt>,
|
||||
pub type_comment: Option<String>,
|
||||
}
|
||||
|
||||
impl From<StmtWith> for Stmt {
|
||||
|
@ -381,7 +375,6 @@ pub struct StmtAsyncWith {
|
|||
pub range: TextRange,
|
||||
pub items: Vec<WithItem>,
|
||||
pub body: Vec<Stmt>,
|
||||
pub type_comment: Option<String>,
|
||||
}
|
||||
|
||||
impl From<StmtAsyncWith> for Stmt {
|
||||
|
@ -1877,7 +1870,6 @@ pub struct Arg {
|
|||
pub range: TextRange,
|
||||
pub arg: Identifier,
|
||||
pub annotation: Option<Box<Expr>>,
|
||||
pub type_comment: Option<String>,
|
||||
}
|
||||
|
||||
/// See also [keyword](https://docs.python.org/3/library/ast.html#ast.keyword)
|
||||
|
@ -3019,6 +3011,9 @@ mod size_assertions {
|
|||
use static_assertions::assert_eq_size;
|
||||
|
||||
assert_eq_size!(Stmt, [u8; 168]);
|
||||
assert_eq_size!(StmtFunctionDef, [u8; 128]);
|
||||
assert_eq_size!(StmtClassDef, [u8; 160]);
|
||||
assert_eq_size!(StmtTry, [u8; 104]);
|
||||
assert_eq_size!(Expr, [u8; 80]);
|
||||
assert_eq_size!(Constant, [u8; 32]);
|
||||
assert_eq_size!(Pattern, [u8; 96]);
|
||||
|
|
|
@ -239,7 +239,6 @@ where
|
|||
targets,
|
||||
value,
|
||||
range: _,
|
||||
type_comment: _,
|
||||
}) => {
|
||||
for expr in targets {
|
||||
visitor.visit_expr(expr);
|
||||
|
@ -320,13 +319,11 @@ where
|
|||
Stmt::With(ast::StmtWith {
|
||||
items,
|
||||
body,
|
||||
type_comment: _,
|
||||
range: _,
|
||||
})
|
||||
| Stmt::AsyncWith(ast::StmtAsyncWith {
|
||||
items,
|
||||
body,
|
||||
type_comment: _,
|
||||
range: _,
|
||||
}) => {
|
||||
for with_item in items {
|
||||
|
|
|
@ -12,7 +12,6 @@ impl FormatNodeRule<Arg> for FormatArg {
|
|||
range: _,
|
||||
arg,
|
||||
annotation,
|
||||
type_comment: _,
|
||||
} = item;
|
||||
|
||||
arg.format().fmt(f)?;
|
||||
|
|
|
@ -17,7 +17,6 @@ impl FormatNodeRule<StmtAssign> for FormatStmtAssign {
|
|||
range: _,
|
||||
targets,
|
||||
value,
|
||||
type_comment: _,
|
||||
} = item;
|
||||
|
||||
let (first, rest) = targets.split_first().ok_or(FormatError::syntax_error(
|
||||
|
|
|
@ -124,7 +124,7 @@ ExpressionStatement: ast::Stmt = {
|
|||
}
|
||||
|
||||
ast::Stmt::Assign(
|
||||
ast::StmtAssign { targets, value, type_comment: None, range: (location..end_location).into() }
|
||||
ast::StmtAssign { targets, value, range: (location..end_location).into() }
|
||||
)
|
||||
}
|
||||
},
|
||||
|
@ -859,11 +859,10 @@ ForStatement: ast::Stmt = {
|
|||
.end();
|
||||
let target = Box::new(set_context(target, ast::ExprContext::Store));
|
||||
let iter = Box::new(iter);
|
||||
let type_comment = None;
|
||||
if is_async.is_some() {
|
||||
ast::Stmt::AsyncFor(ast::StmtAsyncFor { target, iter, body, orelse, type_comment, range: (location..end_location).into() })
|
||||
ast::Stmt::AsyncFor(ast::StmtAsyncFor { target, iter, body, orelse, range: (location..end_location).into() })
|
||||
} else {
|
||||
ast::Stmt::For(ast::StmtFor { target, iter, body, orelse, type_comment, range: (location..end_location).into() })
|
||||
ast::Stmt::For(ast::StmtFor { target, iter, body, orelse, range: (location..end_location).into() })
|
||||
}
|
||||
},
|
||||
};
|
||||
|
@ -977,11 +976,10 @@ ExceptClause: ast::ExceptHandler = {
|
|||
WithStatement: ast::Stmt = {
|
||||
<location:@L> <is_async:"async"?> "with" <items:WithItems> ":" <body:Suite> => {
|
||||
let end_location = body.last().unwrap().end();
|
||||
let type_comment = None;
|
||||
if is_async.is_some() {
|
||||
ast::StmtAsyncWith { items, body, type_comment, range: (location..end_location).into() }.into()
|
||||
ast::StmtAsyncWith { items, body, range: (location..end_location).into() }.into()
|
||||
} else {
|
||||
ast::StmtWith { items, body, type_comment, range: (location..end_location).into() }.into()
|
||||
ast::StmtWith { items, body, range: (location..end_location).into() }.into()
|
||||
}
|
||||
},
|
||||
};
|
||||
|
@ -1017,11 +1015,10 @@ FuncDef: ast::Stmt = {
|
|||
let args = Box::new(args);
|
||||
let returns = r.map(Box::new);
|
||||
let end_location = body.last().unwrap().end();
|
||||
let type_comment = None;
|
||||
if is_async.is_some() {
|
||||
ast::StmtAsyncFunctionDef { name, args, body, decorator_list, returns, type_comment, type_params: type_params.unwrap_or_default(), range: (location..end_location).into() }.into()
|
||||
ast::StmtAsyncFunctionDef { name, args, body, decorator_list, returns, type_params: type_params.unwrap_or_default(), range: (location..end_location).into() }.into()
|
||||
} else {
|
||||
ast::StmtFunctionDef { name, args, body, decorator_list, returns, type_comment, type_params: type_params.unwrap_or_default(), range: (location..end_location).into() }.into()
|
||||
ast::StmtFunctionDef { name, args, body, decorator_list, returns, type_params: type_params.unwrap_or_default(), range: (location..end_location).into() }.into()
|
||||
}
|
||||
},
|
||||
};
|
||||
|
@ -1142,18 +1139,18 @@ ParameterDef<ArgType>: ast::ArgWithDefault = {
|
|||
|
||||
UntypedParameter: ast::ArgWithDefault = {
|
||||
<location:@L> <arg:Identifier> <end_location:@R> => {
|
||||
let def = ast::Arg { arg, annotation: None, type_comment: None, range: (location..end_location).into() };
|
||||
let def = ast::Arg { arg, annotation: None, range: (location..end_location).into() };
|
||||
ast::ArgWithDefault { def, default: None, range: (location..end_location).into() }
|
||||
},
|
||||
};
|
||||
StarUntypedParameter: ast::Arg = {
|
||||
<location:@L> <arg:Identifier> <end_location:@R> => ast::Arg { arg, annotation: None, type_comment: None, range: (location..end_location).into() },
|
||||
<location:@L> <arg:Identifier> <end_location:@R> => ast::Arg { arg, annotation: None, range: (location..end_location).into() },
|
||||
};
|
||||
|
||||
TypedParameter: ast::ArgWithDefault = {
|
||||
<location:@L> <arg:Identifier> <a:(":" <Test<"all">>)?> <end_location:@R> => {
|
||||
let annotation = a.map(Box::new);
|
||||
let def = ast::Arg { arg, annotation, type_comment: None, range: (location..end_location).into() };
|
||||
let def = ast::Arg { arg, annotation, range: (location..end_location).into() };
|
||||
ast::ArgWithDefault { def, default: None, range: (location..end_location).into() }
|
||||
},
|
||||
};
|
||||
|
@ -1161,14 +1158,14 @@ TypedParameter: ast::ArgWithDefault = {
|
|||
StarTypedParameter: ast::Arg = {
|
||||
<location:@L> <arg:Identifier> <a:(":" <TestOrStarExpr>)?> <end_location:@R> => {
|
||||
let annotation = a.map(Box::new);
|
||||
ast::Arg { arg, annotation, type_comment: None, range: (location..end_location).into() }
|
||||
ast::Arg { arg, annotation, range: (location..end_location).into() }
|
||||
},
|
||||
};
|
||||
|
||||
DoubleStarTypedParameter: ast::Arg = {
|
||||
<location:@L> <arg:Identifier> <a:(":" <Test<"all">>)?> <end_location:@R> => {
|
||||
let annotation = a.map(Box::new);
|
||||
ast::Arg { arg, annotation, type_comment: None, range: (location..end_location).into() }
|
||||
ast::Arg { arg, annotation, range: (location..end_location).into() }
|
||||
},
|
||||
};
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// auto-generated: "lalrpop 0.20.0"
|
||||
// sha3: 76f8cd8ac95bef60488dc5962346273abca535cd4aa194edd11cda998a4b211e
|
||||
// sha3: 7e5118fcea23da57b78e42a0fed09f9d25e7a69899989bcf3ed7fe2b0565feb4
|
||||
use num_bigint::BigInt;
|
||||
use ruff_text_size::TextSize;
|
||||
use ruff_python_ast::{self as ast, Ranged, MagicKind};
|
||||
|
@ -31124,7 +31124,7 @@ fn __action26<
|
|||
}
|
||||
|
||||
ast::Stmt::Assign(
|
||||
ast::StmtAssign { targets, value, type_comment: None, range: (location..end_location).into() }
|
||||
ast::StmtAssign { targets, value, range: (location..end_location).into() }
|
||||
)
|
||||
}
|
||||
}
|
||||
|
@ -33195,11 +33195,10 @@ fn __action148<
|
|||
.end();
|
||||
let target = Box::new(set_context(target, ast::ExprContext::Store));
|
||||
let iter = Box::new(iter);
|
||||
let type_comment = None;
|
||||
if is_async.is_some() {
|
||||
ast::Stmt::AsyncFor(ast::StmtAsyncFor { target, iter, body, orelse, type_comment, range: (location..end_location).into() })
|
||||
ast::Stmt::AsyncFor(ast::StmtAsyncFor { target, iter, body, orelse, range: (location..end_location).into() })
|
||||
} else {
|
||||
ast::Stmt::For(ast::StmtFor { target, iter, body, orelse, type_comment, range: (location..end_location).into() })
|
||||
ast::Stmt::For(ast::StmtFor { target, iter, body, orelse, range: (location..end_location).into() })
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -33421,11 +33420,10 @@ fn __action156<
|
|||
{
|
||||
{
|
||||
let end_location = body.last().unwrap().end();
|
||||
let type_comment = None;
|
||||
if is_async.is_some() {
|
||||
ast::StmtAsyncWith { items, body, type_comment, range: (location..end_location).into() }.into()
|
||||
ast::StmtAsyncWith { items, body, range: (location..end_location).into() }.into()
|
||||
} else {
|
||||
ast::StmtWith { items, body, type_comment, range: (location..end_location).into() }.into()
|
||||
ast::StmtWith { items, body, range: (location..end_location).into() }.into()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -33523,11 +33521,10 @@ fn __action162<
|
|||
let args = Box::new(args);
|
||||
let returns = r.map(Box::new);
|
||||
let end_location = body.last().unwrap().end();
|
||||
let type_comment = None;
|
||||
if is_async.is_some() {
|
||||
ast::StmtAsyncFunctionDef { name, args, body, decorator_list, returns, type_comment, type_params: type_params.unwrap_or_default(), range: (location..end_location).into() }.into()
|
||||
ast::StmtAsyncFunctionDef { name, args, body, decorator_list, returns, type_params: type_params.unwrap_or_default(), range: (location..end_location).into() }.into()
|
||||
} else {
|
||||
ast::StmtFunctionDef { name, args, body, decorator_list, returns, type_comment, type_params: type_params.unwrap_or_default(), range: (location..end_location).into() }.into()
|
||||
ast::StmtFunctionDef { name, args, body, decorator_list, returns, type_params: type_params.unwrap_or_default(), range: (location..end_location).into() }.into()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -33610,7 +33607,7 @@ fn __action166<
|
|||
) -> ast::ArgWithDefault
|
||||
{
|
||||
{
|
||||
let def = ast::Arg { arg, annotation: None, type_comment: None, range: (location..end_location).into() };
|
||||
let def = ast::Arg { arg, annotation: None, range: (location..end_location).into() };
|
||||
ast::ArgWithDefault { def, default: None, range: (location..end_location).into() }
|
||||
}
|
||||
}
|
||||
|
@ -33625,7 +33622,7 @@ fn __action167<
|
|||
(_, end_location, _): (TextSize, TextSize, TextSize),
|
||||
) -> ast::Arg
|
||||
{
|
||||
ast::Arg { arg, annotation: None, type_comment: None, range: (location..end_location).into() }
|
||||
ast::Arg { arg, annotation: None, range: (location..end_location).into() }
|
||||
}
|
||||
|
||||
#[allow(unused_variables)]
|
||||
|
@ -33641,7 +33638,7 @@ fn __action168<
|
|||
{
|
||||
{
|
||||
let annotation = a.map(Box::new);
|
||||
let def = ast::Arg { arg, annotation, type_comment: None, range: (location..end_location).into() };
|
||||
let def = ast::Arg { arg, annotation, range: (location..end_location).into() };
|
||||
ast::ArgWithDefault { def, default: None, range: (location..end_location).into() }
|
||||
}
|
||||
}
|
||||
|
@ -33659,7 +33656,7 @@ fn __action169<
|
|||
{
|
||||
{
|
||||
let annotation = a.map(Box::new);
|
||||
ast::Arg { arg, annotation, type_comment: None, range: (location..end_location).into() }
|
||||
ast::Arg { arg, annotation, range: (location..end_location).into() }
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -33676,7 +33673,7 @@ fn __action170<
|
|||
{
|
||||
{
|
||||
let annotation = a.map(Box::new);
|
||||
ast::Arg { arg, annotation, type_comment: None, range: (location..end_location).into() }
|
||||
ast::Arg { arg, annotation, range: (location..end_location).into() }
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -60,7 +60,6 @@ expression: parse_ast
|
|||
ctx: Load,
|
||||
},
|
||||
),
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
]
|
||||
|
|
|
@ -56,7 +56,6 @@ expression: parse_ast
|
|||
),
|
||||
],
|
||||
orelse: [],
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
]
|
||||
|
|
|
@ -65,7 +65,6 @@ expression: parse_ast
|
|||
ctx: Load,
|
||||
},
|
||||
),
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
]
|
||||
|
|
|
@ -76,7 +76,6 @@ expression: parse_ast
|
|||
],
|
||||
},
|
||||
),
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
]
|
||||
|
|
|
@ -50,7 +50,6 @@ expression: parse_ast
|
|||
ctx: Load,
|
||||
},
|
||||
),
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
]
|
||||
|
|
|
@ -76,7 +76,6 @@ expression: parse_ast
|
|||
],
|
||||
},
|
||||
),
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
]
|
||||
|
|
|
@ -71,7 +71,6 @@ expression: parse_ast
|
|||
ctx: Load,
|
||||
},
|
||||
),
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
]
|
||||
|
|
|
@ -63,7 +63,6 @@ expression: parse_ast
|
|||
ctx: Load,
|
||||
},
|
||||
),
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
]
|
||||
|
|
|
@ -65,7 +65,6 @@ expression: parse_ast
|
|||
ctx: Load,
|
||||
},
|
||||
),
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
]
|
||||
|
|
|
@ -36,7 +36,6 @@ expression: parse_ast
|
|||
},
|
||||
),
|
||||
],
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
]
|
||||
|
|
|
@ -26,7 +26,6 @@ Ok(
|
|||
range: 9..10,
|
||||
},
|
||||
annotation: None,
|
||||
type_comment: None,
|
||||
},
|
||||
default: None,
|
||||
},
|
||||
|
@ -39,7 +38,6 @@ Ok(
|
|||
range: 12..13,
|
||||
},
|
||||
annotation: None,
|
||||
type_comment: None,
|
||||
},
|
||||
default: None,
|
||||
},
|
||||
|
@ -52,7 +50,6 @@ Ok(
|
|||
range: 15..16,
|
||||
},
|
||||
annotation: None,
|
||||
type_comment: None,
|
||||
},
|
||||
default: None,
|
||||
},
|
||||
|
@ -69,7 +66,6 @@ Ok(
|
|||
decorator_list: [],
|
||||
returns: None,
|
||||
type_params: [],
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
],
|
||||
|
|
|
@ -26,7 +26,6 @@ Ok(
|
|||
range: 9..10,
|
||||
},
|
||||
annotation: None,
|
||||
type_comment: None,
|
||||
},
|
||||
default: None,
|
||||
},
|
||||
|
@ -39,7 +38,6 @@ Ok(
|
|||
range: 12..13,
|
||||
},
|
||||
annotation: None,
|
||||
type_comment: None,
|
||||
},
|
||||
default: Some(
|
||||
Constant(
|
||||
|
@ -62,7 +60,6 @@ Ok(
|
|||
range: 18..19,
|
||||
},
|
||||
annotation: None,
|
||||
type_comment: None,
|
||||
},
|
||||
default: Some(
|
||||
Constant(
|
||||
|
@ -89,7 +86,6 @@ Ok(
|
|||
decorator_list: [],
|
||||
returns: None,
|
||||
type_params: [],
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
],
|
||||
|
|
|
@ -29,7 +29,6 @@ Ok(
|
|||
decorator_list: [],
|
||||
returns: None,
|
||||
type_params: [],
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
],
|
||||
|
|
|
@ -29,7 +29,6 @@ Ok(
|
|||
decorator_list: [],
|
||||
returns: None,
|
||||
type_params: [],
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
],
|
||||
|
|
|
@ -24,7 +24,6 @@ Ok(
|
|||
range: 6..7,
|
||||
},
|
||||
annotation: None,
|
||||
type_comment: None,
|
||||
},
|
||||
default: None,
|
||||
},
|
||||
|
@ -37,7 +36,6 @@ Ok(
|
|||
range: 9..10,
|
||||
},
|
||||
annotation: None,
|
||||
type_comment: None,
|
||||
},
|
||||
default: None,
|
||||
},
|
||||
|
@ -50,7 +48,6 @@ Ok(
|
|||
range: 12..13,
|
||||
},
|
||||
annotation: None,
|
||||
type_comment: None,
|
||||
},
|
||||
default: None,
|
||||
},
|
||||
|
@ -66,7 +63,6 @@ Ok(
|
|||
range: 18..19,
|
||||
},
|
||||
annotation: None,
|
||||
type_comment: None,
|
||||
},
|
||||
default: None,
|
||||
},
|
||||
|
@ -79,7 +75,6 @@ Ok(
|
|||
range: 21..22,
|
||||
},
|
||||
annotation: None,
|
||||
type_comment: None,
|
||||
},
|
||||
default: None,
|
||||
},
|
||||
|
@ -92,7 +87,6 @@ Ok(
|
|||
range: 24..25,
|
||||
},
|
||||
annotation: None,
|
||||
type_comment: None,
|
||||
},
|
||||
default: None,
|
||||
},
|
||||
|
@ -109,7 +103,6 @@ Ok(
|
|||
decorator_list: [],
|
||||
returns: None,
|
||||
type_params: [],
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
],
|
||||
|
|
|
@ -24,7 +24,6 @@ Ok(
|
|||
range: 6..7,
|
||||
},
|
||||
annotation: None,
|
||||
type_comment: None,
|
||||
},
|
||||
default: None,
|
||||
},
|
||||
|
@ -37,7 +36,6 @@ Ok(
|
|||
range: 9..10,
|
||||
},
|
||||
annotation: None,
|
||||
type_comment: None,
|
||||
},
|
||||
default: None,
|
||||
},
|
||||
|
@ -50,7 +48,6 @@ Ok(
|
|||
range: 12..13,
|
||||
},
|
||||
annotation: None,
|
||||
type_comment: None,
|
||||
},
|
||||
default: None,
|
||||
},
|
||||
|
@ -66,7 +63,6 @@ Ok(
|
|||
range: 18..19,
|
||||
},
|
||||
annotation: None,
|
||||
type_comment: None,
|
||||
},
|
||||
default: None,
|
||||
},
|
||||
|
@ -79,7 +75,6 @@ Ok(
|
|||
range: 21..22,
|
||||
},
|
||||
annotation: None,
|
||||
type_comment: None,
|
||||
},
|
||||
default: Some(
|
||||
Constant(
|
||||
|
@ -102,7 +97,6 @@ Ok(
|
|||
range: 27..28,
|
||||
},
|
||||
annotation: None,
|
||||
type_comment: None,
|
||||
},
|
||||
default: Some(
|
||||
Constant(
|
||||
|
@ -129,7 +123,6 @@ Ok(
|
|||
decorator_list: [],
|
||||
returns: None,
|
||||
type_params: [],
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
],
|
||||
|
|
|
@ -24,7 +24,6 @@ Ok(
|
|||
range: 6..7,
|
||||
},
|
||||
annotation: None,
|
||||
type_comment: None,
|
||||
},
|
||||
default: None,
|
||||
},
|
||||
|
@ -37,7 +36,6 @@ Ok(
|
|||
range: 9..10,
|
||||
},
|
||||
annotation: None,
|
||||
type_comment: None,
|
||||
},
|
||||
default: None,
|
||||
},
|
||||
|
@ -50,7 +48,6 @@ Ok(
|
|||
range: 12..13,
|
||||
},
|
||||
annotation: None,
|
||||
type_comment: None,
|
||||
},
|
||||
default: None,
|
||||
},
|
||||
|
@ -63,7 +60,6 @@ Ok(
|
|||
range: 16..20,
|
||||
},
|
||||
annotation: None,
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
kwonlyargs: [
|
||||
|
@ -76,7 +72,6 @@ Ok(
|
|||
range: 22..23,
|
||||
},
|
||||
annotation: None,
|
||||
type_comment: None,
|
||||
},
|
||||
default: None,
|
||||
},
|
||||
|
@ -89,7 +84,6 @@ Ok(
|
|||
range: 25..26,
|
||||
},
|
||||
annotation: None,
|
||||
type_comment: None,
|
||||
},
|
||||
default: Some(
|
||||
Constant(
|
||||
|
@ -112,7 +106,6 @@ Ok(
|
|||
range: 31..32,
|
||||
},
|
||||
annotation: None,
|
||||
type_comment: None,
|
||||
},
|
||||
default: Some(
|
||||
Constant(
|
||||
|
@ -139,7 +132,6 @@ Ok(
|
|||
decorator_list: [],
|
||||
returns: None,
|
||||
type_params: [],
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
],
|
||||
|
|
|
@ -24,7 +24,6 @@ Ok(
|
|||
range: 6..7,
|
||||
},
|
||||
annotation: None,
|
||||
type_comment: None,
|
||||
},
|
||||
default: None,
|
||||
},
|
||||
|
@ -37,7 +36,6 @@ Ok(
|
|||
range: 9..10,
|
||||
},
|
||||
annotation: None,
|
||||
type_comment: None,
|
||||
},
|
||||
default: None,
|
||||
},
|
||||
|
@ -50,7 +48,6 @@ Ok(
|
|||
range: 12..13,
|
||||
},
|
||||
annotation: None,
|
||||
type_comment: None,
|
||||
},
|
||||
default: None,
|
||||
},
|
||||
|
@ -63,7 +60,6 @@ Ok(
|
|||
range: 16..20,
|
||||
},
|
||||
annotation: None,
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
kwonlyargs: [
|
||||
|
@ -76,7 +72,6 @@ Ok(
|
|||
range: 22..23,
|
||||
},
|
||||
annotation: None,
|
||||
type_comment: None,
|
||||
},
|
||||
default: None,
|
||||
},
|
||||
|
@ -89,7 +84,6 @@ Ok(
|
|||
range: 25..26,
|
||||
},
|
||||
annotation: None,
|
||||
type_comment: None,
|
||||
},
|
||||
default: Some(
|
||||
Constant(
|
||||
|
@ -112,7 +106,6 @@ Ok(
|
|||
range: 31..32,
|
||||
},
|
||||
annotation: None,
|
||||
type_comment: None,
|
||||
},
|
||||
default: Some(
|
||||
Constant(
|
||||
|
@ -135,7 +128,6 @@ Ok(
|
|||
range: 39..45,
|
||||
},
|
||||
annotation: None,
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
},
|
||||
|
@ -149,7 +141,6 @@ Ok(
|
|||
decorator_list: [],
|
||||
returns: None,
|
||||
type_params: [],
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
],
|
||||
|
|
|
@ -24,7 +24,6 @@ Ok(
|
|||
range: 6..7,
|
||||
},
|
||||
annotation: None,
|
||||
type_comment: None,
|
||||
},
|
||||
default: None,
|
||||
},
|
||||
|
@ -37,7 +36,6 @@ Ok(
|
|||
range: 9..10,
|
||||
},
|
||||
annotation: None,
|
||||
type_comment: None,
|
||||
},
|
||||
default: None,
|
||||
},
|
||||
|
@ -50,7 +48,6 @@ Ok(
|
|||
range: 12..13,
|
||||
},
|
||||
annotation: None,
|
||||
type_comment: None,
|
||||
},
|
||||
default: None,
|
||||
},
|
||||
|
@ -69,7 +66,6 @@ Ok(
|
|||
decorator_list: [],
|
||||
returns: None,
|
||||
type_params: [],
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
],
|
||||
|
|
|
@ -24,7 +24,6 @@ Ok(
|
|||
range: 6..7,
|
||||
},
|
||||
annotation: None,
|
||||
type_comment: None,
|
||||
},
|
||||
default: None,
|
||||
},
|
||||
|
@ -37,7 +36,6 @@ Ok(
|
|||
range: 9..10,
|
||||
},
|
||||
annotation: None,
|
||||
type_comment: None,
|
||||
},
|
||||
default: Some(
|
||||
Constant(
|
||||
|
@ -60,7 +58,6 @@ Ok(
|
|||
range: 15..16,
|
||||
},
|
||||
annotation: None,
|
||||
type_comment: None,
|
||||
},
|
||||
default: Some(
|
||||
Constant(
|
||||
|
@ -89,7 +86,6 @@ Ok(
|
|||
decorator_list: [],
|
||||
returns: None,
|
||||
type_params: [],
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
],
|
||||
|
|
|
@ -24,7 +24,6 @@ Ok(
|
|||
range: 6..7,
|
||||
},
|
||||
annotation: None,
|
||||
type_comment: None,
|
||||
},
|
||||
default: None,
|
||||
},
|
||||
|
@ -37,7 +36,6 @@ Ok(
|
|||
range: 9..10,
|
||||
},
|
||||
annotation: None,
|
||||
type_comment: None,
|
||||
},
|
||||
default: None,
|
||||
},
|
||||
|
@ -50,7 +48,6 @@ Ok(
|
|||
range: 12..13,
|
||||
},
|
||||
annotation: None,
|
||||
type_comment: None,
|
||||
},
|
||||
default: None,
|
||||
},
|
||||
|
@ -69,7 +66,6 @@ Ok(
|
|||
decorator_list: [],
|
||||
returns: None,
|
||||
type_params: [],
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
],
|
||||
|
|
|
@ -25,7 +25,6 @@ Ok(
|
|||
range: 10..11,
|
||||
},
|
||||
annotation: None,
|
||||
type_comment: None,
|
||||
},
|
||||
default: None,
|
||||
},
|
||||
|
@ -38,7 +37,6 @@ Ok(
|
|||
range: 13..14,
|
||||
},
|
||||
annotation: None,
|
||||
type_comment: None,
|
||||
},
|
||||
default: None,
|
||||
},
|
||||
|
@ -51,7 +49,6 @@ Ok(
|
|||
range: 16..17,
|
||||
},
|
||||
annotation: None,
|
||||
type_comment: None,
|
||||
},
|
||||
default: None,
|
||||
},
|
||||
|
|
|
@ -25,7 +25,6 @@ Ok(
|
|||
range: 10..11,
|
||||
},
|
||||
annotation: None,
|
||||
type_comment: None,
|
||||
},
|
||||
default: None,
|
||||
},
|
||||
|
@ -38,7 +37,6 @@ Ok(
|
|||
range: 13..14,
|
||||
},
|
||||
annotation: None,
|
||||
type_comment: None,
|
||||
},
|
||||
default: Some(
|
||||
Constant(
|
||||
|
@ -61,7 +59,6 @@ Ok(
|
|||
range: 19..20,
|
||||
},
|
||||
annotation: None,
|
||||
type_comment: None,
|
||||
},
|
||||
default: Some(
|
||||
Constant(
|
||||
|
|
|
@ -23,7 +23,6 @@ Ok(
|
|||
range: 7..8,
|
||||
},
|
||||
annotation: None,
|
||||
type_comment: None,
|
||||
},
|
||||
default: None,
|
||||
},
|
||||
|
@ -36,7 +35,6 @@ Ok(
|
|||
range: 10..11,
|
||||
},
|
||||
annotation: None,
|
||||
type_comment: None,
|
||||
},
|
||||
default: None,
|
||||
},
|
||||
|
@ -49,7 +47,6 @@ Ok(
|
|||
range: 13..14,
|
||||
},
|
||||
annotation: None,
|
||||
type_comment: None,
|
||||
},
|
||||
default: None,
|
||||
},
|
||||
|
@ -65,7 +62,6 @@ Ok(
|
|||
range: 19..20,
|
||||
},
|
||||
annotation: None,
|
||||
type_comment: None,
|
||||
},
|
||||
default: None,
|
||||
},
|
||||
|
@ -78,7 +74,6 @@ Ok(
|
|||
range: 22..23,
|
||||
},
|
||||
annotation: None,
|
||||
type_comment: None,
|
||||
},
|
||||
default: None,
|
||||
},
|
||||
|
|
|
@ -23,7 +23,6 @@ Ok(
|
|||
range: 7..8,
|
||||
},
|
||||
annotation: None,
|
||||
type_comment: None,
|
||||
},
|
||||
default: None,
|
||||
},
|
||||
|
@ -36,7 +35,6 @@ Ok(
|
|||
range: 10..11,
|
||||
},
|
||||
annotation: None,
|
||||
type_comment: None,
|
||||
},
|
||||
default: None,
|
||||
},
|
||||
|
@ -49,7 +47,6 @@ Ok(
|
|||
range: 13..14,
|
||||
},
|
||||
annotation: None,
|
||||
type_comment: None,
|
||||
},
|
||||
default: None,
|
||||
},
|
||||
|
|
|
@ -23,7 +23,6 @@ Ok(
|
|||
range: 7..8,
|
||||
},
|
||||
annotation: None,
|
||||
type_comment: None,
|
||||
},
|
||||
default: None,
|
||||
},
|
||||
|
@ -36,7 +35,6 @@ Ok(
|
|||
range: 10..11,
|
||||
},
|
||||
annotation: None,
|
||||
type_comment: None,
|
||||
},
|
||||
default: Some(
|
||||
Constant(
|
||||
|
@ -59,7 +57,6 @@ Ok(
|
|||
range: 16..17,
|
||||
},
|
||||
annotation: None,
|
||||
type_comment: None,
|
||||
},
|
||||
default: Some(
|
||||
Constant(
|
||||
|
|
|
@ -39,7 +39,6 @@ expression: parse_ast
|
|||
],
|
||||
returns: None,
|
||||
type_params: [],
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
ClassDef(
|
||||
|
|
|
@ -173,7 +173,6 @@ Module(
|
|||
decorator_list: [],
|
||||
returns: None,
|
||||
type_params: [],
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
LineMagic(
|
||||
|
@ -241,7 +240,6 @@ Module(
|
|||
),
|
||||
],
|
||||
orelse: [],
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
Assign(
|
||||
|
@ -263,7 +261,6 @@ Module(
|
|||
value: "pwd",
|
||||
},
|
||||
),
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
AnnAssign(
|
||||
|
@ -314,7 +311,6 @@ Module(
|
|||
value: "foo bar",
|
||||
},
|
||||
),
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
LineMagic(
|
||||
|
@ -343,7 +339,6 @@ Module(
|
|||
value: "foo # comment",
|
||||
},
|
||||
),
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
],
|
||||
|
|
|
@ -285,7 +285,6 @@ expression: parse_ast
|
|||
kind: None,
|
||||
},
|
||||
),
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
],
|
||||
|
@ -364,7 +363,6 @@ expression: parse_ast
|
|||
kind: None,
|
||||
},
|
||||
),
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
],
|
||||
|
@ -429,7 +427,6 @@ expression: parse_ast
|
|||
kind: None,
|
||||
},
|
||||
),
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
],
|
||||
|
|
|
@ -722,7 +722,6 @@ expression: "ast::Suite::parse(source, \"<test>\").unwrap()"
|
|||
range: 598..603,
|
||||
},
|
||||
annotation: None,
|
||||
type_comment: None,
|
||||
},
|
||||
default: None,
|
||||
},
|
||||
|
@ -757,7 +756,6 @@ expression: "ast::Suite::parse(source, \"<test>\").unwrap()"
|
|||
),
|
||||
},
|
||||
),
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
Expr(
|
||||
|
|
|
@ -24,7 +24,6 @@ expression: "ast::Suite::parse(source, \"<test>\").unwrap()"
|
|||
kind: None,
|
||||
},
|
||||
),
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
Assign(
|
||||
|
@ -48,7 +47,6 @@ expression: "ast::Suite::parse(source, \"<test>\").unwrap()"
|
|||
kind: None,
|
||||
},
|
||||
),
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
Assign(
|
||||
|
@ -72,7 +70,6 @@ expression: "ast::Suite::parse(source, \"<test>\").unwrap()"
|
|||
kind: None,
|
||||
},
|
||||
),
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
Assign(
|
||||
|
@ -96,7 +93,6 @@ expression: "ast::Suite::parse(source, \"<test>\").unwrap()"
|
|||
kind: None,
|
||||
},
|
||||
),
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
Assign(
|
||||
|
@ -120,7 +116,6 @@ expression: "ast::Suite::parse(source, \"<test>\").unwrap()"
|
|||
kind: None,
|
||||
},
|
||||
),
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
Assign(
|
||||
|
@ -144,7 +139,6 @@ expression: "ast::Suite::parse(source, \"<test>\").unwrap()"
|
|||
kind: None,
|
||||
},
|
||||
),
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
Assign(
|
||||
|
@ -168,7 +162,6 @@ expression: "ast::Suite::parse(source, \"<test>\").unwrap()"
|
|||
kind: None,
|
||||
},
|
||||
),
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
Assign(
|
||||
|
@ -192,7 +185,6 @@ expression: "ast::Suite::parse(source, \"<test>\").unwrap()"
|
|||
kind: None,
|
||||
},
|
||||
),
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
Assign(
|
||||
|
@ -216,7 +208,6 @@ expression: "ast::Suite::parse(source, \"<test>\").unwrap()"
|
|||
kind: None,
|
||||
},
|
||||
),
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
Assign(
|
||||
|
@ -240,7 +231,6 @@ expression: "ast::Suite::parse(source, \"<test>\").unwrap()"
|
|||
kind: None,
|
||||
},
|
||||
),
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
Assign(
|
||||
|
@ -265,7 +255,6 @@ expression: "ast::Suite::parse(source, \"<test>\").unwrap()"
|
|||
kind: None,
|
||||
},
|
||||
),
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
Assign(
|
||||
|
@ -290,7 +279,6 @@ expression: "ast::Suite::parse(source, \"<test>\").unwrap()"
|
|||
kind: None,
|
||||
},
|
||||
),
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
Assign(
|
||||
|
@ -314,7 +302,6 @@ expression: "ast::Suite::parse(source, \"<test>\").unwrap()"
|
|||
kind: None,
|
||||
},
|
||||
),
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
Assign(
|
||||
|
@ -338,7 +325,6 @@ expression: "ast::Suite::parse(source, \"<test>\").unwrap()"
|
|||
kind: None,
|
||||
},
|
||||
),
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
Assign(
|
||||
|
@ -362,7 +348,6 @@ expression: "ast::Suite::parse(source, \"<test>\").unwrap()"
|
|||
kind: None,
|
||||
},
|
||||
),
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
Assign(
|
||||
|
@ -386,7 +371,6 @@ expression: "ast::Suite::parse(source, \"<test>\").unwrap()"
|
|||
kind: None,
|
||||
},
|
||||
),
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
Assign(
|
||||
|
@ -410,7 +394,6 @@ expression: "ast::Suite::parse(source, \"<test>\").unwrap()"
|
|||
kind: None,
|
||||
},
|
||||
),
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
Assign(
|
||||
|
@ -434,7 +417,6 @@ expression: "ast::Suite::parse(source, \"<test>\").unwrap()"
|
|||
kind: None,
|
||||
},
|
||||
),
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
]
|
||||
|
|
|
@ -41,7 +41,6 @@ expression: "ast::Suite::parse(source, \"<test>\").unwrap()"
|
|||
keywords: [],
|
||||
},
|
||||
),
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
Assign(
|
||||
|
@ -75,7 +74,6 @@ expression: "ast::Suite::parse(source, \"<test>\").unwrap()"
|
|||
ctx: Load,
|
||||
},
|
||||
),
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
Assign(
|
||||
|
@ -109,7 +107,6 @@ expression: "ast::Suite::parse(source, \"<test>\").unwrap()"
|
|||
ctx: Load,
|
||||
},
|
||||
),
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
Assign(
|
||||
|
@ -143,7 +140,6 @@ expression: "ast::Suite::parse(source, \"<test>\").unwrap()"
|
|||
ctx: Load,
|
||||
},
|
||||
),
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
Assign(
|
||||
|
@ -184,7 +180,6 @@ expression: "ast::Suite::parse(source, \"<test>\").unwrap()"
|
|||
keywords: [],
|
||||
},
|
||||
),
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
Assign(
|
||||
|
@ -218,7 +213,6 @@ expression: "ast::Suite::parse(source, \"<test>\").unwrap()"
|
|||
ctx: Load,
|
||||
},
|
||||
),
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
Assign(
|
||||
|
@ -259,7 +253,6 @@ expression: "ast::Suite::parse(source, \"<test>\").unwrap()"
|
|||
keywords: [],
|
||||
},
|
||||
),
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
Assign(
|
||||
|
@ -294,7 +287,6 @@ expression: "ast::Suite::parse(source, \"<test>\").unwrap()"
|
|||
ctx: Load,
|
||||
},
|
||||
),
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
Assign(
|
||||
|
@ -363,7 +355,6 @@ expression: "ast::Suite::parse(source, \"<test>\").unwrap()"
|
|||
keywords: [],
|
||||
},
|
||||
),
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
Assign(
|
||||
|
@ -404,7 +395,6 @@ expression: "ast::Suite::parse(source, \"<test>\").unwrap()"
|
|||
keywords: [],
|
||||
},
|
||||
),
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
Assign(
|
||||
|
@ -445,7 +435,6 @@ expression: "ast::Suite::parse(source, \"<test>\").unwrap()"
|
|||
keywords: [],
|
||||
},
|
||||
),
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
Assign(
|
||||
|
@ -479,7 +468,6 @@ expression: "ast::Suite::parse(source, \"<test>\").unwrap()"
|
|||
ctx: Load,
|
||||
},
|
||||
),
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
Assign(
|
||||
|
@ -520,7 +508,6 @@ expression: "ast::Suite::parse(source, \"<test>\").unwrap()"
|
|||
keywords: [],
|
||||
},
|
||||
),
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
Assign(
|
||||
|
@ -551,7 +538,6 @@ expression: "ast::Suite::parse(source, \"<test>\").unwrap()"
|
|||
),
|
||||
},
|
||||
),
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
If(
|
||||
|
@ -627,7 +613,6 @@ expression: "ast::Suite::parse(source, \"<test>\").unwrap()"
|
|||
ctx: Load,
|
||||
},
|
||||
),
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
Assign(
|
||||
|
@ -666,7 +651,6 @@ expression: "ast::Suite::parse(source, \"<test>\").unwrap()"
|
|||
keywords: [],
|
||||
},
|
||||
),
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
]
|
||||
|
|
|
@ -48,7 +48,6 @@ expression: "ast::Suite::parse(source, \"<test>\").unwrap()"
|
|||
range: 31..35,
|
||||
},
|
||||
annotation: None,
|
||||
type_comment: None,
|
||||
},
|
||||
default: None,
|
||||
},
|
||||
|
@ -67,7 +66,6 @@ expression: "ast::Suite::parse(source, \"<test>\").unwrap()"
|
|||
decorator_list: [],
|
||||
returns: None,
|
||||
type_params: [],
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
FunctionDef(
|
||||
|
@ -90,7 +88,6 @@ expression: "ast::Suite::parse(source, \"<test>\").unwrap()"
|
|||
range: 70..74,
|
||||
},
|
||||
annotation: None,
|
||||
type_comment: None,
|
||||
},
|
||||
default: None,
|
||||
},
|
||||
|
@ -103,7 +100,6 @@ expression: "ast::Suite::parse(source, \"<test>\").unwrap()"
|
|||
range: 76..79,
|
||||
},
|
||||
annotation: None,
|
||||
type_comment: None,
|
||||
},
|
||||
default: Some(
|
||||
Constant(
|
||||
|
@ -132,7 +128,6 @@ expression: "ast::Suite::parse(source, \"<test>\").unwrap()"
|
|||
decorator_list: [],
|
||||
returns: None,
|
||||
type_params: [],
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
],
|
||||
|
|
|
@ -23,7 +23,6 @@ expression: "ast::Suite::parse(source, \"<test>\").unwrap()"
|
|||
range: 9..10,
|
||||
},
|
||||
annotation: None,
|
||||
type_comment: None,
|
||||
},
|
||||
default: None,
|
||||
},
|
||||
|
@ -49,7 +48,6 @@ expression: "ast::Suite::parse(source, \"<test>\").unwrap()"
|
|||
decorator_list: [],
|
||||
returns: None,
|
||||
type_params: [],
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
FunctionDef(
|
||||
|
@ -80,7 +78,6 @@ expression: "ast::Suite::parse(source, \"<test>\").unwrap()"
|
|||
},
|
||||
),
|
||||
),
|
||||
type_comment: None,
|
||||
},
|
||||
default: None,
|
||||
},
|
||||
|
@ -125,7 +122,6 @@ expression: "ast::Suite::parse(source, \"<test>\").unwrap()"
|
|||
},
|
||||
),
|
||||
],
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
FunctionDef(
|
||||
|
@ -156,7 +152,6 @@ expression: "ast::Suite::parse(source, \"<test>\").unwrap()"
|
|||
},
|
||||
),
|
||||
),
|
||||
type_comment: None,
|
||||
},
|
||||
default: None,
|
||||
},
|
||||
|
@ -209,7 +204,6 @@ expression: "ast::Suite::parse(source, \"<test>\").unwrap()"
|
|||
},
|
||||
),
|
||||
],
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
FunctionDef(
|
||||
|
@ -240,7 +234,6 @@ expression: "ast::Suite::parse(source, \"<test>\").unwrap()"
|
|||
},
|
||||
),
|
||||
),
|
||||
type_comment: None,
|
||||
},
|
||||
default: None,
|
||||
},
|
||||
|
@ -308,7 +301,6 @@ expression: "ast::Suite::parse(source, \"<test>\").unwrap()"
|
|||
},
|
||||
),
|
||||
],
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
FunctionDef(
|
||||
|
@ -344,7 +336,6 @@ expression: "ast::Suite::parse(source, \"<test>\").unwrap()"
|
|||
},
|
||||
),
|
||||
),
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
kwonlyargs: [],
|
||||
|
@ -377,7 +368,6 @@ expression: "ast::Suite::parse(source, \"<test>\").unwrap()"
|
|||
},
|
||||
),
|
||||
],
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
FunctionDef(
|
||||
|
@ -417,7 +407,6 @@ expression: "ast::Suite::parse(source, \"<test>\").unwrap()"
|
|||
},
|
||||
),
|
||||
),
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
kwonlyargs: [],
|
||||
|
@ -447,7 +436,6 @@ expression: "ast::Suite::parse(source, \"<test>\").unwrap()"
|
|||
},
|
||||
),
|
||||
),
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
},
|
||||
|
@ -478,7 +466,6 @@ expression: "ast::Suite::parse(source, \"<test>\").unwrap()"
|
|||
},
|
||||
),
|
||||
],
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
FunctionDef(
|
||||
|
@ -553,7 +540,6 @@ expression: "ast::Suite::parse(source, \"<test>\").unwrap()"
|
|||
},
|
||||
),
|
||||
],
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
]
|
||||
|
|
|
@ -22,7 +22,6 @@ expression: parse_ast
|
|||
range: 7..8,
|
||||
},
|
||||
annotation: None,
|
||||
type_comment: None,
|
||||
},
|
||||
default: None,
|
||||
},
|
||||
|
@ -35,7 +34,6 @@ expression: parse_ast
|
|||
range: 10..11,
|
||||
},
|
||||
annotation: None,
|
||||
type_comment: None,
|
||||
},
|
||||
default: None,
|
||||
},
|
||||
|
|
|
@ -56,7 +56,6 @@ expression: "ast::Suite::parse(source, \"<test>\").unwrap()"
|
|||
ctx: Load,
|
||||
},
|
||||
),
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
]
|
||||
|
|
|
@ -60,7 +60,6 @@ expression: parse_ast
|
|||
kind: None,
|
||||
},
|
||||
),
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
],
|
||||
|
@ -132,7 +131,6 @@ expression: parse_ast
|
|||
kind: None,
|
||||
},
|
||||
),
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
],
|
||||
|
@ -200,7 +198,6 @@ expression: parse_ast
|
|||
kind: None,
|
||||
},
|
||||
),
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
],
|
||||
|
@ -254,7 +251,6 @@ expression: parse_ast
|
|||
kind: None,
|
||||
},
|
||||
),
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
],
|
||||
|
@ -363,7 +359,6 @@ expression: parse_ast
|
|||
kind: None,
|
||||
},
|
||||
),
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
],
|
||||
|
@ -484,7 +479,6 @@ expression: parse_ast
|
|||
kind: None,
|
||||
},
|
||||
),
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
],
|
||||
|
@ -669,7 +663,6 @@ expression: parse_ast
|
|||
kind: None,
|
||||
},
|
||||
),
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
],
|
||||
|
@ -905,7 +898,6 @@ expression: parse_ast
|
|||
kind: None,
|
||||
},
|
||||
),
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
],
|
||||
|
@ -941,7 +933,6 @@ expression: parse_ast
|
|||
kind: None,
|
||||
},
|
||||
),
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
],
|
||||
|
@ -1015,7 +1006,6 @@ expression: parse_ast
|
|||
kind: None,
|
||||
},
|
||||
),
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
],
|
||||
|
@ -1080,7 +1070,6 @@ expression: parse_ast
|
|||
kind: None,
|
||||
},
|
||||
),
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
],
|
||||
|
@ -1189,7 +1178,6 @@ expression: parse_ast
|
|||
kind: None,
|
||||
},
|
||||
),
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
],
|
||||
|
@ -1255,7 +1243,6 @@ expression: parse_ast
|
|||
kind: None,
|
||||
},
|
||||
),
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
],
|
||||
|
@ -1332,7 +1319,6 @@ expression: parse_ast
|
|||
kind: None,
|
||||
},
|
||||
),
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
],
|
||||
|
@ -1395,7 +1381,6 @@ expression: parse_ast
|
|||
kind: None,
|
||||
},
|
||||
),
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
],
|
||||
|
@ -1438,7 +1423,6 @@ expression: parse_ast
|
|||
kind: None,
|
||||
},
|
||||
),
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
],
|
||||
|
@ -1502,7 +1486,6 @@ expression: parse_ast
|
|||
kind: None,
|
||||
},
|
||||
),
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
],
|
||||
|
@ -1560,7 +1543,6 @@ expression: parse_ast
|
|||
kind: None,
|
||||
},
|
||||
),
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
],
|
||||
|
@ -1604,7 +1586,6 @@ expression: parse_ast
|
|||
kind: None,
|
||||
},
|
||||
),
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
],
|
||||
|
@ -1677,7 +1658,6 @@ expression: parse_ast
|
|||
ctx: Load,
|
||||
},
|
||||
),
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
],
|
||||
|
@ -1809,7 +1789,6 @@ expression: parse_ast
|
|||
kind: None,
|
||||
},
|
||||
),
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
],
|
||||
|
@ -1874,7 +1853,6 @@ expression: parse_ast
|
|||
kind: None,
|
||||
},
|
||||
),
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
],
|
||||
|
@ -1983,7 +1961,6 @@ expression: parse_ast
|
|||
kind: None,
|
||||
},
|
||||
),
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
],
|
||||
|
@ -2048,7 +2025,6 @@ expression: parse_ast
|
|||
kind: None,
|
||||
},
|
||||
),
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
],
|
||||
|
@ -2129,7 +2105,6 @@ expression: parse_ast
|
|||
kind: None,
|
||||
},
|
||||
),
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
],
|
||||
|
@ -2209,7 +2184,6 @@ expression: parse_ast
|
|||
kind: None,
|
||||
},
|
||||
),
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
],
|
||||
|
@ -2280,7 +2254,6 @@ expression: parse_ast
|
|||
kind: None,
|
||||
},
|
||||
),
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
],
|
||||
|
@ -2366,7 +2339,6 @@ expression: parse_ast
|
|||
kind: None,
|
||||
},
|
||||
),
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
],
|
||||
|
@ -2416,7 +2388,6 @@ expression: parse_ast
|
|||
kind: None,
|
||||
},
|
||||
),
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
],
|
||||
|
@ -2474,7 +2445,6 @@ expression: parse_ast
|
|||
kind: None,
|
||||
},
|
||||
),
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
],
|
||||
|
@ -2526,7 +2496,6 @@ expression: parse_ast
|
|||
kind: None,
|
||||
},
|
||||
),
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
],
|
||||
|
@ -2576,7 +2545,6 @@ expression: parse_ast
|
|||
kind: None,
|
||||
},
|
||||
),
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
],
|
||||
|
@ -2627,7 +2595,6 @@ expression: parse_ast
|
|||
kind: None,
|
||||
},
|
||||
),
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
],
|
||||
|
@ -2671,7 +2638,6 @@ expression: parse_ast
|
|||
kind: None,
|
||||
},
|
||||
),
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
],
|
||||
|
@ -2727,7 +2693,6 @@ expression: parse_ast
|
|||
kind: None,
|
||||
},
|
||||
),
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
],
|
||||
|
@ -2813,7 +2778,6 @@ expression: parse_ast
|
|||
kind: None,
|
||||
},
|
||||
),
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
],
|
||||
|
@ -2985,7 +2949,6 @@ expression: parse_ast
|
|||
kind: None,
|
||||
},
|
||||
),
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
],
|
||||
|
@ -3091,7 +3054,6 @@ expression: parse_ast
|
|||
kind: None,
|
||||
},
|
||||
),
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
],
|
||||
|
@ -3327,7 +3289,6 @@ expression: parse_ast
|
|||
kind: None,
|
||||
},
|
||||
),
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
],
|
||||
|
@ -3363,7 +3324,6 @@ expression: parse_ast
|
|||
kind: None,
|
||||
},
|
||||
),
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
],
|
||||
|
@ -3467,7 +3427,6 @@ expression: parse_ast
|
|||
kind: None,
|
||||
},
|
||||
),
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
],
|
||||
|
@ -3571,7 +3530,6 @@ expression: parse_ast
|
|||
kind: None,
|
||||
},
|
||||
),
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
],
|
||||
|
@ -3634,7 +3592,6 @@ expression: parse_ast
|
|||
kind: None,
|
||||
},
|
||||
),
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
],
|
||||
|
@ -3724,7 +3681,6 @@ expression: parse_ast
|
|||
kind: None,
|
||||
},
|
||||
),
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
],
|
||||
|
@ -3812,7 +3768,6 @@ expression: parse_ast
|
|||
kind: None,
|
||||
},
|
||||
),
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
],
|
||||
|
|
|
@ -73,7 +73,6 @@ expression: parse_ast
|
|||
ctx: Load,
|
||||
},
|
||||
),
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
Assign(
|
||||
|
@ -146,7 +145,6 @@ expression: parse_ast
|
|||
ctx: Load,
|
||||
},
|
||||
),
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
Expr(
|
||||
|
|
|
@ -658,7 +658,6 @@ expression: "ast::Suite::parse(source, \"<test>\").unwrap()"
|
|||
range: 514..519,
|
||||
},
|
||||
annotation: None,
|
||||
type_comment: None,
|
||||
},
|
||||
default: None,
|
||||
},
|
||||
|
@ -693,7 +692,6 @@ expression: "ast::Suite::parse(source, \"<test>\").unwrap()"
|
|||
),
|
||||
},
|
||||
),
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
Expr(
|
||||
|
@ -803,7 +801,6 @@ expression: "ast::Suite::parse(source, \"<test>\").unwrap()"
|
|||
],
|
||||
},
|
||||
),
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
Assign(
|
||||
|
@ -840,7 +837,6 @@ expression: "ast::Suite::parse(source, \"<test>\").unwrap()"
|
|||
keywords: [],
|
||||
},
|
||||
),
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
Expr(
|
||||
|
@ -900,7 +896,6 @@ expression: "ast::Suite::parse(source, \"<test>\").unwrap()"
|
|||
kind: None,
|
||||
},
|
||||
),
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
Assign(
|
||||
|
@ -931,7 +926,6 @@ expression: "ast::Suite::parse(source, \"<test>\").unwrap()"
|
|||
kind: None,
|
||||
},
|
||||
),
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
Assign(
|
||||
|
@ -962,7 +956,6 @@ expression: "ast::Suite::parse(source, \"<test>\").unwrap()"
|
|||
kind: None,
|
||||
},
|
||||
),
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
]
|
||||
|
|
|
@ -36,7 +36,6 @@ expression: parse_ast
|
|||
},
|
||||
),
|
||||
),
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
kwonlyargs: [],
|
||||
|
@ -86,7 +85,6 @@ expression: parse_ast
|
|||
),
|
||||
),
|
||||
type_params: [],
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
]
|
||||
|
|
|
@ -28,7 +28,6 @@ expression: "ast::Suite::parse(source, \"<test>\").unwrap()"
|
|||
},
|
||||
),
|
||||
],
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
With(
|
||||
|
@ -64,7 +63,6 @@ expression: "ast::Suite::parse(source, \"<test>\").unwrap()"
|
|||
},
|
||||
),
|
||||
],
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
With(
|
||||
|
@ -105,7 +103,6 @@ expression: "ast::Suite::parse(source, \"<test>\").unwrap()"
|
|||
},
|
||||
),
|
||||
],
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
With(
|
||||
|
@ -162,7 +159,6 @@ expression: "ast::Suite::parse(source, \"<test>\").unwrap()"
|
|||
},
|
||||
),
|
||||
],
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
With(
|
||||
|
@ -213,7 +209,6 @@ expression: "ast::Suite::parse(source, \"<test>\").unwrap()"
|
|||
},
|
||||
),
|
||||
],
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
With(
|
||||
|
@ -272,7 +267,6 @@ expression: "ast::Suite::parse(source, \"<test>\").unwrap()"
|
|||
},
|
||||
),
|
||||
],
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
With(
|
||||
|
@ -298,7 +292,6 @@ expression: "ast::Suite::parse(source, \"<test>\").unwrap()"
|
|||
},
|
||||
),
|
||||
],
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
With(
|
||||
|
@ -332,7 +325,6 @@ expression: "ast::Suite::parse(source, \"<test>\").unwrap()"
|
|||
},
|
||||
),
|
||||
],
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
With(
|
||||
|
@ -360,7 +352,6 @@ expression: "ast::Suite::parse(source, \"<test>\").unwrap()"
|
|||
},
|
||||
),
|
||||
],
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
With(
|
||||
|
@ -396,7 +387,6 @@ expression: "ast::Suite::parse(source, \"<test>\").unwrap()"
|
|||
},
|
||||
),
|
||||
],
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
With(
|
||||
|
@ -424,7 +414,6 @@ expression: "ast::Suite::parse(source, \"<test>\").unwrap()"
|
|||
},
|
||||
),
|
||||
],
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
With(
|
||||
|
@ -468,7 +457,6 @@ expression: "ast::Suite::parse(source, \"<test>\").unwrap()"
|
|||
},
|
||||
),
|
||||
],
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
With(
|
||||
|
@ -509,7 +497,6 @@ expression: "ast::Suite::parse(source, \"<test>\").unwrap()"
|
|||
},
|
||||
),
|
||||
],
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
With(
|
||||
|
@ -562,7 +549,6 @@ expression: "ast::Suite::parse(source, \"<test>\").unwrap()"
|
|||
},
|
||||
),
|
||||
],
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
With(
|
||||
|
@ -602,7 +588,6 @@ expression: "ast::Suite::parse(source, \"<test>\").unwrap()"
|
|||
},
|
||||
),
|
||||
],
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
With(
|
||||
|
@ -650,7 +635,6 @@ expression: "ast::Suite::parse(source, \"<test>\").unwrap()"
|
|||
},
|
||||
),
|
||||
],
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
With(
|
||||
|
@ -699,7 +683,6 @@ expression: "ast::Suite::parse(source, \"<test>\").unwrap()"
|
|||
},
|
||||
),
|
||||
],
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
With(
|
||||
|
@ -756,7 +739,6 @@ expression: "ast::Suite::parse(source, \"<test>\").unwrap()"
|
|||
},
|
||||
),
|
||||
],
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
With(
|
||||
|
@ -796,7 +778,6 @@ expression: "ast::Suite::parse(source, \"<test>\").unwrap()"
|
|||
},
|
||||
),
|
||||
],
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
With(
|
||||
|
@ -844,7 +825,6 @@ expression: "ast::Suite::parse(source, \"<test>\").unwrap()"
|
|||
},
|
||||
),
|
||||
],
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
With(
|
||||
|
@ -913,7 +893,6 @@ expression: "ast::Suite::parse(source, \"<test>\").unwrap()"
|
|||
},
|
||||
),
|
||||
],
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
With(
|
||||
|
@ -990,7 +969,6 @@ expression: "ast::Suite::parse(source, \"<test>\").unwrap()"
|
|||
},
|
||||
),
|
||||
],
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
With(
|
||||
|
@ -1026,7 +1004,6 @@ expression: "ast::Suite::parse(source, \"<test>\").unwrap()"
|
|||
},
|
||||
),
|
||||
],
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
With(
|
||||
|
@ -1062,7 +1039,6 @@ expression: "ast::Suite::parse(source, \"<test>\").unwrap()"
|
|||
},
|
||||
),
|
||||
],
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
With(
|
||||
|
@ -1119,7 +1095,6 @@ expression: "ast::Suite::parse(source, \"<test>\").unwrap()"
|
|||
},
|
||||
),
|
||||
],
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
With(
|
||||
|
@ -1176,7 +1151,6 @@ expression: "ast::Suite::parse(source, \"<test>\").unwrap()"
|
|||
},
|
||||
),
|
||||
],
|
||||
type_comment: None,
|
||||
},
|
||||
),
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue