mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-30 23:27:38 +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
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue