Skip to content

Commit b1a0913

Browse files
committed
ruff
1 parent 4f326bd commit b1a0913

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

examples/snippets/servers/elicitation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ async def book_table(
2727
if date == "2024-12-25":
2828
# Date unavailable - ask user for alternative
2929
result = await ctx.elicit(
30-
message=(f"No tables available for {party_size} on {date}. " "Would you like to try another date?"),
30+
message=(f"No tables available for {party_size} on {date}. Would you like to try another date?"),
3131
schema=BookingPreferences,
3232
)
3333

scripts/update_readme_snippets.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def process_snippet_block(match: re.Match, check_mode: bool = False) -> str:
5454
github_url = get_github_url(file_path)
5555

5656
# Build the replacement block
57-
indented_code = code.replace('\n', f'\n{indent}')
57+
indented_code = code.replace("\n", f"\n{indent}")
5858
replacement = f"""{indent}<!-- snippet-source {file_path} -->
5959
{indent}```python
6060
{indent}{indented_code}
@@ -80,7 +80,7 @@ def process_snippet_block(match: re.Match, check_mode: bool = False) -> str:
8080
code_lines.append(line)
8181
existing_code = "\n".join(code_lines).strip()
8282
# Compare with the indented version we would generate
83-
expected_code = code.replace('\n', f'\n{indent}').strip()
83+
expected_code = code.replace("\n", f"\n{indent}").strip()
8484
if existing_code == expected_code:
8585
return full_match
8686

0 commit comments

Comments
 (0)