diff --git a/crates/ruff/src/rules/flake8_bugbear/rules/setattr_with_constant.rs b/crates/ruff/src/rules/flake8_bugbear/rules/setattr_with_constant.rs index eb74bdb2b4..369391d5ab 100644 --- a/crates/ruff/src/rules/flake8_bugbear/rules/setattr_with_constant.rs +++ b/crates/ruff/src/rules/flake8_bugbear/rules/setattr_with_constant.rs @@ -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) diff --git a/crates/ruff/src/rules/flake8_errmsg/rules/string_in_exception.rs b/crates/ruff/src/rules/flake8_errmsg/rules/string_in_exception.rs index ada85476be..5b60b40879 100644 --- a/crates/ruff/src/rules/flake8_errmsg/rules/string_in_exception.rs +++ b/crates/ruff/src/rules/flake8_errmsg/rules/string_in_exception.rs @@ -286,7 +286,6 @@ fn generate_fix( range: TextRange::default(), })], value: Box::new(exc_arg.clone()), - type_comment: None, range: TextRange::default(), }); diff --git a/crates/ruff/src/rules/flake8_simplify/rules/ast_if.rs b/crates/ruff/src/rules/flake8_simplify/rules/ast_if.rs index af096c2616..e2c390059a 100644 --- a/crates/ruff/src/rules/flake8_simplify/rules/ast_if.rs +++ b/crates/ruff/src/rules/flake8_simplify/rules/ast_if.rs @@ -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()); diff --git a/crates/ruff/src/rules/pycodestyle/rules/lambda_assignment.rs b/crates/ruff/src/rules/pycodestyle/rules/lambda_assignment.rs index a9b04ba24c..663a84ba31 100644 --- a/crates/ruff/src/rules/pycodestyle/rules/lambda_assignment.rs +++ b/crates/ruff/src/rules/pycodestyle/rules/lambda_assignment.rs @@ -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) diff --git a/crates/ruff/src/rules/ruff/rules/unreachable.rs b/crates/ruff/src/rules/ruff/rules/unreachable.rs index 2e765506cc..e60fb37b40 100644 --- a/crates/ruff/src/rules/ruff/rules/unreachable.rs +++ b/crates/ruff/src/rules/ruff/rules/unreachable.rs @@ -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 // . // 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, .. }) => { diff --git a/crates/ruff_python_ast/src/comparable.rs b/crates/ruff_python_ast/src/comparable.rs index abcb3008eb..f2a5956185 100644 --- a/crates/ruff_python_ast/src/comparable.rs +++ b/crates/ruff_python_ast/src/comparable.rs @@ -376,7 +376,6 @@ impl<'a> From<&'a Box> for ComparableArg<'a> { pub struct ComparableArg<'a> { arg: &'a str, annotation: Option>>, - 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>, type_params: Vec>, returns: Option>, - type_comment: Option<&'a str>, } #[derive(Debug, PartialEq, Eq, Hash)] @@ -966,7 +963,6 @@ pub struct StmtAsyncFunctionDef<'a> { decorator_list: Vec>, type_params: Vec>, returns: Option>, - type_comment: Option<&'a str>, } #[derive(Debug, PartialEq, Eq, Hash)] @@ -1048,7 +1044,6 @@ pub struct TypeParamTypeVarTuple<'a> { pub struct StmtAssign<'a> { targets: Vec>, 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>, orelse: Vec>, - type_comment: Option<&'a str>, } #[derive(Debug, PartialEq, Eq, Hash)] @@ -1081,7 +1075,6 @@ pub struct StmtAsyncFor<'a> { iter: ComparableExpr<'a>, body: Vec>, orelse: Vec>, - type_comment: Option<&'a str>, } #[derive(Debug, PartialEq, Eq, Hash)] @@ -1102,14 +1095,12 @@ pub struct StmtIf<'a> { pub struct StmtWith<'a> { items: Vec>, body: Vec>, - type_comment: Option<&'a str>, } #[derive(Debug, PartialEq, Eq, Hash)] pub struct StmtAsyncWith<'a> { items: Vec>, body: Vec>, - 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, diff --git a/crates/ruff_python_ast/src/function.rs b/crates/ruff_python_ast/src/function.rs index 563d24dcef..11deb8d773 100644 --- a/crates/ruff_python_ast/src/function.rs +++ b/crates/ruff_python_ast/src/function.rs @@ -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(_)) diff --git a/crates/ruff_python_ast/src/nodes.rs b/crates/ruff_python_ast/src/nodes.rs index a8ef33c383..9f3241b0ef 100644 --- a/crates/ruff_python_ast/src/nodes.rs +++ b/crates/ruff_python_ast/src/nodes.rs @@ -156,7 +156,6 @@ pub struct StmtFunctionDef { pub decorator_list: Vec, pub returns: Option>, pub type_params: Vec, - pub type_comment: Option, } impl From for Stmt { @@ -175,7 +174,6 @@ pub struct StmtAsyncFunctionDef { pub decorator_list: Vec, pub returns: Option>, pub type_params: Vec, - pub type_comment: Option, } impl From for Stmt { @@ -249,7 +247,6 @@ pub struct StmtAssign { pub range: TextRange, pub targets: Vec, pub value: Box, - pub type_comment: Option, } impl From for Stmt { @@ -297,7 +294,6 @@ pub struct StmtFor { pub iter: Box, pub body: Vec, pub orelse: Vec, - pub type_comment: Option, } impl From for Stmt { @@ -314,7 +310,6 @@ pub struct StmtAsyncFor { pub iter: Box, pub body: Vec, pub orelse: Vec, - pub type_comment: Option, } impl From for Stmt { @@ -366,7 +361,6 @@ pub struct StmtWith { pub range: TextRange, pub items: Vec, pub body: Vec, - pub type_comment: Option, } impl From for Stmt { @@ -381,7 +375,6 @@ pub struct StmtAsyncWith { pub range: TextRange, pub items: Vec, pub body: Vec, - pub type_comment: Option, } impl From for Stmt { @@ -1877,7 +1870,6 @@ pub struct Arg { pub range: TextRange, pub arg: Identifier, pub annotation: Option>, - pub type_comment: Option, } /// 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]); diff --git a/crates/ruff_python_ast/src/visitor/preorder.rs b/crates/ruff_python_ast/src/visitor/preorder.rs index dc988d68ac..ac423ab848 100644 --- a/crates/ruff_python_ast/src/visitor/preorder.rs +++ b/crates/ruff_python_ast/src/visitor/preorder.rs @@ -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 { diff --git a/crates/ruff_python_formatter/src/other/arg.rs b/crates/ruff_python_formatter/src/other/arg.rs index 379ceb0ebd..934a24a69b 100644 --- a/crates/ruff_python_formatter/src/other/arg.rs +++ b/crates/ruff_python_formatter/src/other/arg.rs @@ -12,7 +12,6 @@ impl FormatNodeRule for FormatArg { range: _, arg, annotation, - type_comment: _, } = item; arg.format().fmt(f)?; diff --git a/crates/ruff_python_formatter/src/statement/stmt_assign.rs b/crates/ruff_python_formatter/src/statement/stmt_assign.rs index c73634e44b..86e721bac4 100644 --- a/crates/ruff_python_formatter/src/statement/stmt_assign.rs +++ b/crates/ruff_python_formatter/src/statement/stmt_assign.rs @@ -17,7 +17,6 @@ impl FormatNodeRule for FormatStmtAssign { range: _, targets, value, - type_comment: _, } = item; let (first, rest) = targets.split_first().ok_or(FormatError::syntax_error( diff --git a/crates/ruff_python_parser/src/python.lalrpop b/crates/ruff_python_parser/src/python.lalrpop index a5a9444f00..41cf689190 100644 --- a/crates/ruff_python_parser/src/python.lalrpop +++ b/crates/ruff_python_parser/src/python.lalrpop @@ -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 = { "with" ":" => { 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: ast::ArgWithDefault = { UntypedParameter: 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() } }, }; StarUntypedParameter: 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() }, }; TypedParameter: ast::ArgWithDefault = { >)?> => { 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 = { )?> => { 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 = { >)?> => { 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() } }, }; diff --git a/crates/ruff_python_parser/src/python.rs b/crates/ruff_python_parser/src/python.rs index 248e10800b..5f91388d15 100644 --- a/crates/ruff_python_parser/src/python.rs +++ b/crates/ruff_python_parser/src/python.rs @@ -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() } } } diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__context__tests__assign_attribute.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__context__tests__assign_attribute.snap index af9785119c..64bf5bff6d 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__context__tests__assign_attribute.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__context__tests__assign_attribute.snap @@ -60,7 +60,6 @@ expression: parse_ast ctx: Load, }, ), - type_comment: None, }, ), ] diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__context__tests__assign_for.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__context__tests__assign_for.snap index 8f952845f0..fb74fe3e48 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__context__tests__assign_for.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__context__tests__assign_for.snap @@ -56,7 +56,6 @@ expression: parse_ast ), ], orelse: [], - type_comment: None, }, ), ] diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__context__tests__assign_list.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__context__tests__assign_list.snap index 59d5985090..a7303252c6 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__context__tests__assign_list.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__context__tests__assign_list.snap @@ -65,7 +65,6 @@ expression: parse_ast ctx: Load, }, ), - type_comment: None, }, ), ] diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__context__tests__assign_list_comp.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__context__tests__assign_list_comp.snap index f145007051..247a636cb8 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__context__tests__assign_list_comp.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__context__tests__assign_list_comp.snap @@ -76,7 +76,6 @@ expression: parse_ast ], }, ), - type_comment: None, }, ), ] diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__context__tests__assign_name.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__context__tests__assign_name.snap index e73b4b48b8..b358265457 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__context__tests__assign_name.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__context__tests__assign_name.snap @@ -50,7 +50,6 @@ expression: parse_ast ctx: Load, }, ), - type_comment: None, }, ), ] diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__context__tests__assign_set_comp.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__context__tests__assign_set_comp.snap index ca07b28d5c..cc1480d630 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__context__tests__assign_set_comp.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__context__tests__assign_set_comp.snap @@ -76,7 +76,6 @@ expression: parse_ast ], }, ), - type_comment: None, }, ), ] diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__context__tests__assign_starred.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__context__tests__assign_starred.snap index 780b93c396..7f0719e51a 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__context__tests__assign_starred.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__context__tests__assign_starred.snap @@ -71,7 +71,6 @@ expression: parse_ast ctx: Load, }, ), - type_comment: None, }, ), ] diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__context__tests__assign_subscript.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__context__tests__assign_subscript.snap index 177b23f829..fef424d935 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__context__tests__assign_subscript.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__context__tests__assign_subscript.snap @@ -63,7 +63,6 @@ expression: parse_ast ctx: Load, }, ), - type_comment: None, }, ), ] diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__context__tests__assign_tuple.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__context__tests__assign_tuple.snap index 5f3170453f..9291385f35 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__context__tests__assign_tuple.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__context__tests__assign_tuple.snap @@ -65,7 +65,6 @@ expression: parse_ast ctx: Load, }, ), - type_comment: None, }, ), ] diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__context__tests__assign_with.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__context__tests__assign_with.snap index f9a490525a..c77adbe5f3 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__context__tests__assign_with.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__context__tests__assign_with.snap @@ -36,7 +36,6 @@ expression: parse_ast }, ), ], - type_comment: None, }, ), ] diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__function__tests__function_kw_only_args.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__function__tests__function_kw_only_args.snap index 505877441b..d862787c8a 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__function__tests__function_kw_only_args.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__function__tests__function_kw_only_args.snap @@ -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, }, ), ], diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__function__tests__function_kw_only_args_with_defaults.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__function__tests__function_kw_only_args_with_defaults.snap index 771d43378c..f8eb841966 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__function__tests__function_kw_only_args_with_defaults.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__function__tests__function_kw_only_args_with_defaults.snap @@ -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, }, ), ], diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__function__tests__function_no_args.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__function__tests__function_no_args.snap index 7a7e79cc28..27a71b8f54 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__function__tests__function_no_args.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__function__tests__function_no_args.snap @@ -29,7 +29,6 @@ Ok( decorator_list: [], returns: None, type_params: [], - type_comment: None, }, ), ], diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__function__tests__function_no_args_with_ranges.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__function__tests__function_no_args_with_ranges.snap index 7a7e79cc28..27a71b8f54 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__function__tests__function_no_args_with_ranges.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__function__tests__function_no_args_with_ranges.snap @@ -29,7 +29,6 @@ Ok( decorator_list: [], returns: None, type_params: [], - type_comment: None, }, ), ], diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__function__tests__function_pos_and_kw_only_args.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__function__tests__function_pos_and_kw_only_args.snap index d4118e6228..8ce96484b2 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__function__tests__function_pos_and_kw_only_args.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__function__tests__function_pos_and_kw_only_args.snap @@ -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, }, ), ], diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__function__tests__function_pos_and_kw_only_args_with_defaults.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__function__tests__function_pos_and_kw_only_args_with_defaults.snap index de5e21a35e..d15f0ac3a9 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__function__tests__function_pos_and_kw_only_args_with_defaults.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__function__tests__function_pos_and_kw_only_args_with_defaults.snap @@ -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, }, ), ], diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__function__tests__function_pos_and_kw_only_args_with_defaults_and_varargs.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__function__tests__function_pos_and_kw_only_args_with_defaults_and_varargs.snap index 500623eb0c..d1aaae3e13 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__function__tests__function_pos_and_kw_only_args_with_defaults_and_varargs.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__function__tests__function_pos_and_kw_only_args_with_defaults_and_varargs.snap @@ -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, }, ), ], diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__function__tests__function_pos_and_kw_only_args_with_defaults_and_varargs_and_kwargs.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__function__tests__function_pos_and_kw_only_args_with_defaults_and_varargs_and_kwargs.snap index 2558f4e4ca..4169d01fa2 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__function__tests__function_pos_and_kw_only_args_with_defaults_and_varargs_and_kwargs.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__function__tests__function_pos_and_kw_only_args_with_defaults_and_varargs_and_kwargs.snap @@ -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, }, ), ], diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__function__tests__function_pos_args.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__function__tests__function_pos_args.snap index 3b86c08d86..b51a3a66c5 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__function__tests__function_pos_args.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__function__tests__function_pos_args.snap @@ -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, }, ), ], diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__function__tests__function_pos_args_with_defaults.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__function__tests__function_pos_args_with_defaults.snap index 348433ef47..4ed3f2362b 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__function__tests__function_pos_args_with_defaults.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__function__tests__function_pos_args_with_defaults.snap @@ -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, }, ), ], diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__function__tests__function_pos_args_with_ranges.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__function__tests__function_pos_args_with_ranges.snap index 3b86c08d86..b51a3a66c5 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__function__tests__function_pos_args_with_ranges.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__function__tests__function_pos_args_with_ranges.snap @@ -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, }, ), ], diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__function__tests__lambda_kw_only_args.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__function__tests__lambda_kw_only_args.snap index 9cef272eea..174ed9b1b7 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__function__tests__lambda_kw_only_args.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__function__tests__lambda_kw_only_args.snap @@ -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, }, diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__function__tests__lambda_kw_only_args_with_defaults.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__function__tests__lambda_kw_only_args_with_defaults.snap index f0a47b83e1..0b79a86f16 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__function__tests__lambda_kw_only_args_with_defaults.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__function__tests__lambda_kw_only_args_with_defaults.snap @@ -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( diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__function__tests__lambda_pos_and_kw_only_args.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__function__tests__lambda_pos_and_kw_only_args.snap index 065f530a8a..9240b4f472 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__function__tests__lambda_pos_and_kw_only_args.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__function__tests__lambda_pos_and_kw_only_args.snap @@ -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, }, diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__function__tests__lambda_pos_args.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__function__tests__lambda_pos_args.snap index eed8d7c2ce..ba1c8ee2eb 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__function__tests__lambda_pos_args.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__function__tests__lambda_pos_args.snap @@ -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, }, diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__function__tests__lambda_pos_args_with_defaults.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__function__tests__lambda_pos_args_with_defaults.snap index 8a974f428f..d3d028d558 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__function__tests__lambda_pos_args_with_defaults.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__function__tests__lambda_pos_args_with_defaults.snap @@ -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( diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__parser__tests__decorator_ranges.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__parser__tests__decorator_ranges.snap index 158705cdf5..c32f7dcbce 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__parser__tests__decorator_ranges.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__parser__tests__decorator_ranges.snap @@ -39,7 +39,6 @@ expression: parse_ast ], returns: None, type_params: [], - type_comment: None, }, ), ClassDef( diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__parser__tests__jupyter_magic.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__parser__tests__jupyter_magic.snap index cceacf53ef..f24364d893 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__parser__tests__jupyter_magic.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__parser__tests__jupyter_magic.snap @@ -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, }, ), ], diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__parser__tests__match.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__parser__tests__match.snap index e5ceb0de15..cc1bb69d34 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__parser__tests__match.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__parser__tests__match.snap @@ -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, }, ), ], diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__parser__tests__match_as_identifier.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__parser__tests__match_as_identifier.snap index fcf057b09d..94b281807c 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__parser__tests__match_as_identifier.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__parser__tests__match_as_identifier.snap @@ -722,7 +722,6 @@ expression: "ast::Suite::parse(source, \"\").unwrap()" range: 598..603, }, annotation: None, - type_comment: None, }, default: None, }, @@ -757,7 +756,6 @@ expression: "ast::Suite::parse(source, \"\").unwrap()" ), }, ), - type_comment: None, }, ), Expr( diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__parser__tests__numeric_literals.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__parser__tests__numeric_literals.snap index 30a58016e8..563840d8a7 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__parser__tests__numeric_literals.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__parser__tests__numeric_literals.snap @@ -24,7 +24,6 @@ expression: "ast::Suite::parse(source, \"\").unwrap()" kind: None, }, ), - type_comment: None, }, ), Assign( @@ -48,7 +47,6 @@ expression: "ast::Suite::parse(source, \"\").unwrap()" kind: None, }, ), - type_comment: None, }, ), Assign( @@ -72,7 +70,6 @@ expression: "ast::Suite::parse(source, \"\").unwrap()" kind: None, }, ), - type_comment: None, }, ), Assign( @@ -96,7 +93,6 @@ expression: "ast::Suite::parse(source, \"\").unwrap()" kind: None, }, ), - type_comment: None, }, ), Assign( @@ -120,7 +116,6 @@ expression: "ast::Suite::parse(source, \"\").unwrap()" kind: None, }, ), - type_comment: None, }, ), Assign( @@ -144,7 +139,6 @@ expression: "ast::Suite::parse(source, \"\").unwrap()" kind: None, }, ), - type_comment: None, }, ), Assign( @@ -168,7 +162,6 @@ expression: "ast::Suite::parse(source, \"\").unwrap()" kind: None, }, ), - type_comment: None, }, ), Assign( @@ -192,7 +185,6 @@ expression: "ast::Suite::parse(source, \"\").unwrap()" kind: None, }, ), - type_comment: None, }, ), Assign( @@ -216,7 +208,6 @@ expression: "ast::Suite::parse(source, \"\").unwrap()" kind: None, }, ), - type_comment: None, }, ), Assign( @@ -240,7 +231,6 @@ expression: "ast::Suite::parse(source, \"\").unwrap()" kind: None, }, ), - type_comment: None, }, ), Assign( @@ -265,7 +255,6 @@ expression: "ast::Suite::parse(source, \"\").unwrap()" kind: None, }, ), - type_comment: None, }, ), Assign( @@ -290,7 +279,6 @@ expression: "ast::Suite::parse(source, \"\").unwrap()" kind: None, }, ), - type_comment: None, }, ), Assign( @@ -314,7 +302,6 @@ expression: "ast::Suite::parse(source, \"\").unwrap()" kind: None, }, ), - type_comment: None, }, ), Assign( @@ -338,7 +325,6 @@ expression: "ast::Suite::parse(source, \"\").unwrap()" kind: None, }, ), - type_comment: None, }, ), Assign( @@ -362,7 +348,6 @@ expression: "ast::Suite::parse(source, \"\").unwrap()" kind: None, }, ), - type_comment: None, }, ), Assign( @@ -386,7 +371,6 @@ expression: "ast::Suite::parse(source, \"\").unwrap()" kind: None, }, ), - type_comment: None, }, ), Assign( @@ -410,7 +394,6 @@ expression: "ast::Suite::parse(source, \"\").unwrap()" kind: None, }, ), - type_comment: None, }, ), Assign( @@ -434,7 +417,6 @@ expression: "ast::Suite::parse(source, \"\").unwrap()" kind: None, }, ), - type_comment: None, }, ), ] diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__parser__tests__numeric_literals_attribute_access.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__parser__tests__numeric_literals_attribute_access.snap index 20854b6b22..f554311a33 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__parser__tests__numeric_literals_attribute_access.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__parser__tests__numeric_literals_attribute_access.snap @@ -41,7 +41,6 @@ expression: "ast::Suite::parse(source, \"\").unwrap()" keywords: [], }, ), - type_comment: None, }, ), Assign( @@ -75,7 +74,6 @@ expression: "ast::Suite::parse(source, \"\").unwrap()" ctx: Load, }, ), - type_comment: None, }, ), Assign( @@ -109,7 +107,6 @@ expression: "ast::Suite::parse(source, \"\").unwrap()" ctx: Load, }, ), - type_comment: None, }, ), Assign( @@ -143,7 +140,6 @@ expression: "ast::Suite::parse(source, \"\").unwrap()" ctx: Load, }, ), - type_comment: None, }, ), Assign( @@ -184,7 +180,6 @@ expression: "ast::Suite::parse(source, \"\").unwrap()" keywords: [], }, ), - type_comment: None, }, ), Assign( @@ -218,7 +213,6 @@ expression: "ast::Suite::parse(source, \"\").unwrap()" ctx: Load, }, ), - type_comment: None, }, ), Assign( @@ -259,7 +253,6 @@ expression: "ast::Suite::parse(source, \"\").unwrap()" keywords: [], }, ), - type_comment: None, }, ), Assign( @@ -294,7 +287,6 @@ expression: "ast::Suite::parse(source, \"\").unwrap()" ctx: Load, }, ), - type_comment: None, }, ), Assign( @@ -363,7 +355,6 @@ expression: "ast::Suite::parse(source, \"\").unwrap()" keywords: [], }, ), - type_comment: None, }, ), Assign( @@ -404,7 +395,6 @@ expression: "ast::Suite::parse(source, \"\").unwrap()" keywords: [], }, ), - type_comment: None, }, ), Assign( @@ -445,7 +435,6 @@ expression: "ast::Suite::parse(source, \"\").unwrap()" keywords: [], }, ), - type_comment: None, }, ), Assign( @@ -479,7 +468,6 @@ expression: "ast::Suite::parse(source, \"\").unwrap()" ctx: Load, }, ), - type_comment: None, }, ), Assign( @@ -520,7 +508,6 @@ expression: "ast::Suite::parse(source, \"\").unwrap()" keywords: [], }, ), - type_comment: None, }, ), Assign( @@ -551,7 +538,6 @@ expression: "ast::Suite::parse(source, \"\").unwrap()" ), }, ), - type_comment: None, }, ), If( @@ -627,7 +613,6 @@ expression: "ast::Suite::parse(source, \"\").unwrap()" ctx: Load, }, ), - type_comment: None, }, ), Assign( @@ -666,7 +651,6 @@ expression: "ast::Suite::parse(source, \"\").unwrap()" keywords: [], }, ), - type_comment: None, }, ), ] diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__parser__tests__parse_class.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__parser__tests__parse_class.snap index 10262c370f..b439b18abf 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__parser__tests__parse_class.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__parser__tests__parse_class.snap @@ -48,7 +48,6 @@ expression: "ast::Suite::parse(source, \"\").unwrap()" range: 31..35, }, annotation: None, - type_comment: None, }, default: None, }, @@ -67,7 +66,6 @@ expression: "ast::Suite::parse(source, \"\").unwrap()" decorator_list: [], returns: None, type_params: [], - type_comment: None, }, ), FunctionDef( @@ -90,7 +88,6 @@ expression: "ast::Suite::parse(source, \"\").unwrap()" range: 70..74, }, annotation: None, - type_comment: None, }, default: None, }, @@ -103,7 +100,6 @@ expression: "ast::Suite::parse(source, \"\").unwrap()" range: 76..79, }, annotation: None, - type_comment: None, }, default: Some( Constant( @@ -132,7 +128,6 @@ expression: "ast::Suite::parse(source, \"\").unwrap()" decorator_list: [], returns: None, type_params: [], - type_comment: None, }, ), ], diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__parser__tests__parse_function_definition.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__parser__tests__parse_function_definition.snap index b975d16f0e..fff68f3279 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__parser__tests__parse_function_definition.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__parser__tests__parse_function_definition.snap @@ -23,7 +23,6 @@ expression: "ast::Suite::parse(source, \"\").unwrap()" range: 9..10, }, annotation: None, - type_comment: None, }, default: None, }, @@ -49,7 +48,6 @@ expression: "ast::Suite::parse(source, \"\").unwrap()" decorator_list: [], returns: None, type_params: [], - type_comment: None, }, ), FunctionDef( @@ -80,7 +78,6 @@ expression: "ast::Suite::parse(source, \"\").unwrap()" }, ), ), - type_comment: None, }, default: None, }, @@ -125,7 +122,6 @@ expression: "ast::Suite::parse(source, \"\").unwrap()" }, ), ], - type_comment: None, }, ), FunctionDef( @@ -156,7 +152,6 @@ expression: "ast::Suite::parse(source, \"\").unwrap()" }, ), ), - type_comment: None, }, default: None, }, @@ -209,7 +204,6 @@ expression: "ast::Suite::parse(source, \"\").unwrap()" }, ), ], - type_comment: None, }, ), FunctionDef( @@ -240,7 +234,6 @@ expression: "ast::Suite::parse(source, \"\").unwrap()" }, ), ), - type_comment: None, }, default: None, }, @@ -308,7 +301,6 @@ expression: "ast::Suite::parse(source, \"\").unwrap()" }, ), ], - type_comment: None, }, ), FunctionDef( @@ -344,7 +336,6 @@ expression: "ast::Suite::parse(source, \"\").unwrap()" }, ), ), - type_comment: None, }, ), kwonlyargs: [], @@ -377,7 +368,6 @@ expression: "ast::Suite::parse(source, \"\").unwrap()" }, ), ], - type_comment: None, }, ), FunctionDef( @@ -417,7 +407,6 @@ expression: "ast::Suite::parse(source, \"\").unwrap()" }, ), ), - type_comment: None, }, ), kwonlyargs: [], @@ -447,7 +436,6 @@ expression: "ast::Suite::parse(source, \"\").unwrap()" }, ), ), - type_comment: None, }, ), }, @@ -478,7 +466,6 @@ expression: "ast::Suite::parse(source, \"\").unwrap()" }, ), ], - type_comment: None, }, ), FunctionDef( @@ -553,7 +540,6 @@ expression: "ast::Suite::parse(source, \"\").unwrap()" }, ), ], - type_comment: None, }, ), ] diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__parser__tests__parse_lambda.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__parser__tests__parse_lambda.snap index c1e7d6b06d..cd7629d670 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__parser__tests__parse_lambda.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__parser__tests__parse_lambda.snap @@ -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, }, diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__parser__tests__parse_tuples.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__parser__tests__parse_tuples.snap index 7ea89cc810..d3d1e40f71 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__parser__tests__parse_tuples.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__parser__tests__parse_tuples.snap @@ -56,7 +56,6 @@ expression: "ast::Suite::parse(source, \"\").unwrap()" ctx: Load, }, ), - type_comment: None, }, ), ] diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__parser__tests__patma.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__parser__tests__patma.snap index dd3196a7de..500ff2ab6b 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__parser__tests__patma.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__parser__tests__patma.snap @@ -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, }, ), ], diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__parser__tests__star_index.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__parser__tests__star_index.snap index d721fa237e..988198e3e5 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__parser__tests__star_index.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__parser__tests__star_index.snap @@ -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( diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__parser__tests__type_as_identifier.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__parser__tests__type_as_identifier.snap index 9be84ed6e2..76001aa670 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__parser__tests__type_as_identifier.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__parser__tests__type_as_identifier.snap @@ -658,7 +658,6 @@ expression: "ast::Suite::parse(source, \"\").unwrap()" range: 514..519, }, annotation: None, - type_comment: None, }, default: None, }, @@ -693,7 +692,6 @@ expression: "ast::Suite::parse(source, \"\").unwrap()" ), }, ), - type_comment: None, }, ), Expr( @@ -803,7 +801,6 @@ expression: "ast::Suite::parse(source, \"\").unwrap()" ], }, ), - type_comment: None, }, ), Assign( @@ -840,7 +837,6 @@ expression: "ast::Suite::parse(source, \"\").unwrap()" keywords: [], }, ), - type_comment: None, }, ), Expr( @@ -900,7 +896,6 @@ expression: "ast::Suite::parse(source, \"\").unwrap()" kind: None, }, ), - type_comment: None, }, ), Assign( @@ -931,7 +926,6 @@ expression: "ast::Suite::parse(source, \"\").unwrap()" kind: None, }, ), - type_comment: None, }, ), Assign( @@ -962,7 +956,6 @@ expression: "ast::Suite::parse(source, \"\").unwrap()" kind: None, }, ), - type_comment: None, }, ), ] diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__parser__tests__variadic_generics.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__parser__tests__variadic_generics.snap index d7a0d79744..528eb65a1a 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__parser__tests__variadic_generics.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__parser__tests__variadic_generics.snap @@ -36,7 +36,6 @@ expression: parse_ast }, ), ), - type_comment: None, }, ), kwonlyargs: [], @@ -86,7 +85,6 @@ expression: parse_ast ), ), type_params: [], - type_comment: None, }, ), ] diff --git a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__parser__tests__with_statement.snap b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__parser__tests__with_statement.snap index c020165284..668b5381fe 100644 --- a/crates/ruff_python_parser/src/snapshots/ruff_python_parser__parser__tests__with_statement.snap +++ b/crates/ruff_python_parser/src/snapshots/ruff_python_parser__parser__tests__with_statement.snap @@ -28,7 +28,6 @@ expression: "ast::Suite::parse(source, \"\").unwrap()" }, ), ], - type_comment: None, }, ), With( @@ -64,7 +63,6 @@ expression: "ast::Suite::parse(source, \"\").unwrap()" }, ), ], - type_comment: None, }, ), With( @@ -105,7 +103,6 @@ expression: "ast::Suite::parse(source, \"\").unwrap()" }, ), ], - type_comment: None, }, ), With( @@ -162,7 +159,6 @@ expression: "ast::Suite::parse(source, \"\").unwrap()" }, ), ], - type_comment: None, }, ), With( @@ -213,7 +209,6 @@ expression: "ast::Suite::parse(source, \"\").unwrap()" }, ), ], - type_comment: None, }, ), With( @@ -272,7 +267,6 @@ expression: "ast::Suite::parse(source, \"\").unwrap()" }, ), ], - type_comment: None, }, ), With( @@ -298,7 +292,6 @@ expression: "ast::Suite::parse(source, \"\").unwrap()" }, ), ], - type_comment: None, }, ), With( @@ -332,7 +325,6 @@ expression: "ast::Suite::parse(source, \"\").unwrap()" }, ), ], - type_comment: None, }, ), With( @@ -360,7 +352,6 @@ expression: "ast::Suite::parse(source, \"\").unwrap()" }, ), ], - type_comment: None, }, ), With( @@ -396,7 +387,6 @@ expression: "ast::Suite::parse(source, \"\").unwrap()" }, ), ], - type_comment: None, }, ), With( @@ -424,7 +414,6 @@ expression: "ast::Suite::parse(source, \"\").unwrap()" }, ), ], - type_comment: None, }, ), With( @@ -468,7 +457,6 @@ expression: "ast::Suite::parse(source, \"\").unwrap()" }, ), ], - type_comment: None, }, ), With( @@ -509,7 +497,6 @@ expression: "ast::Suite::parse(source, \"\").unwrap()" }, ), ], - type_comment: None, }, ), With( @@ -562,7 +549,6 @@ expression: "ast::Suite::parse(source, \"\").unwrap()" }, ), ], - type_comment: None, }, ), With( @@ -602,7 +588,6 @@ expression: "ast::Suite::parse(source, \"\").unwrap()" }, ), ], - type_comment: None, }, ), With( @@ -650,7 +635,6 @@ expression: "ast::Suite::parse(source, \"\").unwrap()" }, ), ], - type_comment: None, }, ), With( @@ -699,7 +683,6 @@ expression: "ast::Suite::parse(source, \"\").unwrap()" }, ), ], - type_comment: None, }, ), With( @@ -756,7 +739,6 @@ expression: "ast::Suite::parse(source, \"\").unwrap()" }, ), ], - type_comment: None, }, ), With( @@ -796,7 +778,6 @@ expression: "ast::Suite::parse(source, \"\").unwrap()" }, ), ], - type_comment: None, }, ), With( @@ -844,7 +825,6 @@ expression: "ast::Suite::parse(source, \"\").unwrap()" }, ), ], - type_comment: None, }, ), With( @@ -913,7 +893,6 @@ expression: "ast::Suite::parse(source, \"\").unwrap()" }, ), ], - type_comment: None, }, ), With( @@ -990,7 +969,6 @@ expression: "ast::Suite::parse(source, \"\").unwrap()" }, ), ], - type_comment: None, }, ), With( @@ -1026,7 +1004,6 @@ expression: "ast::Suite::parse(source, \"\").unwrap()" }, ), ], - type_comment: None, }, ), With( @@ -1062,7 +1039,6 @@ expression: "ast::Suite::parse(source, \"\").unwrap()" }, ), ], - type_comment: None, }, ), With( @@ -1119,7 +1095,6 @@ expression: "ast::Suite::parse(source, \"\").unwrap()" }, ), ], - type_comment: None, }, ), With( @@ -1176,7 +1151,6 @@ expression: "ast::Suite::parse(source, \"\").unwrap()" }, ), ], - type_comment: None, }, ), ]