diff --git a/crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/stub_functions_trailing_comments.py b/crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/stub_functions_trailing_comments.py index e83c4250816d6..04ab35d22e774 100644 --- a/crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/stub_functions_trailing_comments.py +++ b/crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/stub_functions_trailing_comments.py @@ -23,3 +23,6 @@ def foo(self) -> None: ... # comment 5 def baz(self) -> None: return None + +def foo(self) -> None: ... +# comment 5 diff --git a/crates/ruff_python_formatter/tests/snapshots/format@statement__stub_functions_trailing_comments.py.snap b/crates/ruff_python_formatter/tests/snapshots/format@statement__stub_functions_trailing_comments.py.snap index 23434a04e5747..39b3ecb94b1a8 100644 --- a/crates/ruff_python_formatter/tests/snapshots/format@statement__stub_functions_trailing_comments.py.snap +++ b/crates/ruff_python_formatter/tests/snapshots/format@statement__stub_functions_trailing_comments.py.snap @@ -29,6 +29,9 @@ def foo(self) -> None: ... # comment 5 def baz(self) -> None: return None + +def foo(self) -> None: ... +# comment 5 ``` ## Output @@ -65,4 +68,10 @@ def baz(self) -> None: def foo(self) -> None: ... # comment 5 def baz(self) -> None: return None + + +def foo(self) -> None: ... + + +# comment 5 ```