Skip to content

Commit b6fcff1

Browse files
style: wrap long function signature to pass ruff-format
Pre-commit ruff-format check failed because the return type annotation for get_headers() in the test exceeded line-length limits. Wrap it to three lines to satisfy the formatter.
1 parent f5c406f commit b6fcff1

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

tests/server/mcpserver/test_func_metadata.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,9 @@ def get_config() -> Annotated[dict[str, int], Field(description="Configuration v
261261
)
262262

263263
# Additional metadata (title, max_length, etc.) should also be preserved
264-
def get_headers() -> Annotated[dict[str, str], Field(description="HTTP headers", title="Headers")]: # pragma: no cover
264+
def get_headers() -> Annotated[
265+
dict[str, str], Field(description="HTTP headers", title="Headers")
266+
]: # pragma: no cover
265267
return {"Content-Type": "application/json"}
266268

267269
meta2 = func_metadata(get_headers)

0 commit comments

Comments
 (0)