ruff: Fix ISC003 Explicitly concatenated string should be implicitly concatenated.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2023-10-27 22:14:04 -07:00
parent c471f26d45
commit 52a7b0b6a3
3 changed files with 7 additions and 8 deletions

View file

@ -73,7 +73,7 @@ class TestConnectFourBot(BotTestCase, DefaultTests):
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: \

View file

@ -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]:

View file

@ -531,8 +531,7 @@ class GameAdapter:
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]