-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8f57e92
commit b8cd487
Showing
8 changed files
with
201 additions
and
94 deletions.
There are no files selected for viewing
23 changes: 17 additions & 6 deletions
23
crates/ruff_fmt/test_data/black/cases/preview_context_managers_38.py.expect
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,29 @@ | ||
with make_context_manager1() as cm1, make_context_manager2() as cm2, make_context_manager3() as cm3, make_context_manager4() as cm4: | ||
with ( | ||
make_context_manager1() as cm1, | ||
make_context_manager2() as cm2, | ||
make_context_manager3() as cm3, | ||
make_context_manager4() as cm4, | ||
): | ||
pass | ||
|
||
|
||
with make_context_manager1() as cm1, make_context_manager2(), make_context_manager3() as cm3, make_context_manager4(): | ||
with ( | ||
make_context_manager1() as cm1, | ||
make_context_manager2(), | ||
make_context_manager3() as cm3, | ||
make_context_manager4(), | ||
): | ||
pass | ||
|
||
|
||
with new_new_new1() as cm1, new_new_new2(): | ||
pass | ||
|
||
|
||
with mock.patch.object( | ||
self.my_runner, "first_method", autospec=True | ||
) as mock_run_adb, mock.patch.object( | ||
self.my_runner, "second_method", autospec=True, return_value="foo" | ||
with ( | ||
mock.patch.object(self.my_runner, "first_method", autospec=True) as mock_run_adb, | ||
mock.patch.object( | ||
self.my_runner, "second_method", autospec=True, return_value="foo" | ||
), | ||
): | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 6 additions & 1 deletion
7
crates/ruff_fmt/test_data/black/cases/preview_context_managers_autodetect_39.py.expect
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.