Skip to content

Commit b207aa8

Browse files
committed
Sync pyright schema with v1.1.350
1 parent 5afe3b4 commit b207aa8

File tree

2 files changed

+103
-0
lines changed

2 files changed

+103
-0
lines changed

python_packages/jupyter_lsp/jupyter_lsp/specs/config/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ These are configuration schemas extracted from canonical upstreams:
66
- [pylsp](https://github.com/python-lsp/python-lsp-server/blob/develop/pylsp/config/schema.json)
77
- [dockerfile-language-server-nodejs](https://github.com/microsoft/vscode-docker/blob/master/package.json)
88
- [yaml-language-server](https://github.com/redhat-developer/vscode-yaml/blob/master/package.json)
9+
- [pyright](https://github.com/microsoft/pyright/blob/main/packages/vscode-pyright/package.json)
910

1011
> All of the configurations are sent to the Language Server, but only some of them
1112
> are actually acted upon, but we don't know which is which, yet.

python_packages/jupyter_lsp/jupyter_lsp/specs/config/pyright.schema.json

Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,12 @@
7878
"default": "warning",
7979
"enum": ["none", "information", "warning", "error"]
8080
},
81+
"reportInvalidTypeForm": {
82+
"type": "string",
83+
"description": "Diagnostics for type expression that uses an invalid form.",
84+
"default": "error",
85+
"enum": ["none", "information", "warning", "error"]
86+
},
8187
"reportMissingTypeStubs": {
8288
"type": "string",
8389
"description": "Diagnostics for imports that have no corresponding type stub file (either a typeshed file or a custom type stub). The type checker requires type stubs to do its best job at analysis.",
@@ -126,6 +132,72 @@
126132
"default": "warning",
127133
"enum": ["none", "information", "warning", "error"]
128134
},
135+
"reportAbstractUsage": {
136+
"type": "string",
137+
"description": "Diagnostics for an attempt to instantiate an abstract or protocol class or use an abstract method.",
138+
"default": "error",
139+
"enum": ["none", "information", "warning", "error"]
140+
},
141+
"reportArgumentType": {
142+
"type": "string",
143+
"description": "Diagnostics for a type incompatibility for an argument to a call.",
144+
"default": "error",
145+
"enum": ["none", "information", "warning", "error"]
146+
},
147+
"reportAssertTypeFailure": {
148+
"type": "string",
149+
"description": "Diagnostics for a type incompatibility detected by a typing.assert_type call.",
150+
"default": "error",
151+
"enum": ["none", "information", "warning", "error"]
152+
},
153+
"reportAssignmentType": {
154+
"type": "string",
155+
"description": "Diagnostics for type incompatibilities for assignments.",
156+
"default": "error",
157+
"enum": ["none", "information", "warning", "error"]
158+
},
159+
"reportAttributeAccessIssue": {
160+
"type": "string",
161+
"description": "Diagnostics for issues involving attribute accesses.",
162+
"default": "error",
163+
"enum": ["none", "information", "warning", "error"]
164+
},
165+
"reportCallIssue": {
166+
"type": "string",
167+
"description": "Diagnostics for issues involving call expressions and arguments.",
168+
"default": "error",
169+
"enum": ["none", "information", "warning", "error"]
170+
},
171+
"reportInconsistentOverload": {
172+
"type": "string",
173+
"description": "Diagnostics for inconsistencies between function overload signatures and implementation.",
174+
"default": "error",
175+
"enum": ["none", "information", "warning", "error"]
176+
},
177+
"reportIndexIssue": {
178+
"type": "string",
179+
"description": "Diagnostics related to index operations and expressions.",
180+
"default": "error",
181+
"enum": ["none", "information", "warning", "error"]
182+
},
183+
"reportInvalidTypeArguments": {
184+
"type": "string",
185+
"description": "Diagnostics for invalid type argument usage.",
186+
"default": "error",
187+
"enum": ["none", "information", "warning", "error"]
188+
},
189+
"reportNoOverloadImplementation": {
190+
"type": "string",
191+
"description": "Diagnostics for an overloaded function or method with a missing implementation.",
192+
"default": "error",
193+
"enum": ["none", "information", "warning", "error"]
194+
},
195+
"reportOperatorIssue": {
196+
"type": "string",
197+
"description": "Diagnostics for related to unary or binary operators.",
198+
"default": "error",
199+
"enum": ["none", "information", "warning", "error"]
200+
},
129201
"reportOptionalSubscript": {
130202
"type": "string",
131203
"description": "Diagnostics for an attempt to subscript (index) a variable with an Optional type.",
@@ -162,6 +234,18 @@
162234
"default": "error",
163235
"enum": ["none", "information", "warning", "error"]
164236
},
237+
"reportRedeclaration": {
238+
"type": "string",
239+
"description": "Diagnostics for an attempt to declare the type of a symbol multiple times.",
240+
"default": "error",
241+
"enum": ["none", "information", "warning", "error"]
242+
},
243+
"reportReturnType": {
244+
"type": "string",
245+
"description": "Diagnostics related to function return type compatibility.",
246+
"default": "error",
247+
"enum": ["none", "information", "warning", "error"]
248+
},
165249
"reportTypedDictNotRequiredAccess": {
166250
"type": "string",
167251
"description": "Diagnostics for an attempt to access a non-required key within a TypedDict without a check for its presence.",
@@ -246,6 +330,12 @@
246330
"default": "none",
247331
"enum": ["none", "information", "warning", "error"]
248332
},
333+
"reportPossiblyUnboundVariable": {
334+
"type": "string",
335+
"description": "Diagnostics for the use of variables that may be unbound on some code paths.",
336+
"default": "error",
337+
"enum": ["none", "information", "warning", "error"]
338+
},
249339
"reportMissingSuperCall": {
250340
"type": "string",
251341
"description": "Diagnostics for missing call to parent class for inherited `__init__` methods.",
@@ -402,6 +492,12 @@
402492
"default": "error",
403493
"enum": ["none", "information", "warning", "error"]
404494
},
495+
"reportUnusedExcept": {
496+
"type": "string",
497+
"description": "Diagnostics for unreachable except clause.",
498+
"default": "error",
499+
"enum": ["none", "information", "warning", "error"]
500+
},
405501
"reportUnusedExpression": {
406502
"type": "string",
407503
"description": "Diagnostics for simple expressions whose value is not used in any way.",
@@ -468,6 +564,12 @@
468564
"description": "Disables type completion, definitions, and references.",
469565
"scope": "resource"
470566
},
567+
"pyright.disableTaggedHints": {
568+
"type": "boolean",
569+
"default": false,
570+
"description": "Disable hint diagnostics with special hints for grayed-out or strike-through text.",
571+
"scope": "resource"
572+
},
471573
"pyright.disableOrganizeImports": {
472574
"type": "boolean",
473575
"default": false,

0 commit comments

Comments
 (0)