ruff: Fix ISC003 Explicitly concatenated string should be implicitly concatenated.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
parent
c471f26d45
commit
52a7b0b6a3
3 changed files with 7 additions and 8 deletions
|
@ -73,7 +73,7 @@ class TestConnectFourBot(BotTestCase, DefaultTests):
|
||||||
def test_game_message_handler_responses(self) -> None:
|
def test_game_message_handler_responses(self) -> None:
|
||||||
board = (
|
board = (
|
||||||
":one: :two: :three: :four: :five: :six: :seven:\n\n"
|
":one: :two: :three: :four: :five: :six: :seven:\n\n"
|
||||||
+ "\
|
"\
|
||||||
:white_circle: :white_circle: :white_circle: :white_circle: \
|
:white_circle: :white_circle: :white_circle: :white_circle: \
|
||||||
:white_circle: :white_circle: :white_circle: \n\n\
|
:white_circle: :white_circle: :white_circle: \n\n\
|
||||||
:white_circle: :white_circle: :white_circle: :white_circle: \
|
:white_circle: :white_circle: :white_circle: :white_circle: \
|
||||||
|
|
|
@ -22,11 +22,11 @@ class TestTriviaQuizBot(BotTestCase, DefaultTests):
|
||||||
|
|
||||||
new_question_response = (
|
new_question_response = (
|
||||||
"\nQ: Which class of animals are newts members of?\n\n"
|
"\nQ: Which class of animals are newts members of?\n\n"
|
||||||
+ "* **A** Amphibian\n"
|
"* **A** Amphibian\n"
|
||||||
+ "* **B** Fish\n"
|
"* **B** Fish\n"
|
||||||
+ "* **C** Reptiles\n"
|
"* **C** Reptiles\n"
|
||||||
+ "* **D** Mammals\n"
|
"* **D** Mammals\n"
|
||||||
+ "**reply**: answer Q001 <letter>"
|
"**reply**: answer Q001 <letter>"
|
||||||
)
|
)
|
||||||
|
|
||||||
def get_test_quiz(self) -> Tuple[Dict[str, Any], Any]:
|
def get_test_quiz(self) -> Tuple[Dict[str, Any], Any]:
|
||||||
|
|
|
@ -531,8 +531,7 @@ class GameAdapter:
|
||||||
self.instances[game_id] = GameInstance(self, False, subject, game_id, players, stream)
|
self.instances[game_id] = GameInstance(self, False, subject, game_id, players, stream)
|
||||||
self.broadcast(
|
self.broadcast(
|
||||||
game_id,
|
game_id,
|
||||||
f"The game has started in #{stream} {self.instances[game_id].subject}"
|
f"The game has started in #{stream} {self.instances[game_id].subject}\n"
|
||||||
+ "\n"
|
|
||||||
+ self.get_formatted_game_object(game_id),
|
+ self.get_formatted_game_object(game_id),
|
||||||
)
|
)
|
||||||
del self.invites[game_id]
|
del self.invites[game_id]
|
||||||
|
|
Loading…
Add table
Reference in a new issue