Skip to content

Commit 76a7af1

Browse files
committed
regenerate LSP types
1 parent dd73213 commit 76a7af1

3 files changed

Lines changed: 18 additions & 2 deletions

File tree

assets/lsps/pyright.schema.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -494,6 +494,11 @@
494494
"title": "Controls reporting of 'match' statements that do not exhaustively match all possible values",
495495
"default": "none"
496496
},
497+
"reportUnreachable": {
498+
"$ref": "#/definitions/diagnostic",
499+
"title": "Controls reporting of code that is determined by type analysis to be unreachable",
500+
"default": "none"
501+
},
497502
"reportShadowedImports": {
498503
"$ref": "#/definitions/diagnostic",
499504
"title": "Controls reporting of shadowed imports of stdlib modules",
@@ -855,6 +860,9 @@
855860
"reportMatchNotExhaustive": {
856861
"$ref": "#/definitions/reportMatchNotExhaustive"
857862
},
863+
"reportUnreachable": {
864+
"$ref": "#/definitions/reportUnreachable"
865+
},
858866
"reportShadowedImports": {
859867
"$ref": "#/definitions/reportShadowedImports"
860868
},
@@ -1173,6 +1181,9 @@
11731181
"reportMatchNotExhaustive": {
11741182
"$ref": "#/definitions/reportMatchNotExhaustive"
11751183
},
1184+
"reportUnreachable": {
1185+
"$ref": "#/definitions/reportUnreachable"
1186+
},
11761187
"reportShadowedImports": {
11771188
"$ref": "#/definitions/reportShadowedImports"
11781189
},

assets/scripts/lsp_schema.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# generated by datamodel-codegen:
22
# filename: lsp.schema.json
3-
# timestamp: 2025-02-25T17:54:27+00:00
3+
# timestamp: 2025-08-03T05:12:32+00:00
44

55
from __future__ import annotations
66

lsp_types/pyright/config_schema.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# generated by datamodel-codegen:
22
# filename: pyright.schema.json
3-
# timestamp: 2025-02-25T17:54:27+00:00
3+
# timestamp: 2025-08-03T05:12:33+00:00
44

55
from __future__ import annotations
66

@@ -285,6 +285,9 @@
285285
ReportMatchNotExhaustive = Diagnostic
286286

287287

288+
ReportUnreachable = Diagnostic
289+
290+
288291
ReportShadowedImports = Diagnostic
289292

290293

@@ -384,6 +387,7 @@ class ExecutionEnvironment(TypedDict):
384387
reportUnusedExpression: NotRequired[ReportUnusedExpression]
385388
reportUnnecessaryTypeIgnoreComment: NotRequired[ReportUnnecessaryTypeIgnoreComment]
386389
reportMatchNotExhaustive: NotRequired[ReportMatchNotExhaustive]
390+
reportUnreachable: NotRequired[ReportUnreachable]
387391
reportShadowedImports: NotRequired[ReportShadowedImports]
388392
reportImplicitOverride: NotRequired[ReportImplicitOverride]
389393
extraPaths: NotRequired[ExtraPaths]
@@ -497,6 +501,7 @@ class Model(TypedDict):
497501
reportUnusedExpression: NotRequired[ReportUnusedExpression]
498502
reportUnnecessaryTypeIgnoreComment: NotRequired[ReportUnnecessaryTypeIgnoreComment]
499503
reportMatchNotExhaustive: NotRequired[ReportMatchNotExhaustive]
504+
reportUnreachable: NotRequired[ReportUnreachable]
500505
reportShadowedImports: NotRequired[ReportShadowedImports]
501506
reportImplicitOverride: NotRequired[ReportImplicitOverride]
502507
extraPaths: NotRequired[ExtraPaths]

0 commit comments

Comments
 (0)