-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Closed
Labels
F: linebreakHow should we split up lines?How should we split up lines?F: parenthesesToo many parentheses, not enough parentheses, and so on.Too many parentheses, not enough parentheses, and so on.T: bugSomething isn't workingSomething isn't working
Description
Before:
with (
mock.patch.object(
self.xxx_xxxxxx, "xxxxxxxxxx", autospec=True
),
mock.patch.object(
self.xxx_xxxxxx, "xxxxxxxxxx", autospec=True, return_value="xxxx"
)
):
pass
with (
mock.patch.object(
self.xxx_xxxxxx, "xxxxxxxxxx", autospec=True
) as a,
mock.patch.object(
self.xxx_xxxxxx, "xxxxxxxxxx", autospec=True, return_value="xxxx"
)
):
pass
with (
mock.patch.object(
self.xxx_xxxxxx, "xxxxxxxxxx", autospec=True
),
mock.patch.object(
self.xxx_xxxxxx, "xxxxxxxxxx", autospec=True, return_value="xxxx"
) as b
):
pass
with (
mock.patch.object(
self.xxx_xxxxxx, "xxxxxxxxxx", autospec=True
),
mock.patch.object(
self.xxx_xxxxxx, "xxxxxxxxxx", autospec=True, return_value="xxxx"
),
):
pass
After:
with mock.patch.object(self.xxx_xxxxxx, "xxxxxxxxxx", autospec=True), mock.patch.object(
self.xxx_xxxxxx, "xxxxxxxxxx", autospec=True, return_value="xxxx"
):
pass
with mock.patch.object(
self.xxx_xxxxxx, "xxxxxxxxxx", autospec=True
) as a, mock.patch.object(
self.xxx_xxxxxx, "xxxxxxxxxx", autospec=True, return_value="xxxx"
):
pass
with (
mock.patch.object(self.xxx_xxxxxx, "xxxxxxxxxx", autospec=True),
mock.patch.object(
self.xxx_xxxxxx, "xxxxxxxxxx", autospec=True, return_value="xxxx"
) as b,
):
pass
with (
mock.patch.object(self.xxx_xxxxxx, "xxxxxxxxxx", autospec=True),
mock.patch.object(
self.xxx_xxxxxx, "xxxxxxxxxx", autospec=True, return_value="xxxx"
),
):
pass
I'll work on a fix.
Metadata
Metadata
Assignees
Labels
F: linebreakHow should we split up lines?How should we split up lines?F: parenthesesToo many parentheses, not enough parentheses, and so on.Too many parentheses, not enough parentheses, and so on.T: bugSomething isn't workingSomething isn't working