Skip to content

Commit 52a7b0b

Browse files
committed
ruff: Fix ISC003 Explicitly concatenated string should be implicitly concatenated.
Signed-off-by: Anders Kaseorg <[email protected]>
1 parent c471f26 commit 52a7b0b

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

zulip_bots/zulip_bots/bots/connect_four/test_connect_four.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def test_static_responses(self) -> None:
7373
def test_game_message_handler_responses(self) -> None:
7474
board = (
7575
":one: :two: :three: :four: :five: :six: :seven:\n\n"
76-
+ "\
76+
"\
7777
:white_circle: :white_circle: :white_circle: :white_circle: \
7878
:white_circle: :white_circle: :white_circle: \n\n\
7979
:white_circle: :white_circle: :white_circle: :white_circle: \

zulip_bots/zulip_bots/bots/trivia_quiz/test_trivia_quiz.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ class TestTriviaQuizBot(BotTestCase, DefaultTests):
2222

2323
new_question_response = (
2424
"\nQ: Which class of animals are newts members of?\n\n"
25-
+ "* **A** Amphibian\n"
26-
+ "* **B** Fish\n"
27-
+ "* **C** Reptiles\n"
28-
+ "* **D** Mammals\n"
29-
+ "**reply**: answer Q001 <letter>"
25+
"* **A** Amphibian\n"
26+
"* **B** Fish\n"
27+
"* **C** Reptiles\n"
28+
"* **D** Mammals\n"
29+
"**reply**: answer Q001 <letter>"
3030
)
3131

3232
def get_test_quiz(self) -> Tuple[Dict[str, Any], Any]:

zulip_bots/zulip_bots/game_handler.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -531,8 +531,7 @@ def start_game(self, game_id: str) -> None:
531531
self.instances[game_id] = GameInstance(self, False, subject, game_id, players, stream)
532532
self.broadcast(
533533
game_id,
534-
f"The game has started in #{stream} {self.instances[game_id].subject}"
535-
+ "\n"
534+
f"The game has started in #{stream} {self.instances[game_id].subject}\n"
536535
+ self.get_formatted_game_object(game_id),
537536
)
538537
del self.invites[game_id]

0 commit comments

Comments
 (0)