Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jun 3, 2024
1 parent 0b25a0b commit 0e0a23b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
8 changes: 5 additions & 3 deletions examples/playground.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,11 @@ async def main():

await client.send_message(
"@TgIntegration",
"You did not reply :("
if response.is_empty
else f"You replied with: {response.full_text}",
(
"You did not reply :("
if response.is_empty
else f"You replied with: {response.full_text}"
),
)


Expand Down
6 changes: 3 additions & 3 deletions tgintegration/botcontroller.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,9 +215,9 @@ async def collect(
timeouts=TimeoutSettings(
max_wait=max_wait,
wait_consecutive=wait_consecutive,
raise_on_timeout=raise_
if raise_ is not None
else self.raise_no_response,
raise_on_timeout=(
raise_ if raise_ is not None else self.raise_no_response
),
),
) as response:
yield response
Expand Down
2 changes: 1 addition & 1 deletion tgintegration/update_recorder.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ async def record_message(self, _, message: Message):
async with self._lock:
message.exact_timestamp = time.time()
self.messages.append(message)
for (pred, ev) in self._event_conditions:
for pred, ev in self._event_conditions:
if pred(self.messages):
ev.set()

Expand Down

0 comments on commit 0e0a23b

Please sign in to comment.