coc-pyright 1.1.385 → 1.1.393

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.
Files changed (2) hide show
  1. package/lib/index.js +6472 -5826
  2. package/package.json +189 -1108
package/package.json CHANGED
@@ -1,15 +1,11 @@
1
1
  {
2
2
  "name": "coc-pyright",
3
- "version": "1.1.385",
3
+ "version": "1.1.393",
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",
7
7
  "main": "lib/index.js",
8
- "keywords": [
9
- "coc.nvim",
10
- "python",
11
- "pyright"
12
- ],
8
+ "keywords": ["coc.nvim", "python", "pyright"],
13
9
  "engines": {
14
10
  "coc": "^0.0.80"
15
11
  },
@@ -29,7 +25,7 @@
29
25
  ],
30
26
  "scripts": {
31
27
  "schema": "node diff.mjs",
32
- "lint": "biome check src",
28
+ "lint": "biome check package.json src",
33
29
  "build": "node esbuild.mjs",
34
30
  "prepare": "node esbuild.mjs"
35
31
  },
@@ -40,7 +36,7 @@
40
36
  "@types/minimatch": "^5.1.2",
41
37
  "@types/node": "16",
42
38
  "@types/which": "^3.0.4",
43
- "@zzzen/pyright-internal": "^1.2.0-dev.20241020",
39
+ "@zzzen/pyright-internal": "^1.2.0-dev.20250202",
44
40
  "coc.nvim": "^0.0.83-next.18",
45
41
  "diff-match-patch": "^1.0.5",
46
42
  "esbuild": "^0.24.0",
