Skip to content

Commit

Permalink
ruff: Fix ISC003 Explicitly concatenated string should be implicitly …
Browse files Browse the repository at this point in the history
…concatenated.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
  • Loading branch information
andersk committed Oct 28, 2023
1 parent c471f26 commit 52a7b0b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def test_static_responses(self) -> None:
def test_game_message_handler_responses(self) -> None:
board = (
":one: :two: :three: :four: :five: :six: :seven:\n\n"
+ "\
"\
:white_circle: :white_circle: :white_circle: :white_circle: \
:white_circle: :white_circle: :white_circle: \n\n\
:white_circle: :white_circle: :white_circle: :white_circle: \
Expand Down
10 changes: 5 additions & 5 deletions zulip_bots/zulip_bots/bots/trivia_quiz/test_trivia_quiz.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ class TestTriviaQuizBot(BotTestCase, DefaultTests):

new_question_response = (
"\nQ: Which class of animals are newts members of?\n\n"
+ "* **A** Amphibian\n"
+ "* **B** Fish\n"
+ "* **C** Reptiles\n"
+ "* **D** Mammals\n"
+ "**reply**: answer Q001 <letter>"
"* **A** Amphibian\n"
"* **B** Fish\n"
"* **C** Reptiles\n"
"* **D** Mammals\n"
"**reply**: answer Q001 <letter>"
)

def get_test_quiz(self) -> Tuple[Dict[str, Any], Any]:
Expand Down
3 changes: 1 addition & 2 deletions zulip_bots/zulip_bots/game_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -531,8 +531,7 @@ def start_game(self, game_id: str) -> None:
self.instances[game_id] = GameInstance(self, False, subject, game_id, players, stream)
self.broadcast(
game_id,
f"The game has started in #{stream} {self.instances[game_id].subject}"
+ "\n"
f"The game has started in #{stream} {self.instances[game_id].subject}\n"
+ self.get_formatted_game_object(game_id),
)
del self.invites[game_id]
Expand Down

0 comments on commit 52a7b0b

Please sign in to comment.