mirror of
https://github.com/astral-sh/ruff
synced 2026-01-10 08:04:26 -05:00
Fix end location of nodes containing body
This commit is contained in:
@@ -173,7 +173,8 @@ class Foo(A, B):
|
||||
def __init__(self):
|
||||
pass
|
||||
def method_with_default(self, arg='default'):
|
||||
pass";
|
||||
pass
|
||||
";
|
||||
insta::assert_debug_snapshot!(parse_program(source, "<test>").unwrap());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user