Skip to content

Commit e5290b1

Browse files
committed
style: apply ruff formatting for schema typing
1 parent 2fd4b3b commit e5290b1

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/mcp/server/mcpserver/utilities/schema.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
JSONValue: TypeAlias = JSONPrimitive | list["JSONValue"] | dict[str, "JSONValue"]
2121
JSONObject: TypeAlias = dict[str, JSONValue]
2222

23+
2324
def dereference_local_refs(schema: JSONObject) -> JSONObject:
2425
"""Inline local ``$ref`` pointers in a JSON Schema.
2526
@@ -107,9 +108,7 @@ def inline(node: JSONValue, stack: set[str]) -> JSONValue:
107108
siblings: JSONObject = {k: v for k, v in node.items() if k != "$ref"}
108109
if siblings and isinstance(resolved, dict):
109110
resolved_schema = cast(JSONObject, resolved)
110-
resolved_siblings: JSONObject = {
111-
key: inline(value, stack) for key, value in siblings.items()
112-
}
111+
resolved_siblings: JSONObject = {key: inline(value, stack) for key, value in siblings.items()}
113112
return {**resolved_schema, **resolved_siblings}
114113
return resolved
115114

0 commit comments

Comments
 (0)