mirror of
https://github.com/astral-sh/ruff.git
synced 2025-07-22 20:45:11 +00:00
Respect self as positional-only argument in annotation rules (#2927)
This commit is contained in:
parent
57a5071b4e
commit
cb971d3a48
4 changed files with 18 additions and 4 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue