coc-pyright 1.1.347 → 1.1.348

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 +72 -72
  2. package/package.json +263 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "coc-pyright",
3
- "version": "1.1.347",
3
+ "version": "1.1.348",
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",
@@ -41,7 +41,7 @@
41
41
  "@types/which": "^3.0.3",
42
42
  "@typescript-eslint/eslint-plugin": "^6.13.2",
43
43
  "@typescript-eslint/parser": "^6.13.2",
44
- "@zzzen/pyright-internal": "^1.2.0-dev.20240114",
44
+ "@zzzen/pyright-internal": "^1.2.0-dev.20240121",
45
45
  "coc.nvim": "^0.0.83-next.18",
46
46
  "diff-match-patch": "^1.0.5",
47
47
  "esbuild": "^0.19.8",
@@ -66,10 +66,12 @@
66
66
  "filetype": "python",
67
67
  "patterns": [
68
68
  "app.py",
69
- "setup.py",
69
+ "tox.ini",
70
70
  "Pipfile",
71
+ "setup.py",
71
72
  "setup.cfg",
72
73
  "manage.py",
74
+ "pytest.ini",
73
75
  "pyproject.toml",
74
76
  "requirements.txt",
75
77
  "pyrightconfig.json"
@@ -273,6 +275,22 @@
273
275
  false
274
276
  ]
275
277
  },
278
+ "reportInvalidTypeForm": {
279
+ "type": [
280
+ "string",
281
+ "boolean"
282
+ ],
283
+ "description": "Diagnostics for type expression that uses an invalid form.",
284
+ "default": "error",
285
+ "enum": [
286
+ "none",
287
+ "information",
288
+ "warning",
289
+ "error",
290
+ true,
291
+ false
292
+ ]
293
+ },
276
294
  "reportMissingTypeStubs": {
277
295
  "type": [
278
296
  "string",
@@ -401,6 +419,182 @@
401
419
  false
402
420
  ]
403
421
  },
422
+ "reportAbstractUsage": {
423
+ "type": [
424
+ "string",
425
+ "boolean"
426
+ ],
427
+ "description": "Diagnostics for an attempt to instantiate an abstract or protocol class or use an abstract method.",
428
+ "default": "error",
429
+ "enum": [
430
+ "none",
431
+ "information",
432
+ "warning",
433
+ "error",
434
+ true,
435
+ false
436
+ ]
437
+ },
438
+ "reportArgumentType": {
439
+ "type": [
440
+ "string",
441
+ "boolean"
442
+ ],
443
+ "description": "Diagnostics for a type incompatibility for an argument to a call.",
444
+ "default": "error",
445
+ "enum": [
446
+ "none",
447
+ "information",
448
+ "warning",
449
+ "error",
450
+ true,
451
+ false
452
+ ]
453
+ },
454
+ "reportAssertTypeFailure": {
455
+ "type": [
456
+ "string",
457
+ "boolean"
458
+ ],
459
+ "description": "Diagnostics for a type incompatibility detected by a typing.assert_type call.",
460
+ "default": "error",
461
+ "enum": [
462
+ "none",
463
+ "information",
464
+ "warning",
465
+ "error",
466
+ true,
467
+ false
468
+ ]
469
+ },
470
+ "reportAssignmentType": {
471
+ "type": [
472
+ "string",
473
+ "boolean"
474
+ ],
475
+ "description": "Diagnostics for type incompatibilities for assignments.",
476
+ "default": "error",
477
+ "enum": [
478
+ "none",
479
+ "information",
480
+ "warning",
481
+ "error",
482
+ true,
483
+ false
484
+ ]
485
+ },
486
+ "reportAttributeAccessIssue": {
487
+ "type": [
488
+ "string",
489
+ "boolean"
490
+ ],
491
+ "description": "Diagnostics for issues involving attribute accesses.",
492
+ "default": "error",
493
+ "enum": [
494
+ "none",
495
+ "information",
496
+ "warning",
497
+ "error",
498
+ true,
499
+ false
500
+ ]
501
+ },
502
+ "reportCallIssue": {
503
+ "type": [
504
+ "string",
505
+ "boolean"
506
+ ],
507
+ "description": "Diagnostics for issues involving call expressions and arguments.",
508
+ "default": "error",
509
+ "enum": [
510
+ "none",
511
+ "information",
512
+ "warning",
513
+ "error",
514
+ true,
515
+ false
516
+ ]
517
+ },
518
+ "reportInconsistentOverload": {
519
+ "type": [
520
+ "string",
521
+ "boolean"
522
+ ],
523
+ "description": "Diagnostics for inconsistencies between function overload signatures and implementation.",
524
+ "default": "error",
525
+ "enum": [
526
+ "none",
527
+ "information",
528
+ "warning",
529
+ "error",
530
+ true,
531
+ false
532
+ ]
533
+ },
534
+ "reportIndexIssue": {
535
+ "type": [
536
+ "string",
537
+ "boolean"
538
+ ],
539
+ "description": "Diagnostics related to index operations and expressions.",
540
+ "default": "error",
541
+ "enum": [
542
+ "none",
543
+ "information",
544
+ "warning",
545
+ "error",
546
+ true,
547
+ false
548
+ ]
549
+ },
550
+ "reportInvalidTypeArguments": {
551
+ "type": [
552
+ "string",
553
+ "boolean"
554
+ ],
555
+ "description": "Diagnostics for invalid type argument usage.",
556
+ "default": "error",
557
+ "enum": [
558
+ "none",
559
+ "information",
560
+ "warning",
561
+ "error",
562
+ true,
563
+ false
564
+ ]
565
+ },
566
+ "reportNoOverloadImplementation": {
567
+ "type": [
568
+ "string",
569
+ "boolean"
570
+ ],
571
+ "description": "Diagnostics for an overloaded function or method with a missing implementation.",
572
+ "default": "error",
573
+ "enum": [
574
+ "none",
575
+ "information",
576
+ "warning",
577
+ "error",
578
+ true,
579
+ false
580
+ ]
581
+ },
582
+ "reportOperatorIssue": {
583
+ "type": [
584
+ "string",
585
+ "boolean"
586
+ ],
587
+ "description": "Diagnostics for related to unary or binary operators.",
588
+ "default": "error",
589
+ "enum": [
590
+ "none",
591
+ "information",
592
+ "warning",
593
+ "error",
594
+ true,
595
+ false
596
+ ]
597
+ },
404
598
  "reportOptionalSubscript": {
405
599
  "type": [
406
600
  "string",
@@ -497,6 +691,38 @@
497
691
  false
498
692
  ]
499
693
  },
