Skip to content

Commit 7dcd8db

Browse files
Mazyodclaude
andcommitted
chore: maintenance release v0.17.0
- Upgrade all dependencies (pyrefly 0.59.1, datamodel-code-generator 0.56.0, etc.) - Regenerate LSP types from latest schemas (nullable documentColor/colorPresentation, callHierarchy capabilities) - Add ty as optional project dependency (replacing system-level install) - Fix Pyrefly semantic tokens: add selfParameter modifier from upstream - Reformat with latest ruff Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent c9e4f21 commit 7dcd8db

14 files changed

Lines changed: 315 additions & 255 deletions

File tree

.github/workflows/python-tests.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,6 @@ jobs:
3939
- name: Add npm global bin to PATH
4040
run: echo "$HOME/.npm-global/bin" >> $GITHUB_PATH
4141

42-
- name: Install ty (Astral's type checker)
43-
run: uv tool install ty
44-
4542
- name: Test with pytest
4643
run: |
4744
uv run pytest tests

assets/lsprotocol/lsp.json

Lines changed: 38 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -159,11 +159,20 @@
159159
"method": "textDocument/documentColor",
160160
"typeName": "DocumentColorRequest",
161161
"result": {
162-
"kind": "array",
163-
"element": {
164-
"kind": "reference",
165-
"name": "ColorInformation"
166-
}
162+
"kind": "or",
163+
"items": [
164+
{
165+
"kind": "array",
166+
"element": {
167+
"kind": "reference",
168+
"name": "ColorInformation"
169+
}
170+
},
171+
{
172+
"kind": "base",
173+
"name": "null"
174+
}
175+
]
167176
},
168177
"messageDirection": "clientToServer",
169178
"clientCapability": "textDocument.colorProvider",
@@ -189,11 +198,20 @@
189198
"method": "textDocument/colorPresentation",
190199
"typeName": "ColorPresentationRequest",
191200
"result": {
192-
"kind": "array",
193-
"element": {
194-
"kind": "reference",
195-
"name": "ColorPresentation"
196-
}
201+
"kind": "or",
202+
"items": [
203+
{
204+
"kind": "array",
205+
"element": {
206+
"kind": "reference",
207+
"name": "ColorPresentation"
208+
}
209+
},
210+
{
211+
"kind": "base",
212+
"name": "null"
213+
}
214+
]
197215
},
198216
"messageDirection": "clientToServer",
199217
"clientCapability": "textDocument.colorProvider",
@@ -438,6 +456,8 @@
438456
]
439457
},
440458
"messageDirection": "clientToServer",
459+
"clientCapability": "textDocument.callHierarchy",
460+
"serverCapability": "callHierarchyProvider",
441461
"params": {
442462
"kind": "reference",
443463
"name": "CallHierarchyIncomingCallsParams"
@@ -472,6 +492,8 @@
472492
]
473493
},
474494
"messageDirection": "clientToServer",
495+
"clientCapability": "textDocument.callHierarchy",
496+
"serverCapability": "callHierarchyProvider",
475497
"params": {
476498
"kind": "reference",
477499
"name": "CallHierarchyOutgoingCallsParams"
@@ -6401,22 +6423,6 @@
64016423
{
64026424
"name": "RenameParams",
64036425
"properties": [
6404-
{
6405-
"name": "textDocument",
6406-
"type": {
6407-
"kind": "reference",
6408-
"name": "TextDocumentIdentifier"
6409-
},
6410-
"documentation": "The document to rename."
6411-
},
6412-
{
6413-
"name": "position",
6414-
"type": {
6415-
"kind": "reference",
6416-
"name": "Position"
6417-
},
6418-
"documentation": "The position at which this request was sent."
6419-
},
64206426
{
64216427
"name": "newName",
64226428
"type": {
@@ -6426,6 +6432,12 @@
64266432
"documentation": "The new name of the symbol. If the given name is not valid the\nrequest must return a {@link ResponseError} with an\nappropriate message set."
64276433
}
64286434
],
6435+
"extends": [
6436+
{
6437+
"kind": "reference",
6438+
"name": "TextDocumentPositionParams"
6439+
}
6440+
],
64296441
"mixins": [
64306442
{
64316443
"kind": "reference",

assets/lsps/pyright.schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"examples": [
4848
"Linux"
4949
],
50-
"pattern": "^(Linux|Windows|Darwin|All)$"
50+
"pattern": "^(Linux|Windows|Darwin|iOS|Android|All)$"
5151
},
5252
"disableBytesTypePromotions": {
5353
"type": "boolean",

0 commit comments

Comments
 (0)