@@ -152,10 +148,7 @@
152
148
  "python.analysis.diagnosticMode": {
153
149
  "type": "string",
154
150
  "default": "openFilesOnly",
155
- "enum": [
156
- "openFilesOnly",
157
- "workspace"
158
- ],
151
+ "enum": ["openFilesOnly", "workspace"],
159
152
  "enumDescriptions": [
160
153
  "Analyzes and reports errors on only open files.",
161
154
  "Analyzes and reports errors on all files in the workspace."
@@ -195,1300 +188,490 @@
195
188
  "scope": "resource",
196
189
  "properties": {
197
190
  "reportGeneralTypeIssues": {
198
- "type": [
199
- "string",
200
- "boolean"
201
- ],
191
+ "type": ["string", "boolean"],
202
192
  "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.",
203
193
  "default": "error",
204
- "enum": [
205
- "none",
206
- "information",
207
- "warning",
208
- "error",
209
- true,
210
- false
211
- ]
194
+ "enum": ["none", "information", "warning", "error", true, false]
212
195
  },
213
196
  "reportPropertyTypeMismatch": {
214
- "type": [
215
- "string",
216
- "boolean"
217
- ],
197
+ "type": ["string", "boolean"],
218
198
  "description": "Diagnostics for property whose setter and getter have mismatched types.",
219
199
  "default": "none",
220
- "enum": [
221
- "none",
222
- "information",
223
- "warning",
224
- "error",
225
- true,
226
- false
227
- ]
200
+ "enum": ["none", "information", "warning", "error", true, false]
228
201
  },
229
202
  "reportFunctionMemberAccess": {
230
- "type": [
231
- "string",
232
- "boolean"
233
- ],
203
+ "type": ["string", "boolean"],
234
204
  "description": "Diagnostics for member accesses on functions.",
235
205
  "default": "error",
236
- "enum": [
237
- "none",
238
- "information",
239
- "warning",
240
- "error",
241
- true,
242
- false
243
- ]
206
+ "enum": ["none", "information", "warning", "error", true, false]
244
207
  },
245
208
  "reportMissingImports": {
246
- "type": [
247
- "string",
248
- "boolean"
249
- ],
209
+ "type": ["string", "boolean"],
250
210
  "description": "Diagnostics for imports that have no corresponding imported python file or type stub file.",
251
211
  "default": "error",
252
- "enum": [
253
- "none",
254
- "information",
255
- "warning",
256
- "error",
257
- true,
258
- false
259
- ]
212
+ "enum": ["none", "information", "warning", "error", true, false]
260
213
  },
261
214
  "reportMissingModuleSource": {
262
- "type": [
263
- "string",
264
- "boolean"
265
- ],
215
+ "type": ["string", "boolean"],
266
216
  "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.",
267
217
  "default": "warning",
268
- "enum": [
269
- "none",
270
- "information",
271
- "warning",
272
- "error",
273
- true,
274
- false
275
- ]
218
+ "enum": ["none", "information", "warning", "error", true, false]
276
219
  },
277
220
  "reportInvalidTypeForm": {
278
- "type": [
279
- "string",
280
- "boolean"
281
- ],
221
+ "type": ["string", "boolean"],
282
222
  "description": "Diagnostics for type expression that uses an invalid form.",
283
223
  "default": "error",
284
- "enum": [
285
- "none",
286
- "information",
287
- "warning",
288
- "error",
289
- true,
290
- false
291
- ]
224
+ "enum": ["none", "information", "warning", "error", true, false]
292
225
  },
293
226
  "reportMissingTypeStubs": {
294
- "type": [
295
- "string",
296
- "boolean"
297
- ],
227
+ "type": ["string", "boolean"],
298
228
  "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.",
299
229
  "default": "none",
300
- "enum": [
301
- "none",
302
- "information",
303
- "warning",
304
- "error",
305
- true,
306
- false
307
- ]
230
+ "enum": ["none", "information", "warning", "error", true, false]
308
231
  },
309
232
  "reportImportCycles": {
310
- "type": [
311
- "string",
312
- "boolean"
313
- ],
233
+ "type": ["string", "boolean"],
314
234
  "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.",
315
235
  "default": "none",
316
- "enum": [
317
- "none",
318
- "information",
319
- "warning",
320
- "error",
321
- true,
322
- false
323
- ]
236
+ "enum": ["none", "information", "warning", "error", true, false]
324
237
  },
325
238
  "reportUnusedImport": {
326
- "type": [
327
- "string",
328
- "boolean"
329
- ],
239
+ "type": ["string", "boolean"],
330
240
  "description": "Diagnostics for an imported symbol that is not referenced within that file.",
331
241
  "default": "none",
332
- "enum": [
333
- "none",
334
- "information",
335
- "warning",
336
- "error",
337
- true,
338
- false
339
- ]
242
+ "enum": ["none", "information", "warning", "error", true, false]
340
243
  },
341
244
  "reportUnusedClass": {
342
- "type": [
343
- "string",
344
- "boolean"
345
- ],
245
+ "type": ["string", "boolean"],
346
246
  "description": "Diagnostics for a class with a private name (starting with an underscore) that is not accessed.",
347
247
  "default": "none",
348
- "enum": [
349
- "none",
350
- "information",
351
- "warning",
352
- "error",
353
- true,
354
- false
355
- ]
248
+ "enum": ["none", "information", "warning", "error", true, false]
356
249
  },
357
250
  "reportUnusedFunction": {
358
- "type": [
359
- "string",
360
- "boolean"
361
- ],
251
+ "type": ["string", "boolean"],
362
252
  "description": "Diagnostics for a function or method with a private name (starting with an underscore) that is not accessed.",
363
253
  "default": "none",
364
- "enum": [
365
- "none",
366
- "information",
367
- "warning",
368
- "error",
369
- true,
370
- false
371
- ]
254
+ "enum": ["none", "information", "warning", "error", true, false]
372
255
  },
373
256
  "reportUnusedVariable": {
374
- "type": [
375
- "string",
376
- "boolean"
377
- ],
257
+ "type": ["string", "boolean"],
378
258
  "description": "Diagnostics for a variable that is not accessed.",
379
259
  "default": "none",
380
- "enum": [
381
- "none",
382
- "information",
383
- "warning",
384
- "error",
385
- true,
386
- false
387
- ]
260
+ "enum": ["none", "information", "warning", "error", true, false]
388
261
  },
389
262
  "reportDuplicateImport": {
390
- "type": [
391
- "string",
392
- "boolean"
393
- ],
263
+ "type": ["string", "boolean"],
394
264
  "description": "Diagnostics for an imported symbol or module that is imported more than once.",
395
265
  "default": "none",
396
- "enum": [
397
- "none",
398
- "information",
399
- "warning",
400
- "error",
401
- true,
402
- false
403
- ]
266
+ "enum": ["none", "information", "warning", "error", true, false]
404
267
  },
405
268
  "reportWildcardImportFromLibrary": {
406
- "type": [
407
- "string",
408
- "boolean"
409
- ],
269
+ "type": ["string", "boolean"],
410
270
  "description": "Diagnostics for an wildcard import from an external library.",
411
271
  "default": "warning",
412
- "enum": [
413
- "none",
414
- "information",
415
- "warning",
416
- "error",
417
- true,
418
- false
419
- ]
272
+ "enum": ["none", "information", "warning", "error", true, false]
420
273
  },
421
274
  "reportAbstractUsage": {
422
- "type": [
423
- "string",
424
- "boolean"
425
- ],
275
+ "type": ["string", "boolean"],
426
276
  "description": "Diagnostics for an attempt to instantiate an abstract or protocol class or use an abstract method.",
427
277
  "default": "error",
428
- "enum": [
429
- "none",
430
- "information",
431
- "warning",
432
- "error",
433
- true,
434
- false
435
- ]
278
+ "enum": ["none", "information", "warning", "error", true, false]
436
279
  },
437
280
  "reportArgumentType": {
438
- "type": [
439
- "string",
440
- "boolean"
441
- ],
281
+ "type": ["string", "boolean"],
442
282
  "description": "Diagnostics for a type incompatibility for an argument to a call.",
443
283
  "default": "error",
444
- "enum": [
445
- "none",
446
- "information",
447
- "warning",
448
- "error",
449
- true,
450
- false
451
- ]
284
+ "enum": ["none", "information", "warning", "error", true, false]
452
285
  },
453
286
  "reportAssertTypeFailure": {
454
- "type": [
455
- "string",
456
- "boolean"
457
- ],
287
+ "type": ["string", "boolean"],
458
288
  "description": "Diagnostics for a type incompatibility detected by a typing.assert_type call.",
459
289
  "default": "error",
460
- "enum": [
461
- "none",
462
- "information",
463
- "warning",
464
- "error",
465
- true,
466
- false
467
- ]
290
+ "enum": ["none", "information", "warning", "error", true, false]
468
291
  },
469
292
  "reportAssignmentType": {
470
- "type": [
471
- "string",
472
- "boolean"
473
- ],
293
+ "type": ["string", "boolean"],
474
294
  "description": "Diagnostics for type incompatibilities for assignments.",
475
295
  "default": "error",
476
- "enum": [
477
- "none",
478
- "information",
479
- "warning",
480
- "error",
481
- true,
482
- false
483
- ]
296
+ "enum": ["none", "information", "warning", "error", true, false]
484
297
  },
485
298
  "reportAttributeAccessIssue": {
486
- "type": [
487
- "string",
488
- "boolean"
489
- ],
299
+ "type": ["string", "boolean"],
490
300
  "description": "Diagnostics for issues involving attribute accesses.",
491
301
  "default": "error",
492
- "enum": [
493
- "none",
494
- "information",
495
- "warning",
496
- "error",
497
- true,
498
- false
499
- ]
302
+ "enum": ["none", "information", "warning", "error", true, false]
500
303
  },
501
304
  "reportCallIssue": {
502
- "type": [
503
- "string",
504
- "boolean"
505
- ],
305
+ "type": ["string", "boolean"],
506
306
  "description": "Diagnostics for issues involving call expressions and arguments.",
507
307
  "default": "error",
508
- "enum": [
509
- "none",
510
- "information",
511
- "warning",
512
- "error",
513
- true,
514
- false
515
- ]
308
+ "enum": ["none", "information", "warning", "error", true, false]
516
309
  },
517
310
  "reportInconsistentOverload": {
518
- "type": [
519
- "string",
520
- "boolean"
521
- ],
311
+ "type": ["string", "boolean"],
522
312
  "description": "Diagnostics for inconsistencies between function overload signatures and implementation.",
523
313
  "default": "error",
524
- "enum": [
525
- "none",
526
- "information",
527
- "warning",
528
- "error",
529
- true,
530
- false
531
- ]
314
+ "enum": ["none", "information", "warning", "error", true, false]
532
315
  },
533
316
  "reportIndexIssue": {
534
- "type": [
535
- "string",
536
- "boolean"
537
- ],
317
+ "type": ["string", "boolean"],
538
318
  "description": "Diagnostics related to index operations and expressions.",
539
319
  "default": "error",
540
- "enum": [
541
- "none",
542
- "information",
543
- "warning",
544
- "error",
545
- true,
546
- false
547
- ]
320
+ "enum": ["none", "information", "warning", "error", true, false]
548
321
  },
549
322
  "reportInvalidTypeArguments": {
550
- "type": [
551
- "string",
552
- "boolean"
553
- ],
323
+ "type": ["string", "boolean"],
554
324
  "description": "Diagnostics for invalid type argument usage.",
555
325
  "default": "error",
556
- "enum": [
557
- "none",
558
- "information",
559
- "warning",
560
- "error",
561
- true,
562
- false
563
- ]
326
+ "enum": ["none", "information", "warning", "error", true, false]
564
327
  },
565
328
  "reportNoOverloadImplementation": {
566
- "type": [
567
- "string",
568
- "boolean"
569
- ],
329
+ "type": ["string", "boolean"],
570
330
  "description": "Diagnostics for an overloaded function or method with a missing implementation.",
571
331
  "default": "error",
572
- "enum": [
573
- "none",
574
- "information",
575
- "warning",
576
- "error",
577
- true,
578
- false
579
- ]
332
+ "enum": ["none", "information", "warning", "error", true, false]
580
333
  },
581
334
  "reportOperatorIssue": {
582
- "type": [
583
- "string",
584
- "boolean"
585
- ],
335
+ "type": ["string", "boolean"],
586
336
  "description": "Diagnostics for related to unary or binary operators.",
587
337
  "default": "error",
588
- "enum": [
589
- "none",
590
- "information",
591
- "warning",
592
- "error",
593
- true,
594
- false
595
- ]
338
+ "enum": ["none", "information", "warning", "error", true, false]
596
339
  },
597
340
  "reportOptionalSubscript": {
598
- "type": [
599
- "string",
600
- "boolean"
601
- ],
341
+ "type": ["string", "boolean"],
602
342
  "description": "Diagnostics for an attempt to subscript (index) a variable with an Optional type.",
603
343
  "default": "error",
604
- "enum": [
605
- "none",
606
- "information",
607
- "warning",
608
- "error",
609
- true,
610
- false
611
- ]
344
+ "enum": ["none", "information", "warning", "error", true, false]
612
345
  },
613
346
  "reportOptionalMemberAccess": {
614
- "type": [
615
- "string",
616
- "boolean"
617
- ],
347
+ "type": ["string", "boolean"],
618
348
  "description": "Diagnostics for an attempt to access a member of a variable with an Optional type.",
619
349
  "default": "error",
620
- "enum": [
621
- "none",
622
- "information",
623
- "warning",
624
- "error",
625
- true,
626
- false
627
- ]
350
+ "enum": ["none", "information", "warning", "error", true, false]
628
351
  },
629
352
  "reportOptionalCall": {
630
- "type": [
631
- "string",
632
- "boolean"
633
- ],
353
+ "type": ["string", "boolean"],
634
354
  "description": "Diagnostics for an attempt to call a variable with an Optional type.",
635
355
  "default": "error",
636
- "enum": [
637
- "none",
638
- "information",
639
- "warning",
640
- "error",
641
- true,
642
- false
643
- ]
356
+ "enum": ["none", "information", "warning", "error", true, false]
644
357
  },
645
358
  "reportOptionalIterable": {
646
- "type": [
647
- "string",
648
- "boolean"
649
- ],
359
+ "type": ["string", "boolean"],
650
360
  "description": "Diagnostics for an attempt to use an Optional type as an iterable value (e.g. within a for statement).",
651
361
  "default": "error",
652
- "enum": [
653
- "none",
654
- "information",
655
- "warning",
656
- "error",
657
- true,
658
- false
659
- ]
362
+ "enum": ["none", "information", "warning", "error", true, false]
660
363
  },
661
364
  "reportOptionalContextManager": {
662
- "type": [
663
- "string",
664
- "boolean"
665
- ],
365
+ "type": ["string", "boolean"],
666
366
  "description": "Diagnostics for an attempt to use an Optional type as a context manager (as a parameter to a with statement).",
667
367
  "default": "error",
668
- "enum": [
669
- "none",
670
- "information",
671
- "warning",
672
- "error",
673
- true,
674
- false
675
- ]
368
+ "enum": ["none", "information", "warning", "error", true, false]
676
369
  },
677
370
  "reportOptionalOperand": {
678
- "type": [
679
- "string",
680
- "boolean"
681
- ],
371
+ "type": ["string", "boolean"],
682
372
  "description": "Diagnostics for an attempt to use an Optional type as an operand to a binary or unary operator (like '+', '==', 'or', 'not').",
683
373
  "default": "error",
684
- "enum": [
685
- "none",
686
- "information",
687
- "warning",
688
- "error",
689
- true,
690
- false
691
- ]
374
+ "enum": ["none", "information", "warning", "error", true, false]
692
375
  },
693
376
  "reportRedeclaration": {
694
- "type": [
695
- "string",
696
- "boolean"
697
- ],
377
+ "type": ["string", "boolean"],
698
378
  "description": "Diagnostics for an attempt to declare the type of a symbol multiple times.",
699
379
  "default": "error",
700
- "enum": [
701
- "none",
702
- "information",
703
- "warning",
704
- "error",
705
- true,
706
- false
707
- ]
380
+ "enum": ["none", "information", "warning", "error", true, false]
708
381
  },
709
382
  "reportReturnType": {
710
- "type": [
711
- "string",
712
- "boolean"
713
- ],
383
+ "type": ["string", "boolean"],
714
384
  "description": "Diagnostics related to function return type compatibility.",
715
385
  "default": "error",
716
- "enum": [
717
- "none",
718
- "information",
719
- "warning",
720
- "error",
721
- true,
722
- false
723
- ]
386
+ "enum": ["none", "information", "warning", "error", true, false]
724
387
  },
725
388
  "reportTypedDictNotRequiredAccess": {
726
- "type": [
727
- "string",
728
- "boolean"
729
- ],
389
+ "type": ["string", "boolean"],
730
390
  "description": "Diagnostics for an attempt to access a non-required key within a TypedDict without a check for its presence.",
731
391
  "default": "error",
732
- "enum": [
733
- "none",
734
- "information",
735
- "warning",
736
- "error",
737
- true,
738
- false
739
- ]
392
+ "enum": ["none", "information", "warning", "error", true, false]
740
393
  },
741
394
  "reportUntypedFunctionDecorator": {
742
- "type": [
743
- "string",
744
- "boolean"
745
- ],
395
+ "type": ["string", "boolean"],
746
396
  "description": "Diagnostics for function decorators that have no type annotations. These obscure the function type, defeating many type analysis features.",
747
397
  "default": "none",
748
- "enum": [
749
- "none",
750
- "information",
751
- "warning",
752
- "error",
753
- true,
754
- false
755
- ]
398
+ "enum": ["none", "information", "warning", "error", true, false]
756
399
  },
757
400
  "reportUntypedClassDecorator": {
758
- "type": [
759
- "string",
760
- "boolean"
761
- ],
401
+ "type": ["string", "boolean"],
762
402
  "description": "Diagnostics for class decorators that have no type annotations. These obscure the class type, defeating many type analysis features.",
763
403
  "default": "none",
764
- "enum": [
765
- "none",
766
- "information",
767
- "warning",
768
- "error",
769
- true,
770
- false
771
- ]
404
+ "enum": ["none", "information", "warning", "error", true, false]
772
405
  },
773
406
  "reportUntypedBaseClass": {
774
- "type": [
775
- "string",
776
- "boolean"
777
- ],
407
+ "type": ["string", "boolean"],
778
408
  "description": "Diagnostics for base classes whose type cannot be determined statically. These obscure the class type, defeating many type analysis features.",
779
409
  "default": "none",
780
- "enum": [
781
- "none",
782
- "information",
783
- "warning",
784
- "error",
785
- true,
786
- false
787
- ]
410
+ "enum": ["none", "information", "warning", "error", true, false]
788
411
  },
789
412
  "reportUntypedNamedTuple": {
790
- "type": [
791
- "string",
792
- "boolean"
793
- ],
413
+ "type": ["string", "boolean"],
794
414
  "description": "Diagnostics when “namedtuple” is used rather than “NamedTuple”. The former contains no type information, whereas the latter does.",
795
415
  "default": "none",
796
- "enum": [
797
- "none",
798
- "information",
799
- "warning",
800
- "error",
801
- true,
802
- false
803
- ]
416
+ "enum": ["none", "information", "warning", "error", true, false]
804
417
  },
805
418
  "reportPrivateUsage": {
806
- "type": [
807
- "string",
808
- "boolean"
809
- ],
419
+ "type": ["string", "boolean"],
810
420
  "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.",
811
421
  "default": "none",
812
- "enum": [
813
- "none",
814
- "information",
815
- "warning",
816
- "error",
817
- true,
818
- false
819
- ]
422
+ "enum": ["none", "information", "warning", "error", true, false]
820
423
  },
821
424
  "reportTypeCommentUsage": {
822
- "type": [
823
- "string",
824
- "boolean"
825
- ],
425
+ "type": ["string", "boolean"],
826
426
  "description": "Diagnostics for usage of deprecated type comments.",
827
427
  "default": "none",
828
- "enum": [
829
- "none",
830
- "information",
831
- "warning",
832
- "error",
833
- true,
834
- false
835
- ]
428
+ "enum": ["none", "information", "warning", "error", true, false]
836
429
  },
837
430
  "reportPrivateImportUsage": {
838
- "type": [
839
- "string",
840
- "boolean"
841
- ],
431
+ "type": ["string", "boolean"],
842
432
  "description": "Diagnostics for incorrect usage of symbol imported from a \"py.typed\" module that is not re-exported from that module.",
843
433
  "default": "error",
844
- "enum": [
845
- "none",
846
- "information",
847
- "warning",
848
- "error",
849
- true,
850
- false
851
- ]
434
+ "enum": ["none", "information", "warning", "error", true, false]
852
435
  },
853
436
  "reportConstantRedefinition": {
854
- "type": [
855
- "string",
856
- "boolean"
857
- ],
437
+ "type": ["string", "boolean"],
858
438
  "description": "Diagnostics for attempts to redefine variables whose names are all-caps with underscores and numerals.",
859
439
  "default": "none",
860
- "enum": [
861
- "none",
862
- "information",
863
- "warning",
864
- "error",
865
- true,
866
- false
867
- ]
440
+ "enum": ["none", "information", "warning", "error", true, false]
868
441
  },
869
442
  "reportDeprecated": {
870
- "type": [
871
- "string",
872
- "boolean"
873
- ],
443
+ "type": ["string", "boolean"],
874
444
  "description": "Diagnostics for use of deprecated classes or functions.",
875
445
  "default": "none",
876
- "enum": [
877
- "none",
878
- "information",
879
- "warning",
880
- "error",
881
- true,
882
- false
883
- ]
446
+ "enum": ["none", "information", "warning", "error", true, false]
884
447
  },
885
448
  "reportIncompatibleMethodOverride": {
886
- "type": [
887
- "string",
888
- "boolean"
889
- ],
449
+ "type": ["string", "boolean"],
890
450
  "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).",
891
451
  "default": "error",
892
- "enum": [
893
- "none",
894
- "information",
895
- "warning",
896
- "error",
897
- true,
898
- false
899
- ]
452
+ "enum": ["none", "information", "warning", "error", true, false]
900
453
  },
901
454
  "reportIncompatibleVariableOverride": {
902
- "type": [
903
- "string",
904
- "boolean"
905
- ],
455
+ "type": ["string", "boolean"],
906
456
  "description": "Diagnostics for overrides in subclasses that redefine a variable in an incompatible way.",
907
457
  "default": "error",
908
- "enum": [
909
- "none",
910
- "information",
911
- "warning",
912
- "error",
913
- true,
914
- false
915
- ]
458
+ "enum": ["none", "information", "warning", "error", true, false]
916
459
  },
917
460
  "reportInconsistentConstructor": {
918
- "type": [
919
- "string",
920
- "boolean"
921
- ],
461
+ "type": ["string", "boolean"],
922
462
  "description": "Diagnostics for __init__ and __new__ methods whose signatures are inconsistent.",
923
463
  "default": "none",
924
- "enum": [
925
- "none",
926
- "information",
927
- "warning",
928
- "error",
929
- true,
930
- false
931
- ]
464
+ "enum": ["none", "information", "warning", "error", true, false]
932
465
  },
933
466
  "reportOverlappingOverload": {
934
- "type": [
935
- "string",
936
- "boolean"
937
- ],
467
+ "type": ["string", "boolean"],
938
468
  "description": "Diagnostics for function overloads that overlap in signature and obscure each other or have incompatible return types.",
939
469
  "default": "error",
940
- "enum": [
941
- "none",
942
- "information",
943
- "warning",
944
- "error",
945
- true,
946
- false
947
- ]
470
+ "enum": ["none", "information", "warning", "error", true, false]
948
471
  },
949
472
  "reportPossiblyUnboundVariable": {
950
- "type": [
951
- "string",
952
- "boolean"
953
- ],
473
+ "type": ["string", "boolean"],
954
474
  "description": "Diagnostics for the use of variables that may be unbound on some code paths.",
955
475
  "default": "error",
956
- "enum": [
957
- "none",
958
- "information",
959
- "warning",
960
- "error",
961
- true,
962
- false
963
- ]
476
+ "enum": ["none", "information", "warning", "error", true, false]
964
477
  },
965
478
  "reportMissingSuperCall": {
966
- "type": [
967
- "string",
968
- "boolean"
969
- ],
479
+ "type": ["string", "boolean"],
970
480
  "description": "Diagnostics for missing call to parent class for inherited `__init__` methods.",
971
481
  "default": "none",
972
- "enum": [
973
- "none",
974
- "information",
975
- "warning",
976
- "error",
977
- true,
978
- false
979
- ]
482
+ "enum": ["none", "information", "warning", "error", true, false]
980
483
  },
981
484
  "reportUninitializedInstanceVariable": {
982
- "type": [
983
- "string",
984
- "boolean"
985
- ],
485
+ "type": ["string", "boolean"],
986
486
  "description": "Diagnostics for instance variables that are not declared or initialized within class body or `__init__` method.",
987
487
  "default": "none",
988
- "enum": [
989
- "none",
990
- "information",
991
- "warning",
992
- "error",
993
- true,
994
- false
995
- ]
488
+ "enum": ["none", "information", "warning", "error", true, false]
996
489
  },
997
490
  "reportInvalidStringEscapeSequence": {
998
- "type": [
999
- "string",
1000
- "boolean"
1001
- ],
491
+ "type": ["string", "boolean"],
1002
492
  "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.",
1003
493
  "default": "warning",
1004
- "enum": [
1005
- "none",
1006
- "information",
1007
- "warning",
1008
- "error",
1009
- true,
1010
- false
1011
- ]
494
+ "enum": ["none", "information", "warning", "error", true, false]
1012
495
  },
1013
496
  "reportUnknownParameterType": {
1014
- "type": [
1015
- "string",
1016
- "boolean"
1017
- ],
497
+ "type": ["string", "boolean"],
1018
498
  "description": "Diagnostics for input or return parameters for functions or methods that have an unknown type.",
1019
499
  "default": "none",
1020
- "enum": [
1021
- "none",
1022
- "information",
1023
- "warning",
1024
- "error",
1025
- true,
1026
- false
1027
- ]
500
+ "enum": ["none", "information", "warning", "error", true, false]
1028
501
  },
1029
502
  "reportUnknownArgumentType": {
1030
- "type": [
1031
- "string",
1032
- "boolean"
1033
- ],
503
+ "type": ["string", "boolean"],
1034
504
  "description": "Diagnostics for call arguments for functions or methods that have an unknown type.",
1035
505
  "default": "none",
1036
- "enum": [
1037
- "none",
1038
- "information",
1039
- "warning",
1040
- "error",
1041
- true,
1042
- false
1043
- ]
506
+ "enum": ["none", "information", "warning", "error", true, false]
1044
507
  },
1045
508
  "reportUnknownLambdaType": {
1046
- "type": [
1047
- "string",
1048
- "boolean"
1049
- ],
509
+ "type": ["string", "boolean"],
1050
510
  "description": "Diagnostics for input or return parameters for lambdas that have an unknown type.",
1051
511
  "default": "none",
1052
- "enum": [
1053
- "none",
1054
- "information",
1055
- "warning",
1056
- "error",
1057
- true,
1058
- false
1059
- ]
512
+ "enum": ["none", "information", "warning", "error", true, false]
1060
513
  },
1061
514
  "reportUnknownVariableType": {
1062
- "type": [
1063
- "string",
1064
- "boolean"
1065
- ],
515
+ "type": ["string", "boolean"],
1066
516
  "description": "Diagnostics for variables that have an unknown type..",
1067
517
  "default": "none",
1068
- "enum": [
1069
- "none",
1070
- "information",
1071
- "warning",
1072
- "error",
1073
- true,
1074
- false
1075
- ]
518
+ "enum": ["none", "information", "warning", "error", true, false]
1076
519
  },
1077
520
  "reportUnknownMemberType": {
1078
- "type": [
1079
- "string",
1080
- "boolean"
1081
- ],
521
+ "type": ["string", "boolean"],
1082
522
  "description": "Diagnostics for class or instance variables that have an unknown type.",
1083
523
  "default": "none",
1084
- "enum": [
1085
- "none",
1086
- "information",
1087
- "warning",
1088
- "error",
1089
- true,
1090
- false
1091
- ]
524
+ "enum": ["none", "information", "warning", "error", true, false]
1092
525
  },
1093
526
  "reportMissingParameterType": {
1094
- "type": [
1095
- "string",
1096
- "boolean"
1097
- ],
527
+ "type": ["string", "boolean"],
1098
528
  "description": "Diagnostics for parameters that are missing a type annotation.",
1099
529
  "default": "none",
1100
- "enum": [
1101
- "none",
1102
- "information",
1103
- "warning",
1104
- "error",
1105
- true,
1106
- false
1107
- ]
530
+ "enum": ["none", "information", "warning", "error", true, false]
1108
531
  },
1109
532
  "reportMissingTypeArgument": {
1110
- "type": [
1111
- "string",
1112
- "boolean"
1113
- ],
533
+ "type": ["string", "boolean"],
1114
534
  "description": "Diagnostics for generic class reference with missing type arguments.",
1115
535
  "default": "none",
1116
- "enum": [
1117
- "none",
1118
- "information",
1119
- "warning",
1120
- "error",
1121
- true,
1122
- false
1123
- ]
536
+ "enum": ["none", "information", "warning", "error", true, false]
1124
537
  },
1125
538
  "reportInvalidTypeVarUse": {
1126
- "type": [
1127
- "string",
1128
- "boolean"
1129
- ],
539
+ "type": ["string", "boolean"],
1130
540
  "description": "Diagnostics for improper use of type variables in a function signature.",
1131
541
  "default": "warning",
1132
- "enum": [
1133
- "none",
1134
- "information",
1135
- "warning",
1136
- "error",
1137
- true,
1138
- false
1139
- ]
542
+ "enum": ["none", "information", "warning", "error", true, false]
1140
543
  },
1141
544
  "reportCallInDefaultInitializer": {
1142
- "type": [
1143
- "string",
1144
- "boolean"
1145
- ],
545
+ "type": ["string", "boolean"],
1146
546
  "description": "Diagnostics for function calls within a default value initialization expression. Such calls can mask expensive operations that are performed at module initialization time.",
1147
547
  "default": "none",
1148
- "enum": [
1149
- "none",
1150
- "information",
1151
- "warning",
1152
- "error",
1153
- true,
1154
- false
1155
- ]
548
+ "enum": ["none", "information", "warning", "error", true, false]
1156
549
  },
1157
550
  "reportUnnecessaryIsInstance": {
1158
- "type": [
1159
- "string",
1160
- "boolean"
1161
- ],
551
+ "type": ["string", "boolean"],
1162
552
  "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.",
1163
553
  "default": "none",
1164
- "enum": [
1165
- "none",
1166
- "information",
1167
- "warning",
1168
- "error",
1169
- true,
1170
- false
1171
- ]
554
+ "enum": ["none", "information", "warning", "error", true, false]
1172
555
  },
1173
556
  "reportUnnecessaryCast": {
1174
- "type": [
1175
- "string",
1176
- "boolean"
1177
- ],
557
+ "type": ["string", "boolean"],
1178
558
  "description": "Diagnostics for 'cast' calls that are statically determined to be unnecessary. Such calls are sometimes indicative of a programming error.",
1179
559
  "default": "none",
1180
- "enum": [
1181
- "none",
1182
- "information",
1183
- "warning",
1184
- "error",
1185
- true,
1186
- false
1187
- ]
560
+ "enum": ["none", "information", "warning", "error", true, false]
1188
561
  },
1189
562
  "reportUnnecessaryComparison": {
1190
- "type": [
1191
- "string",
1192
- "boolean"
1193
- ],
563
+ "type": ["string", "boolean"],
1194
564
  "description": "Diagnostics for '==' and '!=' comparisons that are statically determined to be unnecessary. Such calls are sometimes indicative of a programming error.",
1195
565
  "default": "none",
1196
- "enum": [
1197
- "none",
1198
- "information",
1199
- "warning",
1200
- "error",
1201
- true,
1202
- false
1203
- ]
566
+ "enum": ["none", "information", "warning", "error", true, false]
1204
567
  },
1205
568
  "reportUnnecessaryContains": {
1206
- "type": [
1207
- "string",
1208
- "boolean"
1209
- ],
569
+ "type": ["string", "boolean"],
1210
570
  "description": "Diagnostics for 'in' operation that is statically determined to be unnecessary. Such operations are sometimes indicative of a programming error.",
1211
571
  "default": "none",
1212
- "enum": [
1213
- "none",
1214
- "information",
1215
- "warning",
1216
- "error",
1217
- true,
1218
- false
1219
- ]
572
+ "enum": ["none", "information", "warning", "error", true, false]
1220
573
  },
1221
574
  "reportAssertAlwaysTrue": {
1222
- "type": [
1223
- "string",
1224
- "boolean"
1225
- ],
575
+ "type": ["string", "boolean"],
1226
576
  "description": "Diagnostics for 'assert' statement that will provably always assert. This can be indicative of a programming error.",
1227
577
  "default": "warning",
1228
- "enum": [
1229
- "none",
1230
- "information",
1231
- "warning",
1232
- "error",
1233
- true,
1234
- false
1235
- ]
578
+ "enum": ["none", "information", "warning", "error", true, false]
1236
579
  },
1237
580
  "reportSelfClsParameterName": {
1238
- "type": [
1239
- "string",
1240
- "boolean"
1241
- ],
581
+ "type": ["string", "boolean"],
1242
582
  "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.",
1243
583
  "default": "warning",
1244
- "enum": [
1245
- "none",
1246
- "information",
1247
- "warning",
1248
- "error",
1249
- true,
1250
- false
1251
- ]
584
+ "enum": ["none", "information", "warning", "error", true, false]
1252
585
  },
1253
586
  "reportImplicitStringConcatenation": {
1254
- "type": [
1255
- "string",
1256
- "boolean"
1257
- ],
587
+ "type": ["string", "boolean"],
1258
588
  "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.",
1259
589
  "default": "none",
1260
- "enum": [
1261
- "none",
1262
- "information",
1263
- "warning",
1264
- "error",
1265
- true,
1266
- false
1267
- ]
590
+ "enum": ["none", "information", "warning", "error", true, false]
1268
591
  },
1269
592
  "reportInvalidStubStatement": {
1270
- "type": [
1271
- "string",
1272
- "boolean"
1273
- ],
593
+ "type": ["string", "boolean"],
1274
594
  "description": "Diagnostics for type stub statements that do not conform to PEP 484.",
1275
595
  "default": "none",
1276
- "enum": [
1277
- "none",
1278
- "information",
1279
- "warning",
1280
- "error",
1281
- true,
1282
- false
1283
- ]
596
+ "enum": ["none", "information", "warning", "error", true, false]
1284
597
  },
1285
598
  "reportIncompleteStub": {
1286
- "type": [
1287
- "string",
1288
- "boolean"
1289
- ],
599
+ "type": ["string", "boolean"],
1290
600
  "description": "Diagnostics for the use of a module-level “__getattr__” function, indicating that the stub is incomplete.",
1291
601
  "default": "none",
1292
- "enum": [
1293
- "none",
1294
- "information",
1295
- "warning",
1296
- "error",
1297
- true,
1298
- false
1299
- ]
602
+ "enum": ["none", "information", "warning", "error", true, false]
1300
603
  },
1301
604
  "reportUndefinedVariable": {
1302
- "type": [
1303
- "string",
1304
- "boolean"
1305
- ],
605
+ "type": ["string", "boolean"],
1306
606
  "description": "Diagnostics for undefined variables.",
1307
607
  "default": "error",
1308
- "enum": [
1309
- "none",
1310
- "information",
1311
- "warning",
1312
- "error",
1313
- true,
1314
- false
1315
- ]
608
+ "enum": ["none", "information", "warning", "error", true, false]
1316
609
  },
1317
610
  "reportUnboundVariable": {
1318
- "type": [
1319
- "string",
1320
- "boolean"
1321
- ],
611
+ "type": ["string", "boolean"],
1322
612
  "description": "Diagnostics for the use of unbound variables.",
1323
613
  "default": "error",
1324
- "enum": [
1325
- "none",
1326
- "information",
1327
- "warning",
1328
- "error",
1329
- true,
1330
- false
1331
- ]
614
+ "enum": ["none", "information", "warning", "error", true, false]
1332
615
  },
1333
616
  "reportUnhashable": {
1334
- "type": [
1335
- "string",
1336
- "boolean"
1337
- ],
617
+ "type": ["string", "boolean"],
1338
618
  "description": "Diagnostics for the use of an unhashable object in a container that requires hashability.",
1339
619
  "default": "error",
1340
- "enum": [
1341
- "none",
1342
- "information",
1343
- "warning",
1344
- "error",
1345
- true,
1346
- false
1347
- ]
620
+ "enum": ["none", "information", "warning", "error", true, false]
1348
621
  },
1349
622
  "reportUnsupportedDunderAll": {
1350
- "type": [
1351
- "string",
1352
- "boolean"
1353
- ],
623
+ "type": ["string", "boolean"],
1354
624
  "description": "Diagnostics for unsupported operations performed on __all__.",
1355
625
  "default": "warning",
1356
- "enum": [
1357
- "none",
1358
- "information",
1359
- "warning",
1360
- "error",
1361
- true,
1362
- false
1363
- ]
626
+ "enum": ["none", "information", "warning", "error", true, false]
1364
627
  },
1365
628
  "reportUnusedCallResult": {
1366
- "type": [
1367
- "string",
1368
- "boolean"
1369
- ],
629
+ "type": ["string", "boolean"],
1370
630
  "description": "Diagnostics for call expressions whose results are not consumed and are not None.",
1371
631
  "default": "none",
1372
- "enum": [
1373
- "none",
1374
- "information",
1375
- "warning",
1376
- "error",
1377
- true,
1378
- false
1379
- ]
632
+ "enum": ["none", "information", "warning", "error", true, false]
1380
633
  },
1381
634
  "reportUnusedCoroutine": {
1382
- "type": [
1383
- "string",
1384
- "boolean"
1385
- ],
635
+ "type": ["string", "boolean"],
1386
636
  "description": "Diagnostics for call expressions that return a Coroutine and whose results are not consumed.",
1387
637
  "default": "error",
1388
- "enum": [
1389
- "none",
1390
- "information",
1391
- "warning",
1392
- "error",
1393
- true,
1394
- false
1395
- ]
638
+ "enum": ["none", "information", "warning", "error", true, false]
1396
639
  },
1397
640
  "reportUnusedExcept": {
1398
- "type": [
1399
- "string",
1400
- "boolean"
1401
- ],
641
+ "type": ["string", "boolean"],
1402
642
  "description": "Diagnostics for unreachable except clause.",
1403
643
  "default": "error",
1404
- "enum": [
1405
- "none",
1406
- "information",
1407
- "warning",
1408
- "error",
1409
- true,
1410
- false
1411
- ]
644
+ "enum": ["none", "information", "warning", "error", true, false]
1412
645
  },
1413
646
  "reportUnusedExpression": {
1414
- "type": [
1415
- "string",
1416
- "boolean"
1417
- ],
647
+ "type": ["string", "boolean"],
1418
648
  "description": "Diagnostics for simple expressions whose value is not used in any way.",
1419
649
  "default": "warning",
1420
- "enum": [
1421
- "none",
1422
- "information",
1423
- "warning",
1424
- "error",
1425
- true,
1426
- false
1427
- ]
650
+ "enum": ["none", "information", "warning", "error", true, false]
1428
651
  },
1429
652
  "reportUnnecessaryTypeIgnoreComment": {
1430
- "type": [
1431
- "string",
1432
- "boolean"
1433
- ],
653
+ "type": ["string", "boolean"],
1434
654
  "description": "Diagnostics for '# type: ignore' comments that have no effect.",
1435
655
  "default": "none",
1436
- "enum": [
1437
- "none",
1438
- "information",
1439
- "warning",
1440
- "error",
1441
- true,
1442
- false
1443
- ]
656
+ "enum": ["none", "information", "warning", "error", true, false]
1444
657
  },
1445
658
  "reportMatchNotExhaustive": {
1446
- "type": [
1447
- "string",
1448
- "boolean"
1449
- ],
659
+ "type": ["string", "boolean"],
1450
660
  "description": "Diagnostics for 'match' statements that do not exhaustively match all possible values.",
1451
661
  "default": "none",
1452
- "enum": [
1453
- "none",
1454
- "information",
1455
- "warning",
1456
- "error",
1457
- true,
1458
- false
1459
- ]
662
+ "enum": ["none", "information", "warning", "error", true, false]
1460
663
  },
1461
664
  "reportShadowedImports": {
1462
- "type": [
1463
- "string",
1464
- "boolean"
1465
- ],
665
+ "type": ["string", "boolean"],
1466
666
  "description": "Diagnostics for files that are overriding a module in the stdlib.",
1467
667
  "default": "none",
1468
- "enum": [
1469
- "none",
1470
- "information",
1471
- "warning",
1472
- "error",
1473
- true,
1474
- false
1475
- ]
668
+ "enum": ["none", "information", "warning", "error", true, false]
1476
669
  },
1477
670
  "reportImplicitOverride": {
1478
- "type": [
1479
- "string",
1480
- "boolean"
1481
- ],
671
+ "type": ["string", "boolean"],
1482
672
  "description": "Diagnostics for overridden methods that do not include an `@override` decorator.",
1483
673
  "default": "none",
1484
- "enum": [
1485
- "none",
1486
- "information",
1487
- "warning",
1488
- "error",
1489
- true,
1490
- false
1491
- ]
674
+ "enum": ["none", "information", "warning", "error", true, false]
1492
675
  }
1493
676
  }
1494
677
  },
@@ -1496,22 +679,12 @@
1496
679
  "type": "string",
1497
680
  "default": "Information",
1498
681
  "description": "Specifies the level of logging for the Output panel",
1499
- "enum": [
1500
- "Error",
1501
- "Warning",
1502
- "Information",
1503
- "Trace"
1504
- ]
682
+ "enum": ["Error", "Warning", "Information", "Trace"]
1505
683
  },