694
+ "reportRedeclaration": {
695
+ "type": [
696
+ "string",
697
+ "boolean"
698
+ ],
699
+ "description": "Diagnostics for an attempt to declare the type of a symbol multiple times.",
700
+ "default": "error",
701
+ "enum": [
702
+ "none",
703
+ "information",
704
+ "warning",
705
+ "error",
706
+ true,
707
+ false
708
+ ]
709
+ },
710
+ "reportReturnType": {
711
+ "type": [
712
+ "string",
713
+ "boolean"
714
+ ],
715
+ "description": "Diagnostics related to function return type compatibility.",
716
+ "default": "error",
717
+ "enum": [
718
+ "none",
719
+ "information",
720
+ "warning",
721
+ "error",
722
+ true,
723
+ false
724
+ ]
725
+ },
500
726
  "reportTypedDictNotRequiredAccess": {
501
727
  "type": [
502
728
  "string",
@@ -721,6 +947,22 @@
721
947
  false
722
948
  ]
723
949
  },
950
+ "reportPossiblyUnboundVariable": {
951
+ "type": [
952
+ "string",
953
+ "boolean"
954
+ ],
955
+ "description": "Diagnostics for the use of variables that may be unbound on some code paths.",
956
+ "default": "error",
957
+ "enum": [
958
+ "none",
959
+ "information",
960
+ "warning",
961
+ "error",
962
+ true,
963
+ false
964
+ ]
965
+ },
724
966
  "reportMissingSuperCall": {
725
967
  "type": [
726
968
  "string",
@@ -1078,7 +1320,7 @@
1078
1320
  "string",
1079
1321
  "boolean"
1080
1322
  ],
1081
- "description": "Diagnostics for unbound and possibly unbound variables.",
1323
+ "description": "Diagnostics for the use of unbound variables.",
1082
1324
  "default": "error",
1083
1325
  "enum": [
1084
1326
  "none",
@@ -1137,6 +1379,22 @@
1137
1379
  false
1138
1380
  ]
1139
1381
  },
1382
+ "reportUnusedExcept": {
1383
+ "type": [
1384
+ "string",
1385
+ "boolean"
1386
+ ],
1387
+ "description": "Diagnostics for unreachable except clause.",
1388
+ "default": "error",
1389
+ "enum": [
1390
+ "none",
1391
+ "information",
1392
+ "warning",
1393
+ "error",
1394
+ true,
1395
+ false
1396
+ ]
1397
+ },
1140
1398
  "reportUnusedExpression": {
1141
1399
  "type": [
1142
1400
  "string",
@@ -1956,6 +2214,6 @@
1956
2214
  ]
1957
2215
  },
1958
2216
  "dependencies": {
1959
- "pyright": "^1.1.347"
2217
+ "pyright": "^1.1.348"
1960
2218
  }
1961
2219
  }