coc-pyright 1.1.333 → 1.1.335
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/lib/index.js +2021 -1979
- package/package.json +495 -148
- package/pythonFiles/sortImports.py +0 -13
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "coc-pyright",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.335",
|
|
4
4
|
"description": "Pyright extension for coc.nvim, static type checker for Python",
|
|
5
5
|
"author": "Heyward Fann <fannheyward@gmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"@types/which": "^3.0.0",
|
|
43
43
|
"@typescript-eslint/eslint-plugin": "^6.4.1",
|
|
44
44
|
"@typescript-eslint/parser": "^6.4.1",
|
|
45
|
-
"@zzzen/pyright-internal": "^1.2.0-dev.
|
|
45
|
+
"@zzzen/pyright-internal": "^1.2.0-dev.20231105",
|
|
46
46
|
"coc.nvim": "^0.0.83-next.18",
|
|
47
47
|
"diff-match-patch": "^1.0.5",
|
|
48
48
|
"esbuild": "^0.19.2",
|
|
@@ -159,716 +159,1063 @@
|
|
|
159
159
|
],
|
|
160
160
|
"scope": "resource"
|
|
161
161
|
},
|
|
162
|
+
"python.analysis.include": {
|
|
163
|
+
"type": "array",
|
|
164
|
+
"default": [],
|
|
165
|
+
"items": {
|
|
166
|
+
"type": "string"
|
|
167
|
+
},
|
|
168
|
+
"description": "Paths of directories or files that should be included. If no paths are specified, pyright defaults to the workspace root directory. Paths may contain wildcard characters ** (a directory or multiple levels of directories), * (a sequence of zero or more characters), or ? (a single character).",
|
|
169
|
+
"scope": "resource"
|
|
170
|
+
},
|
|
171
|
+
"python.analysis.exclude": {
|
|
172
|
+
"type": "array",
|
|
173
|
+
"default": [],
|
|
174
|
+
"items": {
|
|
175
|
+
"type": "string"
|
|
176
|
+
},
|
|
177
|
+
"description": "Paths of directories or files that should not be included. These override the include directories, allowing specific subdirectories to be excluded. Note that files in the exclude paths may still be included in the analysis if they are referenced (imported) by source files that are not excluded. Paths may contain wildcard characters ** (a directory or multiple levels of directories), * (a sequence of zero or more characters), or ? (a single character). If no exclude paths are specified, pyright automatically excludes the following: `**/node_modules`, `**/__pycache__`, `.git` and any virtual environment directories.",
|
|
178
|
+
"scope": "resource"
|
|
179
|
+
},
|
|
180
|
+
"python.analysis.ignore": {
|
|
181
|
+
"type": "array",
|
|
182
|
+
"default": [],
|
|
183
|
+
"items": {
|
|
184
|
+
"type": "string"
|
|
185
|
+
},
|
|
186
|
+
"description": "Paths of directories or files whose diagnostic output (errors and warnings) should be suppressed even if they are an included file or within the transitive closure of an included file. Paths may contain wildcard characters ** (a directory or multiple levels of directories), * (a sequence of zero or more characters), or ? (a single character). If no value is provided, the value of python.linting.ignorePatterns (if set) will be used.",
|
|
187
|
+
"scope": "resource"
|
|
188
|
+
},
|
|
162
189
|
"python.analysis.diagnosticSeverityOverrides": {
|
|
163
190
|
"type": "object",
|
|
164
|
-
"description": "Allows a user to override the severity levels for individual diagnostics.",
|
|
191
|
+
"description": "Allows a user to override the severity levels for individual diagnostics. Use the rule name as a key and one of \"error\", \"warning\", \"information\", \"none\", `true` (alias for \"error\") or `false` (alias for \"none\") as value. The default value shown for each diagnostic is the default when \"python.analysis.typeCheckingMode\" is set to \"basic\". See [here](https://github.com/microsoft/pyright/blob/main/docs/configuration.md#diagnostic-rule-defaults) for defaults for each type checking mode (\"off\", \"basic\" and \"strict\").",
|
|
192
|
+
"scope": "resource",
|
|
165
193
|
"properties": {
|
|
166
194
|
"reportGeneralTypeIssues": {
|
|
167
|
-
"type":
|
|
195
|
+
"type": [
|
|
196
|
+
"string",
|
|
197
|
+
"boolean"
|
|
198
|
+
],
|
|
168
199
|
"description": "Diagnostics for general type inconsistencies, unsupported operations, argument/parameter mismatches, etc. Covers all of the basic type-checking rules not covered by other rules. Does not include syntax errors.",
|
|
169
200
|
"default": "error",
|
|
170
201
|
"enum": [
|
|
171
202
|
"none",
|
|
172
203
|
"information",
|
|
173
204
|
"warning",
|
|
174
|
-
"error"
|
|
205
|
+
"error",
|
|
206
|
+
true,
|
|
207
|
+
false
|
|
175
208
|
]
|
|
176
209
|
},
|
|
177
210
|
"reportPropertyTypeMismatch": {
|
|
178
|
-
"type":
|
|
211
|
+
"type": [
|
|
212
|
+
"string",
|
|
213
|
+
"boolean"
|
|
214
|
+
],
|
|
179
215
|
"description": "Diagnostics for property whose setter and getter have mismatched types.",
|
|
180
216
|
"default": "none",
|
|
181
217
|
"enum": [
|
|
182
218
|
"none",
|
|
183
219
|
"information",
|
|
184
220
|
"warning",
|
|
185
|
-
"error"
|
|
221
|
+
"error",
|
|
222
|
+
true,
|
|
223
|
+
false
|
|
186
224
|
]
|
|
187
225
|
},
|
|
188
226
|
"reportFunctionMemberAccess": {
|
|
189
|
-
"type":
|
|
227
|
+
"type": [
|
|
228
|
+
"string",
|
|
229
|
+
"boolean"
|
|
230
|
+
],
|
|
190
231
|
"description": "Diagnostics for member accesses on functions.",
|
|
191
232
|
"default": "none",
|
|
192
233
|
"enum": [
|
|
193
234
|
"none",
|
|
194
235
|
"information",
|
|
195
236
|
"warning",
|
|
196
|
-
"error"
|
|
237
|
+
"error",
|
|
238
|
+
true,
|
|
239
|
+
false
|
|
197
240
|
]
|
|
198
241
|
},
|
|
199
242
|
"reportMissingImports": {
|
|
200
|
-
"type":
|
|
243
|
+
"type": [
|
|
244
|
+
"string",
|
|
245
|
+
"boolean"
|
|
246
|
+
],
|
|
201
247
|
"description": "Diagnostics for imports that have no corresponding imported python file or type stub file.",
|
|
202
248
|
"default": "error",
|
|
203
249
|
"enum": [
|
|
204
250
|
"none",
|
|
205
251
|
"information",
|
|
206
252
|
"warning",
|
|
207
|
-
"error"
|
|
253
|
+
"error",
|
|
254
|
+
true,
|
|
255
|
+
false
|
|
208
256
|
]
|
|
209
257
|
},
|
|
210
258
|
"reportMissingModuleSource": {
|
|
211
|
-
"type":
|
|
259
|
+
"type": [
|
|
260
|
+
"string",
|
|
261
|
+
"boolean"
|
|
262
|
+
],
|
|
212
263
|
"description": "Diagnostics for imports that have no corresponding source file. This happens when a type stub is found, but the module source file was not found, indicating that the code may fail at runtime when using this execution environment. Type checking will be done using the type stub.",
|
|
213
264
|
"default": "warning",
|
|
214
265
|
"enum": [
|
|
215
266
|
"none",
|
|
216
267
|
"information",
|
|
217
268
|
"warning",
|
|
218
|
-
"error"
|
|
269
|
+
"error",
|
|
270
|
+
true,
|
|
271
|
+
false
|
|
219
272
|
]
|
|
220
273
|
},
|
|
221
274
|
"reportMissingTypeStubs": {
|
|
222
|
-
"type":
|
|
275
|
+
"type": [
|
|
276
|
+
"string",
|
|
277
|
+
"boolean"
|
|
278
|
+
],
|
|
223
279
|
"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.",
|
|
224
280
|
"default": "none",
|
|
225
281
|
"enum": [
|
|
226
282
|
"none",
|
|
227
283
|
"information",
|
|
228
284
|
"warning",
|
|
229
|
-
"error"
|
|
285
|
+
"error",
|
|
286
|
+
true,
|
|
287
|
+
false
|
|
230
288
|
]
|
|
231
289
|
},
|
|
232
290
|
"reportImportCycles": {
|
|
233
|
-
"type":
|
|
291
|
+
"type": [
|
|
292
|
+
"string",
|
|
293
|
+
"boolean"
|
|
294
|
+
],
|
|
234
295
|
"description": "Diagnostics for cyclical import chains. These are not errors in Python, but they do slow down type analysis and often hint at architectural layering issues. Generally, they should be avoided.",
|
|
235
296
|
"default": "none",
|
|
236
297
|
"enum": [
|
|
237
298
|
"none",
|
|
238
299
|
"information",
|
|
239
300
|
"warning",
|
|
240
|
-
"error"
|
|
301
|
+
"error",
|
|
302
|
+
true,
|
|
303
|
+
false
|
|
241
304
|
]
|
|
242
305
|
},
|
|
243
306
|
"reportUnusedImport": {
|
|
244
|
-
"type":
|
|
307
|
+
"type": [
|
|
308
|
+
"string",
|
|
309
|
+
"boolean"
|
|
310
|
+
],
|
|
245
311
|
"description": "Diagnostics for an imported symbol that is not referenced within that file.",
|
|
246
312
|
"default": "none",
|
|
247
313
|
"enum": [
|
|
248
314
|
"none",
|
|
249
315
|
"information",
|
|
250
316
|
"warning",
|
|
251
|
-
"error"
|
|
317
|
+
"error",
|
|
318
|
+
true,
|
|
319
|
+
false
|
|
252
320
|
]
|
|
253
321
|
},
|
|
254
322
|
"reportUnusedClass": {
|
|
255
|
-
"type":
|
|
323
|
+
"type": [
|
|
324
|
+
"string",
|
|
325
|
+
"boolean"
|
|
326
|
+
],
|
|
256
327
|
"description": "Diagnostics for a class with a private name (starting with an underscore) that is not accessed.",
|
|
257
328
|
"default": "none",
|
|
258
329
|
"enum": [
|
|
259
330
|
"none",
|
|
260
331
|
"information",
|
|
261
332
|
"warning",
|
|
262
|
-
"error"
|
|
333
|
+
"error",
|
|
334
|
+
true,
|
|
335
|
+
false
|
|
263
336
|
]
|
|
264
337
|
},
|
|
265
338
|
"reportUnusedFunction": {
|
|
266
|
-
"type":
|
|
339
|
+
"type": [
|
|
340
|
+
"string",
|
|
341
|
+
"boolean"
|
|
342
|
+
],
|
|
267
343
|
"description": "Diagnostics for a function or method with a private name (starting with an underscore) that is not accessed.",
|
|
268
344
|
"default": "none",
|
|
269
345
|
"enum": [
|
|
270
346
|
"none",
|
|
271
347
|
"information",
|
|
272
348
|
"warning",
|
|
273
|
-
"error"
|
|
349
|
+
"error",
|
|
350
|
+
true,
|
|
351
|
+
false
|
|
274
352
|
]
|
|
275
353
|
},
|
|
276
354
|
"reportUnusedVariable": {
|
|
277
|
-
"type":
|
|
355
|
+
"type": [
|
|
356
|
+
"string",
|
|
357
|
+
"boolean"
|
|
358
|
+
],
|
|
278
359
|
"description": "Diagnostics for a variable that is not accessed.",
|
|
279
360
|
"default": "none",
|
|
280
361
|
"enum": [
|
|
281
362
|
"none",
|
|
282
363
|
"information",
|
|
283
364
|
"warning",
|
|
284
|
-
"error"
|
|
365
|
+
"error",
|
|
366
|
+
true,
|
|
367
|
+
false
|
|
285
368
|
]
|
|
286
369
|
},
|
|
287
370
|
"reportDuplicateImport": {
|
|
288
|
-
"type":
|
|
371
|
+
"type": [
|
|
372
|
+
"string",
|
|
373
|
+
"boolean"
|
|
374
|
+
],
|
|
289
375
|
"description": "Diagnostics for an imported symbol or module that is imported more than once.",
|
|
290
376
|
"default": "none",
|
|
291
377
|
"enum": [
|
|
292
378
|
"none",
|
|
293
379
|
"information",
|
|
294
380
|
"warning",
|
|
295
|
-
"error"
|
|
381
|
+
"error",
|
|
382
|
+
true,
|
|
383
|
+
false
|
|
296
384
|
]
|
|
297
385
|
},
|
|
298
386
|
"reportWildcardImportFromLibrary": {
|
|
299
|
-
"type":
|
|
387
|
+
"type": [
|
|
388
|
+
"string",
|
|
389
|
+
"boolean"
|
|
390
|
+
],
|
|
300
391
|
"description": "Diagnostics for an wildcard import from an external library.",
|
|
301
392
|
"default": "warning",
|
|
302
393
|
"enum": [
|
|
303
394
|
"none",
|
|
304
395
|
"information",
|
|
305
396
|
"warning",
|
|
306
|
-
"error"
|
|
397
|
+
"error",
|
|
398
|
+
true,
|
|
399
|
+
false
|
|
307
400
|
]
|
|
308
401
|
},
|
|
309
402
|
"reportOptionalSubscript": {
|
|
310
|
-
"type":
|
|
403
|
+
"type": [
|
|
404
|
+
"string",
|
|
405
|
+
"boolean"
|
|
406
|
+
],
|
|
311
407
|
"description": "Diagnostics for an attempt to subscript (index) a variable with an Optional type.",
|
|
312
408
|
"default": "error",
|
|
313
409
|
"enum": [
|
|
314
410
|
"none",
|
|
315
411
|
"information",
|
|
316
412
|
"warning",
|
|
317
|
-
"error"
|
|
413
|
+
"error",
|
|
414
|
+
true,
|
|
415
|
+
false
|
|
318
416
|
]
|
|
319
417
|
},
|
|
320
418
|
"reportOptionalMemberAccess": {
|
|
321
|
-
"type":
|
|
419
|
+
"type": [
|
|
420
|
+
"string",
|
|
421
|
+
"boolean"
|
|
422
|
+
],
|
|
322
423
|
"description": "Diagnostics for an attempt to access a member of a variable with an Optional type.",
|
|
323
424
|
"default": "error",
|
|
324
425
|
"enum": [
|
|
325
426
|
"none",
|
|
326
427
|
"information",
|
|
327
428
|
"warning",
|
|
328
|
-
"error"
|
|
429
|
+
"error",
|
|
430
|
+
true,
|
|
431
|
+
false
|
|
329
432
|
]
|
|
330
433
|
},
|
|
331
434
|
"reportOptionalCall": {
|
|
332
|
-
"type":
|
|
435
|
+
"type": [
|
|
436
|
+
"string",
|
|
437
|
+
"boolean"
|
|
438
|
+
],
|
|
333
439
|
"description": "Diagnostics for an attempt to call a variable with an Optional type.",
|
|
334
440
|
"default": "error",
|
|
335
441
|
"enum": [
|
|
336
442
|
"none",
|
|
337
443
|
"information",
|
|
338
444
|
"warning",
|
|
339
|
-
"error"
|
|
445
|
+
"error",
|
|
446
|
+
true,
|
|
447
|
+
false
|
|
340
448
|
]
|
|
341
449
|
},
|
|
342
450
|
"reportOptionalIterable": {
|
|
343
|
-
"type":
|
|
451
|
+
"type": [
|
|
452
|
+
"string",
|
|
453
|
+
"boolean"
|
|
454
|
+
],
|
|
344
455
|
"description": "Diagnostics for an attempt to use an Optional type as an iterable value (e.g. within a for statement).",
|
|
345
456
|
"default": "error",
|
|
346
457
|
"enum": [
|
|
347
458
|
"none",
|
|
348
459
|
"information",
|
|
349
460
|
"warning",
|
|
350
|
-
"error"
|
|
461
|
+
"error",
|
|
462
|
+
true,
|
|
463
|
+
false
|
|
351
464
|
]
|
|
352
465
|
},
|
|
353
466
|
"reportOptionalContextManager": {
|
|
354
|
-
"type":
|
|
467
|
+
"type": [
|
|
468
|
+
"string",
|
|
469
|
+
"boolean"
|
|
470
|
+
],
|
|
355
471
|
"description": "Diagnostics for an attempt to use an Optional type as a context manager (as a parameter to a with statement).",
|
|
356
472
|
"default": "error",
|
|
357
473
|
"enum": [
|
|
358
474
|
"none",
|
|
359
475
|
"information",
|
|
360
476
|
"warning",
|
|
361
|
-
"error"
|
|
477
|
+
"error",
|
|
478
|
+
true,
|
|
479
|
+
false
|
|
362
480
|
]
|
|
363
481
|
},
|
|
364
482
|
"reportOptionalOperand": {
|
|
365
|
-
"type":
|
|
483
|
+
"type": [
|
|
484
|
+
"string",
|
|
485
|
+
"boolean"
|
|
486
|
+
],
|
|
366
487
|
"description": "Diagnostics for an attempt to use an Optional type as an operand to a binary or unary operator (like '+', '==', 'or', 'not').",
|
|
367
488
|
"default": "error",
|
|
368
489
|
"enum": [
|
|
369
490
|
"none",
|
|
370
491
|
"information",
|
|
371
492
|
"warning",
|
|
372
|
-
"error"
|
|
493
|
+
"error",
|
|
494
|
+
true,
|
|
495
|
+
false
|
|
373
496
|
]
|
|
374
497
|
},
|
|
375
498
|
"reportTypedDictNotRequiredAccess": {
|
|
376
|
-
"type":
|
|
499
|
+
"type": [
|
|
500
|
+
"string",
|
|
501
|
+
"boolean"
|
|
502
|
+
],
|
|
377
503
|
"description": "Diagnostics for an attempt to access a non-required key within a TypedDict without a check for its presence.",
|
|
378
504
|
"default": "error",
|
|
379
505
|
"enum": [
|
|
380
506
|
"none",
|
|
381
507
|
"information",
|
|
382
508
|
"warning",
|
|
383
|
-
"error"
|
|
509
|
+
"error",
|
|
510
|
+
true,
|
|
511
|
+
false
|
|
384
512
|
]
|
|
385
513
|
},
|
|
386
514
|
"reportUntypedFunctionDecorator": {
|
|
387
|
-
"type":
|
|
515
|
+
"type": [
|
|
516
|
+
"string",
|
|
517
|
+
"boolean"
|
|
518
|
+
],
|
|
388
519
|
"description": "Diagnostics for function decorators that have no type annotations. These obscure the function type, defeating many type analysis features.",
|
|
389
520
|
"default": "none",
|
|
390
521
|
"enum": [
|
|
391
522
|
"none",
|
|
392
523
|
"information",
|
|
393
524
|
"warning",
|
|
394
|
-
"error"
|
|
525
|
+
"error",
|
|
526
|
+
true,
|
|
527
|
+
false
|
|
395
528
|
]
|
|
396
529
|
},
|
|
397
530
|
"reportUntypedClassDecorator": {
|
|
398
|
-
"type":
|
|
531
|
+
"type": [
|
|
532
|
+
"string",
|
|
533
|
+
"boolean"
|
|
534
|
+
],
|
|
399
535
|
"description": "Diagnostics for class decorators that have no type annotations. These obscure the class type, defeating many type analysis features.",
|
|
400
536
|
"default": "none",
|
|
401
537
|
"enum": [
|
|
402
538
|
"none",
|
|
403
539
|
"information",
|
|
404
540
|
"warning",
|
|
405
|
-
"error"
|
|
541
|
+
"error",
|
|
542
|
+
true,
|
|
543
|
+
false
|
|
406
544
|
]
|
|
407
545
|
},
|
|
408
546
|
"reportUntypedBaseClass": {
|
|
409
|
-
"type":
|
|
547
|
+
"type": [
|
|
548
|
+
"string",
|
|
549
|
+
"boolean"
|
|
550
|
+
],
|
|
410
551
|
"description": "Diagnostics for base classes whose type cannot be determined statically. These obscure the class type, defeating many type analysis features.",
|
|
411
552
|
"default": "none",
|
|
412
553
|
"enum": [
|
|
413
554
|
"none",
|
|
414
555
|
"information",
|
|
415
556
|
"warning",
|
|
416
|
-
"error"
|
|
557
|
+
"error",
|
|
558
|
+
true,
|
|
559
|
+
false
|
|
417
560
|
]
|
|
418
561
|
},
|
|
419
562
|
"reportUntypedNamedTuple": {
|
|
420
|
-
"type":
|
|
563
|
+
"type": [
|
|
564
|
+
"string",
|
|
565
|
+
"boolean"
|
|
566
|
+
],
|
|
421
567
|
"description": "Diagnostics when “namedtuple” is used rather than “NamedTuple”. The former contains no type information, whereas the latter does.",
|
|
422
568
|
"default": "none",
|
|
423
569
|
"enum": [
|
|
424
570
|
"none",
|
|
425
571
|
"information",
|
|
426
572
|
"warning",
|
|
427
|
-
"error"
|
|
573
|
+
"error",
|
|
574
|
+
true,
|
|
575
|
+
false
|
|
428
576
|
]
|
|
429
577
|
},
|
|
430
578
|
"reportPrivateUsage": {
|
|
431
|
-
"type":
|
|
579
|
+
"type": [
|
|
580
|
+
"string",
|
|
581
|
+
"boolean"
|
|
582
|
+
],
|
|
432
583
|
"description": "Diagnostics for incorrect usage of private or protected variables or functions. Protected class members begin with a single underscore _ and can be accessed only by subclasses. Private class members begin with a double underscore but do not end in a double underscore and can be accessed only within the declaring class. Variables and functions declared outside of a class are considered private if their names start with either a single or double underscore, and they cannot be accessed outside of the declaring module.",
|
|
433
584
|
"default": "none",
|
|
434
585
|
"enum": [
|
|
435
586
|
"none",
|
|
436
587
|
"information",
|
|
437
588
|
"warning",
|
|
438
|
-
"error"
|
|
589
|
+
"error",
|
|
590
|
+
true,
|
|
591
|
+
false
|
|
439
592
|
]
|
|
440
593
|
},
|
|
441
594
|
"reportTypeCommentUsage": {
|
|
442
|
-
"type":
|
|
595
|
+
"type": [
|
|
596
|
+
"string",
|
|
597
|
+
"boolean"
|
|
598
|
+
],
|
|
443
599
|
"description": "Diagnostics for usage of deprecated type comments.",
|
|
444
600
|
"default": "none",
|
|
445
601
|
"enum": [
|
|
446
602
|
"none",
|
|
447
603
|
"information",
|
|
448
604
|
"warning",
|
|
449
|
-
"error"
|
|
605
|
+
"error",
|
|
606
|
+
true,
|
|
607
|
+
false
|
|
450
608
|
]
|
|
451
609
|
},
|
|
452
610
|
"reportPrivateImportUsage": {
|
|
453
|
-
"type":
|
|
611
|
+
"type": [
|
|
612
|
+
"string",
|
|
613
|
+
"boolean"
|
|
614
|
+
],
|
|
454
615
|
"description": "Diagnostics for incorrect usage of symbol imported from a \"py.typed\" module that is not re-exported from that module.",
|
|
455
616
|
"default": "error",
|
|
456
617
|
"enum": [
|
|
457
618
|
"none",
|
|
458
619
|
"information",
|
|
459
620
|
"warning",
|
|
460
|
-
"error"
|
|
621
|
+
"error",
|
|
622
|
+
true,
|
|
623
|
+
false
|
|
461
624
|
]
|
|
462
625
|
},
|
|
463
626
|
"reportConstantRedefinition": {
|
|
464
|
-
"type":
|
|
627
|
+
"type": [
|
|
628
|
+
"string",
|
|
629
|
+
"boolean"
|
|
630
|
+
],
|
|
465
631
|
"description": "Diagnostics for attempts to redefine variables whose names are all-caps with underscores and numerals.",
|
|
466
632
|
"default": "none",
|
|
467
633
|
"enum": [
|
|
468
634
|
"none",
|
|
469
635
|
"information",
|
|
470
636
|
"warning",
|
|
471
|
-
"error"
|
|
637
|
+
"error",
|
|
638
|
+
true,
|
|
639
|
+
false
|
|
472
640
|
]
|
|
473
641
|
},
|
|
474
642
|
"reportDeprecated": {
|
|
475
|
-
"type":
|
|
643
|
+
"type": [
|
|
644
|
+
"string",
|
|
645
|
+
"boolean"
|
|
646
|
+
],
|
|
476
647
|
"description": "Diagnostics for use of deprecated classes or functions.",
|
|
477
648
|
"default": "none",
|
|
478
649
|
"enum": [
|
|
479
650
|
"none",
|
|
480
651
|
"information",
|
|
481
652
|
"warning",
|
|
482
|
-
"error"
|
|
653
|
+
"error",
|
|
654
|
+
true,
|
|
655
|
+
false
|
|
483
656
|
]
|
|
484
657
|
},
|
|
485
658
|
"reportIncompatibleMethodOverride": {
|
|
486
|
-
"type":
|
|
659
|
+
"type": [
|
|
660
|
+
"string",
|
|
661
|
+
"boolean"
|
|
662
|
+
],
|
|
487
663
|
"description": "Diagnostics for methods that override a method of the same name in a base class in an incompatible manner (wrong number of parameters, incompatible parameter types, or incompatible return type).",
|
|
488
664
|
"default": "none",
|
|
489
665
|
"enum": [
|
|
490
666
|
"none",
|
|
491
667
|
"information",
|
|
492
668
|
"warning",
|
|
493
|
-
"error"
|
|
669
|
+
"error",
|
|
670
|
+
true,
|
|
671
|
+
false
|
|
494
672
|
]
|
|
495
673
|
},
|
|
496
674
|
"reportIncompatibleVariableOverride": {
|
|
497
|
-
"type":
|
|
675
|
+
"type": [
|
|
676
|
+
"string",
|
|
677
|
+
"boolean"
|
|
678
|
+
],
|
|
498
679
|
"description": "Diagnostics for overrides in subclasses that redefine a variable in an incompatible way.",
|
|
499
680
|
"default": "none",
|
|
500
681
|
"enum": [
|
|
501
682
|
"none",
|
|
502
683
|
"information",
|
|
503
684
|
"warning",
|
|
504
|
-
"error"
|
|
685
|
+
"error",
|
|
686
|
+
true,
|
|
687
|
+
false
|
|
505
688
|
]
|
|
506
689
|
},
|
|
507
690
|
"reportInconsistentConstructor": {
|
|
508
|
-
"type":
|
|
691
|
+
"type": [
|
|
692
|
+
"string",
|
|
693
|
+
"boolean"
|
|
694
|
+
],
|
|
509
695
|
"description": "Diagnostics for __init__ and __new__ methods whose signatures are inconsistent.",
|
|
510
696
|
"default": "none",
|
|
511
697
|
"enum": [
|
|
512
698
|
"none",
|
|
513
699
|
"information",
|
|
514
700
|
"warning",
|
|
515
|
-
"error"
|
|
701
|
+
"error",
|
|
702
|
+
true,
|
|
703
|
+
false
|
|
516
704
|
]
|
|
517
705
|
},
|
|
518
706
|
"reportOverlappingOverload": {
|
|
519
|
-
"type":
|
|
707
|
+
"type": [
|
|
708
|
+
"string",
|
|
709
|
+
"boolean"
|
|
710
|
+
],
|
|
520
711
|
"description": "Diagnostics for function overloads that overlap in signature and obscure each other or have incompatible return types.",
|
|
521
712
|
"default": "none",
|
|
522
713
|
"enum": [
|
|
523
714
|
"none",
|
|
524
715
|
"information",
|
|
525
716
|
"warning",
|
|
526
|
-
"error"
|
|
717
|
+
"error",
|
|
718
|
+
true,
|
|
719
|
+
false
|
|
527
720
|
]
|
|
528
721
|
},
|
|
529
722
|
"reportMissingSuperCall": {
|
|
530
|
-
"type":
|
|
723
|
+
"type": [
|
|
724
|
+
"string",
|
|
725
|
+
"boolean"
|
|
726
|
+
],
|
|
531
727
|
"description": "Diagnostics for missing call to parent class for inherited `__init__` methods.",
|
|
532
728
|
"default": "none",
|
|
533
729
|
"enum": [
|
|
534
730
|
"none",
|
|
535
731
|
"information",
|
|
536
732
|
"warning",
|
|
537
|
-
"error"
|
|
733
|
+
"error",
|
|
734
|
+
true,
|
|
735
|
+
false
|
|
538
736
|
]
|
|
539
737
|
},
|
|
540
738
|
"reportUninitializedInstanceVariable": {
|
|
541
|
-
"type":
|
|
739
|
+
"type": [
|
|
740
|
+
"string",
|
|
741
|
+
"boolean"
|
|
742
|
+
],
|
|
542
743
|
"description": "Diagnostics for instance variables that are not declared or initialized within class body or `__init__` method.",
|
|
543
744
|
"default": "none",
|
|
544
745
|
"enum": [
|
|
545
746
|
"none",
|
|
546
747
|
"information",
|
|
547
748
|
"warning",
|
|
548
|
-
"error"
|
|
749
|
+
"error",
|
|
750
|
+
true,
|
|
751
|
+
false
|
|
549
752
|
]
|
|
550
753
|
},
|
|
551
754
|
"reportInvalidStringEscapeSequence": {
|
|
552
|
-
"type":
|
|
755
|
+
"type": [
|
|
756
|
+
"string",
|
|
757
|
+
"boolean"
|
|
758
|
+
],
|
|
553
759
|
"description": "Diagnostics for invalid escape sequences used within string literals. The Python specification indicates that such sequences will generate a syntax error in future versions.",
|
|
554
760
|
"default": "warning",
|
|
555
761
|
"enum": [
|
|
556
762
|
"none",
|
|
557
763
|
"information",
|
|
558
764
|
"warning",
|
|
559
|
-
"error"
|
|
765
|
+
"error",
|
|
766
|
+
true,
|
|
767
|
+
false
|
|
560
768
|
]
|
|
561
769
|
},
|
|
562
770
|
"reportUnknownParameterType": {
|
|
563
|
-
"type":
|
|
771
|
+
"type": [
|
|
772
|
+
"string",
|
|
773
|
+
"boolean"
|
|
774
|
+
],
|
|
564
775
|
"description": "Diagnostics for input or return parameters for functions or methods that have an unknown type.",
|
|
565
776
|
"default": "none",
|
|
566
777
|
"enum": [
|
|
567
778
|
"none",
|
|
568
779
|
"information",
|
|
569
780
|
"warning",
|
|
570
|
-
"error"
|
|
781
|
+
"error",
|
|
782
|
+
true,
|
|
783
|
+
false
|
|
571
784
|
]
|
|
572
785
|
},
|
|
573
786
|
"reportUnknownArgumentType": {
|
|
574
|
-
"type":
|
|
787
|
+
"type": [
|
|
788
|
+
"string",
|
|
789
|
+
"boolean"
|
|
790
|
+
],
|
|
575
791
|
"description": "Diagnostics for call arguments for functions or methods that have an unknown type.",
|
|
576
792
|
"default": "none",
|
|
577
793
|
"enum": [
|
|
578
794
|
"none",
|
|
579
795
|
"information",
|
|
580
796
|
"warning",
|
|
581
|
-
"error"
|
|
797
|
+
"error",
|
|
798
|
+
true,
|
|
799
|
+
false
|
|
582
800
|
]
|
|
583
801
|
},
|
|
584
802
|
"reportUnknownLambdaType": {
|
|
585
|
-
"type":
|
|
803
|
+
"type": [
|
|
804
|
+
"string",
|
|
805
|
+
"boolean"
|
|
806
|
+
],
|
|
586
807
|
"description": "Diagnostics for input or return parameters for lambdas that have an unknown type.",
|
|
587
808
|
"default": "none",
|
|
588
809
|
"enum": [
|
|
589
810
|
"none",
|
|
590
811
|
"information",
|
|
591
812
|
"warning",
|
|
592
|
-
"error"
|
|
813
|
+
"error",
|
|
814
|
+
true,
|
|
815
|
+
false
|
|
593
816
|
]
|
|
594
817
|
},
|
|
595
818
|
"reportUnknownVariableType": {
|
|
596
|
-
"type":
|
|
819
|
+
"type": [
|
|
820
|
+
"string",
|
|
821
|
+
"boolean"
|
|
822
|
+
],
|
|
597
823
|
"description": "Diagnostics for variables that have an unknown type..",
|
|
598
824
|
"default": "none",
|
|
599
825
|
"enum": [
|
|
600
826
|
"none",
|
|
601
827
|
"information",
|
|
602
828
|
"warning",
|
|
603
|
-
"error"
|
|
829
|
+
"error",
|
|
830
|
+
true,
|
|
831
|
+
false
|
|
604
832
|
]
|
|
605
833
|
},
|
|
606
834
|
"reportUnknownMemberType": {
|
|
607
|
-
"type":
|
|
835
|
+
"type": [
|
|
836
|
+
"string",
|
|
837
|
+
"boolean"
|
|
838
|
+
],
|
|
608
839
|
"description": "Diagnostics for class or instance variables that have an unknown type.",
|
|
609
840
|
"default": "none",
|
|
610
841
|
"enum": [
|
|
611
842
|
"none",
|
|
612
843
|
"information",
|
|
613
844
|
"warning",
|
|
614
|
-
"error"
|
|
845
|
+
"error",
|
|
846
|
+
true,
|
|
847
|
+
false
|
|
615
848
|
]
|
|
616
849
|
},
|
|
617
850
|
"reportMissingParameterType": {
|
|
618
|
-
"type":
|
|
851
|
+
"type": [
|
|
852
|
+
"string",
|
|
853
|
+
"boolean"
|
|
854
|
+
],
|
|
619
855
|
"description": "Diagnostics for parameters that are missing a type annotation.",
|
|
620
856
|
"default": "none",
|
|
621
857
|
"enum": [
|
|
622
858
|
"none",
|
|
623
859
|
"information",
|
|
624
860
|
"warning",
|
|
625
|
-
"error"
|
|
861
|
+
"error",
|
|
862
|
+
true,
|
|
863
|
+
false
|
|
626
864
|
]
|
|
627
865
|
},
|
|
628
866
|
"reportMissingTypeArgument": {
|
|
629
|
-
"type":
|
|
867
|
+
"type": [
|
|
868
|
+
"string",
|
|
869
|
+
"boolean"
|
|
870
|
+
],
|
|
630
871
|
"description": "Diagnostics for generic class reference with missing type arguments.",
|
|
631
872
|
"default": "none",
|
|
632
873
|
"enum": [
|
|
633
874
|
"none",
|
|
634
875
|
"information",
|
|
635
876
|
"warning",
|
|
636
|
-
"error"
|
|
877
|
+
"error",
|
|
878
|
+
true,
|
|
879
|
+
false
|
|
637
880
|
]
|
|
638
881
|
},
|
|
639
882
|
"reportInvalidTypeVarUse": {
|
|
640
|
-
"type":
|
|
883
|
+
"type": [
|
|
884
|
+
"string",
|
|
885
|
+
"boolean"
|
|
886
|
+
],
|
|
641
887
|
"description": "Diagnostics for improper use of type variables in a function signature.",
|
|
642
888
|
"default": "warning",
|
|
643
889
|
"enum": [
|
|
644
890
|
"none",
|
|
645
891
|
"information",
|
|
646
892
|
"warning",
|
|
647
|
-
"error"
|
|
893
|
+
"error",
|
|
894
|
+
true,
|
|
895
|
+
false
|
|
648
896
|
]
|
|
649
897
|
},
|
|
650
898
|
"reportCallInDefaultInitializer": {
|
|
651
|
-
"type":
|
|
899
|
+
"type": [
|
|
900
|
+
"string",
|
|
901
|
+
"boolean"
|
|
902
|
+
],
|
|
652
903
|
"description": "Diagnostics for function calls within a default value initialization expression. Such calls can mask expensive operations that are performed at module initialization time.",
|
|
653
904
|
"default": "none",
|
|
654
905
|
"enum": [
|
|
655
906
|
"none",
|
|
656
907
|
"information",
|
|
657
908
|
"warning",
|
|
658
|
-
"error"
|
|
909
|
+
"error",
|
|
910
|
+
true,
|
|
911
|
+
false
|
|
659
912
|
]
|
|
660
913
|
},
|
|
661
914
|
"reportUnnecessaryIsInstance": {
|
|
662
|
-
"type":
|
|
915
|
+
"type": [
|
|
916
|
+
"string",
|
|
917
|
+
"boolean"
|
|
918
|
+
],
|
|
663
919
|
"description": "Diagnostics for 'isinstance' or 'issubclass' calls where the result is statically determined to be always true. Such calls are often indicative of a programming error.",
|
|
664
920
|
"default": "none",
|
|
665
921
|
"enum": [
|
|
666
922
|
"none",
|
|
667
923
|
"information",
|
|
668
924
|
"warning",
|
|
669
|
-
"error"
|
|
925
|
+
"error",
|
|
926
|
+
true,
|
|
927
|
+
false
|
|
670
928
|
]
|
|
671
929
|
},
|
|
672
930
|
"reportUnnecessaryCast": {
|
|
673
|
-
"type":
|
|
931
|
+
"type": [
|
|
932
|
+
"string",
|
|
933
|
+
"boolean"
|
|
934
|
+
],
|
|
674
935
|
"description": "Diagnostics for 'cast' calls that are statically determined to be unnecessary. Such calls are sometimes indicative of a programming error.",
|
|
675
936
|
"default": "none",
|
|
676
937
|
"enum": [
|
|
677
938
|
"none",
|
|
678
939
|
"information",
|
|
679
940
|
"warning",
|
|
680
|
-
"error"
|
|
941
|
+
"error",
|
|
942
|
+
true,
|
|
943
|
+
false
|
|
681
944
|
]
|
|
682
945
|
},
|
|
683
946
|
"reportUnnecessaryComparison": {
|
|
684
|
-
"type":
|
|
947
|
+
"type": [
|
|
948
|
+
"string",
|
|
949
|
+
"boolean"
|
|
950
|
+
],
|
|
685
951
|
"description": "Diagnostics for '==' and '!=' comparisons that are statically determined to be unnecessary. Such calls are sometimes indicative of a programming error.",
|
|
686
952
|
"default": "none",
|
|
687
953
|
"enum": [
|
|
688
954
|
"none",
|
|
689
955
|
"information",
|
|
690
956
|
"warning",
|
|
691
|
-
"error"
|
|
957
|
+
"error",
|
|
958
|
+
true,
|
|
959
|
+
false
|
|
692
960
|
]
|
|
693
961
|
},
|
|
694
962
|
"reportUnnecessaryContains": {
|
|
695
|
-
"type":
|
|
963
|
+
"type": [
|
|
964
|
+
"string",
|
|
965
|
+
"boolean"
|
|
966
|
+
],
|
|
696
967
|
"description": "Diagnostics for 'in' operation that is statically determined to be unnecessary. Such operations are sometimes indicative of a programming error.",
|
|
697
968
|
"default": "none",
|
|
698
969
|
"enum": [
|
|
699
970
|
"none",
|
|
700
971
|
"information",
|
|
701
972
|
"warning",
|
|
702
|
-
"error"
|
|
973
|
+
"error",
|
|
974
|
+
true,
|
|
975
|
+
false
|
|
703
976
|
]
|
|
704
977
|
},
|
|
705
978
|
"reportAssertAlwaysTrue": {
|
|
706
|
-
"type":
|
|
979
|
+
"type": [
|
|
980
|
+
"string",
|
|
981
|
+
"boolean"
|
|
982
|
+
],
|
|
707
983
|
"description": "Diagnostics for 'assert' statement that will provably always assert. This can be indicative of a programming error.",
|
|
708
984
|
"default": "warning",
|
|
709
985
|
"enum": [
|
|
710
986
|
"none",
|
|
711
987
|
"information",
|
|
712
988
|
"warning",
|
|
713
|
-
"error"
|
|
989
|
+
"error",
|
|
990
|
+
true,
|
|
991
|
+
false
|
|
714
992
|
]
|
|
715
993
|
},
|
|
716
994
|
"reportSelfClsParameterName": {
|
|
717
|
-
"type":
|
|
995
|
+
"type": [
|
|
996
|
+
"string",
|
|
997
|
+
"boolean"
|
|
998
|
+
],
|
|
718
999
|
"description": "Diagnostics for a missing or misnamed “self” parameter in instance methods and “cls” parameter in class methods. Instance methods in metaclasses (classes that derive from “type”) are allowed to use “cls” for instance methods.",
|
|
719
1000
|
"default": "warning",
|
|
720
1001
|
"enum": [
|
|
721
1002
|
"none",
|
|
722
1003
|
"information",
|
|
723
1004
|
"warning",
|
|
724
|
-
"error"
|
|
1005
|
+
"error",
|
|
1006
|
+
true,
|
|
1007
|
+
false
|
|
725
1008
|
]
|
|
726
1009
|
},
|
|
727
1010
|
"reportImplicitStringConcatenation": {
|
|
728
|
-
"type":
|
|
1011
|
+
"type": [
|
|
1012
|
+
"string",
|
|
1013
|
+
"boolean"
|
|
1014
|
+
],
|
|
729
1015
|
"description": "Diagnostics for two or more string literals that follow each other, indicating an implicit concatenation. This is considered a bad practice and often masks bugs such as missing commas.",
|
|
730
1016
|
"default": "none",
|
|
731
1017
|
"enum": [
|
|
732
1018
|
"none",
|
|
733
1019
|
"information",
|
|
734
1020
|
"warning",
|
|
735
|
-
"error"
|
|
1021
|
+
"error",
|
|
1022
|
+
true,
|
|
1023
|
+
false
|
|
736
1024
|
]
|
|
737
1025
|
},
|
|
738
1026
|
"reportInvalidStubStatement": {
|
|
739
|
-
"type":
|
|
1027
|
+
"type": [
|
|
1028
|
+
"string",
|
|
1029
|
+
"boolean"
|
|
1030
|
+
],
|
|
740
1031
|
"description": "Diagnostics for type stub statements that do not conform to PEP 484.",
|
|
741
1032
|
"default": "none",
|
|
742
1033
|
"enum": [
|
|
743
1034
|
"none",
|
|
744
1035
|
"information",
|
|
745
1036
|
"warning",
|
|
746
|
-
"error"
|
|
1037
|
+
"error",
|
|
1038
|
+
true,
|
|
1039
|
+
false
|
|
747
1040
|
]
|
|
748
1041
|
},
|
|
749
1042
|
"reportIncompleteStub": {
|
|
750
|
-
"type":
|
|
1043
|
+
"type": [
|
|
1044
|
+
"string",
|
|
1045
|
+
"boolean"
|
|
1046
|
+
],
|
|
751
1047
|
"description": "Diagnostics for the use of a module-level “__getattr__” function, indicating that the stub is incomplete.",
|
|
752
1048
|
"default": "none",
|
|
753
1049
|
"enum": [
|
|
754
1050
|
"none",
|
|
755
1051
|
"information",
|
|
756
1052
|
"warning",
|
|
757
|
-
"error"
|
|
1053
|
+
"error",
|
|
1054
|
+
true,
|
|
1055
|
+
false
|
|
758
1056
|
]
|
|
759
1057
|
},
|
|
760
1058
|
"reportUndefinedVariable": {
|
|
761
|
-
"type":
|
|
1059
|
+
"type": [
|
|
1060
|
+
"string",
|
|
1061
|
+
"boolean"
|
|
1062
|
+
],
|
|
762
1063
|
"description": "Diagnostics for undefined variables.",
|
|
763
1064
|
"default": "error",
|
|
764
1065
|
"enum": [
|
|
765
1066
|
"none",
|
|
766
1067
|
"information",
|
|
767
1068
|
"warning",
|
|
768
|
-
"error"
|
|
1069
|
+
"error",
|
|
1070
|
+
true,
|
|
1071
|
+
false
|
|
769
1072
|
]
|
|
770
1073
|
},
|
|
771
1074
|
"reportUnboundVariable": {
|
|
772
|
-
"type":
|
|
1075
|
+
"type": [
|
|
1076
|
+
"string",
|
|
1077
|
+
"boolean"
|
|
1078
|
+
],
|
|
773
1079
|
"description": "Diagnostics for unbound and possibly unbound variables.",
|
|
774
1080
|
"default": "error",
|
|
775
1081
|
"enum": [
|
|
776
1082
|
"none",
|
|
777
1083
|
"information",
|
|
778
1084
|
"warning",
|
|
779
|
-
"error"
|
|
1085
|
+
"error",
|
|
1086
|
+
true,
|
|
1087
|
+
false
|
|
780
1088
|
]
|
|
781
1089
|
},
|
|
782
1090
|
"reportUnsupportedDunderAll": {
|
|
783
|
-
"type":
|
|
1091
|
+
"type": [
|
|
1092
|
+
"string",
|
|
1093
|
+
"boolean"
|
|
1094
|
+
],
|
|
784
1095
|
"description": "Diagnostics for unsupported operations performed on __all__.",
|
|
785
1096
|
"default": "warning",
|
|
786
1097
|
"enum": [
|
|
787
1098
|
"none",
|
|
788
1099
|
"information",
|
|
789
1100
|
"warning",
|
|
790
|
-
"error"
|
|
1101
|
+
"error",
|
|
1102
|
+
true,
|
|
1103
|
+
false
|
|
791
1104
|
]
|
|
792
1105
|
},
|
|
793
1106
|
"reportUnusedCallResult": {
|
|
794
|
-
"type":
|
|
1107
|
+
"type": [
|
|
1108
|
+
"string",
|
|
1109
|
+
"boolean"
|
|
1110
|
+
],
|
|
795
1111
|
"description": "Diagnostics for call expressions whose results are not consumed and are not None.",
|
|
796
1112
|
"default": "none",
|
|
797
1113
|
"enum": [
|
|
798
1114
|
"none",
|
|
799
1115
|
"information",
|
|
800
1116
|
"warning",
|
|
801
|
-
"error"
|
|
1117
|
+
"error",
|
|
1118
|
+
true,
|
|
1119
|
+
false
|
|
802
1120
|
]
|
|
803
1121
|
},
|
|
804
1122
|
"reportUnusedCoroutine": {
|
|
805
|
-
"type":
|
|
1123
|
+
"type": [
|
|
1124
|
+
"string",
|
|
1125
|
+
"boolean"
|
|
1126
|
+
],
|
|
806
1127
|
"description": "Diagnostics for call expressions that return a Coroutine and whose results are not consumed.",
|
|
807
1128
|
"default": "error",
|
|
808
1129
|
"enum": [
|
|
809
1130
|
"none",
|
|
810
1131
|
"information",
|
|
811
1132
|
"warning",
|
|
812
|
-
"error"
|
|
1133
|
+
"error",
|
|
1134
|
+
true,
|
|
1135
|
+
false
|
|
813
1136
|
]
|
|
814
1137
|
},
|
|
815
|
-
"
|
|
816
|
-
"type":
|
|
817
|
-
|
|
818
|
-
|
|
1138
|
+
"reportUnusedExpression": {
|
|
1139
|
+
"type": [
|
|
1140
|
+
"string",
|
|
1141
|
+
"boolean"
|
|
1142
|
+
],
|
|
1143
|
+
"description": "Diagnostics for simple expressions whose value is not used in any way.",
|
|
1144
|
+
"default": "warning",
|
|
819
1145
|
"enum": [
|
|
820
1146
|
"none",
|
|
821
1147
|
"information",
|
|
822
1148
|
"warning",
|
|
823
|
-
"error"
|
|
1149
|
+
"error",
|
|
1150
|
+
true,
|
|
1151
|
+
false
|
|
824
1152
|
]
|
|
825
1153
|
},
|
|
826
|
-
"
|
|
827
|
-
"type":
|
|
828
|
-
|
|
1154
|
+
"reportUnnecessaryTypeIgnoreComment": {
|
|
1155
|
+
"type": [
|
|
1156
|
+
"string",
|
|
1157
|
+
"boolean"
|
|
1158
|
+
],
|
|
1159
|
+
"description": "Diagnostics for '# type: ignore' comments that have no effect.",
|
|
829
1160
|
"default": "none",
|
|
830
1161
|
"enum": [
|
|
831
1162
|
"none",
|
|
832
1163
|
"information",
|
|
833
1164
|
"warning",
|
|
834
|
-
"error"
|
|
1165
|
+
"error",
|
|
1166
|
+
true,
|
|
1167
|
+
false
|
|
835
1168
|
]
|
|
836
1169
|
},
|
|
837
|
-
"
|
|
838
|
-
"type":
|
|
839
|
-
|
|
1170
|
+
"reportMatchNotExhaustive": {
|
|
1171
|
+
"type": [
|
|
1172
|
+
"string",
|
|
1173
|
+
"boolean"
|
|
1174
|
+
],
|
|
1175
|
+
"description": "Diagnostics for 'match' statements that do not exhaustively match all possible values.",
|
|
840
1176
|
"default": "none",
|
|
841
1177
|
"enum": [
|
|
842
1178
|
"none",
|
|
843
1179
|
"information",
|
|
844
1180
|
"warning",
|
|
845
|
-
"error"
|
|
1181
|
+
"error",
|
|
1182
|
+
true,
|
|
1183
|
+
false
|
|
846
1184
|
]
|
|
847
1185
|
},
|
|
848
|
-
"
|
|
849
|
-
"type":
|
|
850
|
-
|
|
851
|
-
|
|
1186
|
+
"reportShadowedImports": {
|
|
1187
|
+
"type": [
|
|
1188
|
+
"string",
|
|
1189
|
+
"boolean"
|
|
1190
|
+
],
|
|
1191
|
+
"description": "Diagnostics for files that are overriding a module in the stdlib.",
|
|
1192
|
+
"default": "none",
|
|
852
1193
|
"enum": [
|
|
853
1194
|
"none",
|
|
854
1195
|
"information",
|
|
855
1196
|
"warning",
|
|
856
|
-
"error"
|
|
1197
|
+
"error",
|
|
1198
|
+
true,
|
|
1199
|
+
false
|
|
857
1200
|
]
|
|
858
1201
|
},
|
|
859
|
-
"
|
|
860
|
-
"type":
|
|
861
|
-
|
|
1202
|
+
"reportImplicitOverride": {
|
|
1203
|
+
"type": [
|
|
1204
|
+
"string",
|
|
1205
|
+
"boolean"
|
|
1206
|
+
],
|
|
1207
|
+
"description": "Diagnostics for overridden methods that do not include an `@override` decorator.",
|
|
862
1208
|
"default": "none",
|
|
863
1209
|
"enum": [
|
|
864
1210
|
"none",
|
|
865
1211
|
"information",
|
|
866
1212
|
"warning",
|
|
867
|
-
"error"
|
|
1213
|
+
"error",
|
|
1214
|
+
true,
|
|
1215
|
+
false
|
|
868
1216
|
]
|
|
869
1217
|
}
|
|
870
|
-
}
|
|
871
|
-
"scope": "resource"
|
|
1218
|
+
}
|
|
872
1219
|
},
|
|
873
1220
|
"python.analysis.logLevel": {
|
|
874
1221
|
"type": "string",
|
|
@@ -1455,8 +1802,8 @@
|
|
|
1455
1802
|
},
|
|
1456
1803
|
"python.sortImports.path": {
|
|
1457
1804
|
"type": "string",
|
|
1458
|
-
"description": "Path to isort script
|
|
1459
|
-
"default": "",
|
|
1805
|
+
"description": "Path to isort script",
|
|
1806
|
+
"default": "isort",
|
|
1460
1807
|
"scope": "resource"
|
|
1461
1808
|
},
|
|
1462
1809
|
"python.sortImports.args": {
|
|
@@ -1600,6 +1947,6 @@
|
|
|
1600
1947
|
]
|
|
1601
1948
|
},
|
|
1602
1949
|
"dependencies": {
|
|
1603
|
-
"pyright": "^1.1.
|
|
1950
|
+
"pyright": "^1.1.335"
|
|
1604
1951
|
}
|
|
1605
1952
|
}
|