mirror of
https://github.com/astral-sh/ruff
synced 2026-01-11 08:34:29 -05:00
Respect self as positional-only argument in annotation rules (#2927)
This commit is contained in:
@@ -225,7 +225,6 @@ fn sorted_child_nodes_inner<'a>(node: &Node<'a>, result: &mut Vec<Node<'a>>) {
|
||||
for decorator in decorator_list {
|
||||
result.push(Node::Expr(decorator));
|
||||
}
|
||||
// TODO(charlie): Retain order.
|
||||
for arg in &args.posonlyargs {
|
||||
if let Some(expr) = &arg.node.annotation {
|
||||
result.push(Node::Expr(expr));
|
||||
|
||||
Reference in New Issue
Block a user