| Type Server Protocol(github.com) | |
| 248 points by adamnemecek 17 hours ago | 164 comments | |
tl;dr: The Type Server Protocol (TSP) is a JSON-RPC protocol—borrowing conventions from LSP—for querying a Python type server about snapshots, import resolution, search paths, and type information (computed, declared, and expected types). It uses snapshot IDs to version analysis state, returns tagged JSON type objects with discriminators for built-ins, functions, classes, unions, etc., and supports an optional multi-connection mode for concurrent read-only queries over IPC. The current 0.4.1 spec appears aligned with Pylance 2026.4.1, suggesting Microsoft is formalizing an interface between editors and Python type checkers. | |
HN Discussion:
| |