Skip to content

Commit fbb2e68

Browse files
refactor: update read_doc function to use ellipsis for no-op implementation in test_unknown_argument_raises_validation_error
1 parent 5b4a5e6 commit fbb2e68

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

tests/server/mcpserver/test_func_metadata.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1302,8 +1302,7 @@ def fn() -> CallToolResult | str | InputRequiredResult: ... # pragma: no branch
13021302
def test_unknown_argument_raises_validation_error():
13031303
"""SDK-defined: a tools/call argument name not on the tool schema fails validation."""
13041304

1305-
def read_doc(topic: str = "") -> str:
1306-
return topic
1305+
def read_doc(topic: str = "") -> str: ... # pragma: no branch
13071306

13081307
meta = func_metadata(read_doc)
13091308
with pytest.raises(ValidationError):

0 commit comments

Comments
 (0)