Skip to content

Commit 597ef40

Browse files
committed
fix: resolve ruff lint warning and configure pyright for Python 3.10
1 parent 53d58e6 commit 597ef40

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ Issues = "https://github.com/modelcontextprotocol/python-sdk/issues"
100100
packages = ["src/mcp"]
101101

102102
[tool.pyright]
103+
pythonVersion = "3.10"
103104
typeCheckingMode = "strict"
104105
include = [
105106
"src/mcp",

src/mcp/server/lowlevel/func_inspection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def create_call_wrapper(func: Callable[..., R], request_type: type[T]) -> Callab
3131
if param.default is not inspect.Parameter.empty: # pragma: no cover
3232
return lambda _: func()
3333
# Found positional-only parameter with correct type and no default
34-
return lambda req: func(req)
34+
return func
3535

3636
# Check for any positional/keyword parameter typed as request_type
3737
for param_name, param in sig.parameters.items():

0 commit comments

Comments
 (0)