From 7cfaa1fb9c84fb7a5f241314a6b089304d8219d6 Mon Sep 17 00:00:00 2001 From: dylwil3 Date: Fri, 12 Dec 2025 14:19:46 -0600 Subject: [PATCH] update snapshot with parenthesized example --- .../format@parentheses__call_chains.py.snap | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/crates/ruff_python_formatter/tests/snapshots/format@parentheses__call_chains.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@parentheses__call_chains.py.snap index d8630566f8..4d1da59919 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@parentheses__call_chains.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@parentheses__call_chains.py.snap @@ -273,6 +273,9 @@ def indentation_matching_walrus_in_preview(): (address,), ).fetchall().some_attr)) == 0 or len(set(names)) > 1: return + +# behavior with parenthesized roots +x = (aaaaaaaaaaaaaaaaaaaaaa).bbbbbbbbbbbbbbbbbbb.cccccccccccccccccccccccc().dddddddddddddddddddddddd().eeeeeeeeeeee ``` ## Output @@ -578,6 +581,15 @@ def indentation_matching_walrus_in_preview(): ) ) == 0 or len(set(names)) > 1: return + + +# behavior with parenthesized roots +x = ( + (aaaaaaaaaaaaaaaaaaaaaa) + .bbbbbbbbbbbbbbbbbbb.cccccccccccccccccccccccc() + .dddddddddddddddddddddddd() + .eeeeeeeeeeee +) ```