Skip to content

Commit 41fb32d

Browse files
committed
style: fix ruff formatting errors
1 parent f6ccb6e commit 41fb32d

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

examples/snippets/clients/client_with_authorization.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
# Authorization layer
2626
# ---------------------------------------------------------------------------
2727

28+
2829
class Decision(str, Enum):
2930
ALLOW = "allow"
3031
DENY = "deny"
@@ -87,9 +88,9 @@ async def authorized_call_tool(
8788
if result.decision == Decision.ALLOW:
8889
try:
8990
tool_result = await session.call_tool(tool_name, arguments)
90-
91+
9192
# Safely extract text output if present
92-
output = tool_result.content[0].text if getattr(tool_result, 'content', None) else str(tool_result)
93+
output = tool_result.content[0].text if getattr(tool_result, "content", None) else str(tool_result)
9394
print(f" Result : {output}")
9495
return tool_result
9596
except Exception as e:
@@ -114,7 +115,7 @@ async def authorized_call_tool(
114115
# We use mcpserver_quickstart to have a reliable server to connect to
115116
server_params = StdioServerParameters(
116117
command="uv",
117-
args=["--directory", "examples/snippets", "run", "server", "mcpserver_quickstart", "stdio"],
118+
args=["--directory", "examples/snippets", "run", "server", "mcpserver_quickstart", "stdio"],
118119
env={"UV_INDEX": os.environ.get("UV_INDEX", "")},
119120
)
120121

0 commit comments

Comments
 (0)