Add pyright strict mode on the whole project (#1254)

This commit is contained in:
Marcelo Trylesinski 2025-08-11 19:56:37 +02:00 • committed by GitHub
commit c7671e470c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2,6 +2,8 @@
Tests for completion handler with context functionality.
"""
from typing import Any
import pytest
from mcp.server.lowlevel import Server
@ -21,7 +23,7 @@ async def test_completion_handler_receives_context():
server = Server("test-server")
# Track what the handler receives
received_args = {}
received_args: dict[str, Any] = {}
@server.completion()
async def handle_completion(