mirror of
https://github.com/astral-sh/ruff
synced 2026-01-20 21:10:48 -05: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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user