1506
684
  "python.analysis.typeCheckingMode": {
1507
685
  "type": "string",
1508
686
  "default": "standard",
1509
- "enum": [
1510
- "off",
1511
- "basic",
1512
- "standard",
1513
- "strict"
1514
- ],
687
+ "enum": ["off", "basic", "standard", "strict"],
1515
688
  "description": "Defines the default rule set for type checking.",
1516
689
  "scope": "resource"
1517
690
  },
@@ -1540,36 +713,21 @@
1540
713
  "type": "string",
1541
714
  "default": "Error",
1542
715
  "description": "Severity of Flake8 message type 'E'.",
1543
- "enum": [
1544
- "Hint",
1545
- "Error",
1546
- "Information",
1547
- "Warning"
1548
- ],
716
+ "enum": ["Hint", "Error", "Information", "Warning"],
1549
717
  "scope": "resource"
1550
718
  },
1551
719
  "python.linting.flake8CategorySeverity.F": {
1552
720
  "type": "string",
1553
721
  "default": "Error",
1554
722
  "description": "Severity of Flake8 message type 'F'.",
1555
- "enum": [
1556
- "Hint",
1557
- "Error",
1558
- "Information",
1559
- "Warning"
1560
- ],
723
+ "enum": ["Hint", "Error", "Information", "Warning"],
1561
724
  "scope": "resource"
1562
725
  },
1563
726
  "python.linting.flake8CategorySeverity.W": {
1564
727
  "type": "string",
1565
728
  "default": "Warning",
1566
729
  "description": "Severity of Flake8 message type 'W'.",
1567
- "enum": [
1568
- "Hint",
1569
- "Error",
1570
- "Information",
1571
- "Warning"
1572
- ],
730
+ "enum": ["Hint", "Error", "Information", "Warning"],
1573
731
  "scope": "resource"
1574
732
  },
1575
733
  "python.linting.flake8Enabled": {
@@ -1593,10 +751,7 @@
1593
751
  "python.linting.ignorePatterns": {
1594
752
  "type": "array",
1595
753
  "description": "Patterns used to exclude files or folders from being linted.",
1596
- "default": [
1597
- ".vscode/*.py",
1598
- "**/site-packages/**/*.py"
1599
- ],
754
+ "default": [".vscode/*.py", "**/site-packages/**/*.py"],
1600
755
  "items": {
1601
756
  "type": "string"
1602
757
  },
@@ -1638,12 +793,7 @@
1638
793
  "python.linting.mypyArgs": {
1639
794
  "type": "array",
1640
795
  "description": "Arguments passed in. Each argument is a separate item in the array.",
1641
- "default": [
1642
- "--no-pretty",
1643
- "--ignore-missing-imports",
1644
- "--follow-imports=silent",
1645
- "--show-column-numbers"
1646
- ],
796
+ "default": ["--no-pretty", "--ignore-missing-imports", "--follow-imports=silent", "--show-column-numbers"],
1647
797
  "items": {
1648
798
  "type": "string"
1649
799
  },
@@ -1653,24 +803,14 @@
1653
803
  "type": "string",
1654
804
  "default": "Error",
1655
805
  "description": "Severity of Mypy message type 'Error'.",
1656
- "enum": [
1657
- "Hint",
1658
- "Error",
1659
- "Information",
1660
- "Warning"
1661
- ],
806
+ "enum": ["Hint", "Error", "Information", "Warning"],
1662
807
  "scope": "resource"
1663
808
  },
1664
809
  "python.linting.mypyCategorySeverity.note": {
1665
810
  "type": "string",
1666
811
  "default": "Information",
1667
812
  "description": "Severity of Mypy message type 'Note'.",
1668
- "enum": [
1669
- "Hint",
1670
- "Error",
1671
- "Information",
1672
- "Warning"
1673
- ],
813
+ "enum": ["Hint", "Error", "Information", "Warning"],
1674
814
  "scope": "resource"
1675
815
  },
1676
816
  "python.linting.mypyEnabled": {
@@ -1719,24 +859,14 @@
1719
859
  "type": "string",
1720
860
  "default": "Error",
1721
861
  "description": "Severity of pycodestyle message type 'E'.",
1722
- "enum": [
1723
- "Hint",
1724
- "Error",
1725
- "Information",
1726
- "Warning"
1727
- ],
862
+ "enum": ["Hint", "Error", "Information", "Warning"],
1728
863
  "scope": "resource"
1729
864
  },
1730
865
  "python.linting.pycodestyleCategorySeverity.W": {
1731
866
  "type": "string",
1732
867
  "default": "Warning",
1733
868
  "description": "Severity of pycodestyle message type 'W'.",
1734
- "enum": [
1735
- "Hint",
1736
- "Error",
1737
- "Information",
1738
- "Warning"
1739
- ],
869
+ "enum": ["Hint", "Error", "Information", "Warning"],
1740
870
  "scope": "resource"
1741
871
  },
1742
872
  "python.linting.pycodestyleEnabled": {
@@ -1866,60 +996,35 @@
1866
996
  "type": "string",
1867
997
  "default": "Information",
1868
998
  "description": "Severity of Pylint message type 'Convention/C'.",
1869
- "enum": [
1870
- "Hint",
1871
- "Error",
1872
- "Information",
1873
- "Warning"
1874
- ],
999
+ "enum": ["Hint", "Error", "Information", "Warning"],
1875
1000
  "scope": "resource"
1876
1001
  },
1877
1002
  "python.linting.pylintCategorySeverity.error": {
1878
1003
  "type": "string",
1879
1004
  "default": "Error",
1880
1005
  "description": "Severity of Pylint message type 'Error/E'.",
1881
- "enum": [
1882
- "Hint",
1883
- "Error",
1884
- "Information",
1885
- "Warning"
1886
- ],
1006
+ "enum": ["Hint", "Error", "Information", "Warning"],
1887
1007
  "scope": "resource"
1888
1008
  },
1889
1009
  "python.linting.pylintCategorySeverity.fatal": {
1890
1010
  "type": "string",
1891
1011
  "default": "Error",
1892
1012
  "description": "Severity of Pylint message type 'Fatal/F'.",
1893
- "enum": [
1894
- "Hint",
1895
- "Error",
1896
- "Information",
1897
- "Warning"
1898
- ],
1013
+ "enum": ["Hint", "Error", "Information", "Warning"],
1899
1014
  "scope": "resource"
1900
1015
  },
1901
1016
  "python.linting.pylintCategorySeverity.refactor": {
1902
1017
  "type": "string",
1903
1018
  "default": "Hint",
1904
1019
  "description": "Severity of Pylint message type 'Refactor/R'.",
1905
- "enum": [
1906
- "Hint",
1907
- "Error",
1908
- "Information",
1909
- "Warning"
1910
- ],
1020
+ "enum": ["Hint", "Error", "Information", "Warning"],
1911
1021
  "scope": "resource"
1912
1022
  },
1913
1023
  "python.linting.pylintCategorySeverity.warning": {
1914
1024
  "type": "string",
1915
1025
  "default": "Warning",
1916
1026
  "description": "Severity of Pylint message type 'Warning/W'.",
1917
- "enum": [
1918
- "Hint",
1919
- "Error",
1920
- "Information",
1921
- "Warning"
1922
- ],
1027
+ "enum": ["Hint", "Error", "Information", "Warning"],
1923
1028
  "scope": "resource"
1924
1029
  },
1925
1030
  "python.linting.pylintStdin": {
@@ -2064,16 +1169,7 @@
2064
1169
  "type": "string",
2065
1170
  "default": "autopep8",
2066
1171
  "description": "Provider for formatting.",
2067
- "enum": [
2068
- "autopep8",
2069
- "darker",
2070
- "black",
2071
- "pyink",
2072
- "blackd",
2073
- "yapf",
2074
- "ruff",
2075
- "none"
2076
- ],
1172
+ "enum": ["autopep8", "darker", "black", "pyink", "blackd", "yapf", "ruff", "none"],
2077
1173
  "scope": "resource"
2078
1174
  },
2079
1175
  "python.sortImports.path": {
@@ -2131,11 +1227,7 @@
2131
1227
  "type": "string",
2132
1228
  "default": "pyright",
2133
1229
  "description": "Organize imports provider",
2134
- "enum": [
2135
- "pyright",
2136
- "ruff",
2137
- "isort"
2138
- ]
1230
+ "enum": ["pyright", "ruff", "isort"]
2139
1231
  },
2140
1232
  "pyright.server": {
2141
1233
  "type": "string",
@@ -2145,10 +1237,7 @@
2145
1237
  "pyright.testing.provider": {
2146
1238
  "type": "string",
2147
1239
  "default": "unittest",
2148
- "enum": [
2149
- "unittest",
2150
- "pytest"
2151
- ],
1240
+ "enum": ["unittest", "pytest"],
2152
1241
  "description": "Provider for testing, supports 'unittest' and 'pytest'."
2153
1242
  },
2154
1243
  "pyright.testing.pytestArgs": {
@@ -2170,16 +1259,8 @@
2170
1259
  "pyright.trace.server": {
2171
1260
  "type": "string",
2172
1261
  "scope": "window",
2173
- "enum": [
2174
- "off",
2175
- "messages",
2176
- "verbose"
2177
- ],
2178
- "enumDescriptions": [
2179
- "No traces",
2180
- "Error only",
2181
- "Full log"
2182
- ],
1262
+ "enum": ["off", "messages", "verbose"],
1263
+ "enumDescriptions": ["No traces", "Error only", "Full log"],
2183
1264
  "default": "off",
2184
1265
  "description": "Trace requests to Pyright"
2185
1266
  }
@@ -2229,6 +1310,6 @@
2229
1310
  ]
2230
1311
  },
2231
1312
  "dependencies": {
2232
- "pyright": "^1.1.385"
1313
+ "pyright": "^1.1.393"
2233
1314
  }
2234
1315
  }