Commit Graph

519 Commits

Author SHA1 Message Date
Eric Traut
fe1e16ec1e
Added a new configuration switch disableBytesTypePromotions that controls whether bytearray and memoryview should be implicit subtypes of bytes. This switch defaults to false in basic type checking mode and true in strict mode. Eventually, we will probably have it default to true in all modes. (#6024)
Co-authored-by: Eric Traut <erictr@microsoft.com>
2023-09-25 12:00:40 -07:00
Eric Traut
f7d27b77d8 Published 1.1.328 2023-09-19 17:50:45 -07:00
Eric Traut
37b907a93e Published 1.1.327 2023-09-12 18:24:13 -07:00
Eric Traut
e758470bd7 Published 1.1.326 2023-09-05 18:51:07 -07:00
Eric Traut
1cb6274608 Published 1.1.325 2023-08-29 19:29:07 -07:00
Eric Traut
4474b7d36b
Added a new configuration option deprecateTypingAliases that enables deprecation detection and reporting for symbols imported from the typing module that are deprecated according to PEP 585 and 604. The option is currently disabled by default (even in strict mode) but can be enabled manually. This addresses #3598. (#5812)
Co-authored-by: Eric Traut <erictr@microsoft.com>
2023-08-25 11:17:37 -07:00
Eric Traut
5af4cd7417 Published 1.1.324 2023-08-22 17:42:59 -07:00
Eric Traut
8b83caaeda Published 1.1.323 2023-08-15 20:43:54 -07:00
Eric Traut
7d68470de6 Published 1.1.322 2023-08-11 09:30:38 -07:00
Eric Traut
4b088a8975 Published 1.1.321 2023-08-08 19:21:00 -07:00
Eric Traut
7444078896 Addressed a performance regression introduced in 1.1.314 due to a switch from ts-loader to esbuild-loader in our build pipeline. This change resulted in a 7-9% performance degradation, so I'm reverting it for now. 2023-08-06 10:29:45 -07:00
Eric Traut
e0c05cfb00 Published 1.1.320 2023-08-01 20:36:43 -06:00
Eric Traut
d81ffb7b5c Added a new configuration options flag called enableExperimentalFeatures that controls whether certain experimental features are enabled. Currently there are three features under this flag: StrictTypeGuard, ReadOnly fields for typed dicts, and inlined TypedDict definitions. This addresses https://github.com/microsoft/pyright/issues/5598. 2023-07-28 22:22:08 -06:00
PylanceBot
932e542d9f
pull-pylance-with-pyright-1.1.319 (#5584) 2023-07-26 09:30:40 -07:00
Eric Traut
98a679202e Published 1.1.319 2023-07-25 20:01:48 -07:00
Eric Traut
1d558e07fc Published 1.1.318 2023-07-18 20:10:06 -07:00
PylanceBot
8e021d2ae8
[PylanceBot] Pull Pylance with Pyright 1.1.317 (#5505)
* pull-pylance-with-pyright-1.1.317

* Add missing types

---------

Co-authored-by: rchiodo <rchiodo@microsoft.com>
2023-07-14 14:26:45 -07:00
dependabot[bot]
75b33afaf8
Bump semver from 5.7.1 to 5.7.2 in /packages/vscode-pyright (#5484)
Bumps [semver](https://github.com/npm/node-semver) from 5.7.1 to 5.7.2.
- [Release notes](https://github.com/npm/node-semver/releases)
- [Changelog](https://github.com/npm/node-semver/blob/v5.7.2/CHANGELOG.md)
- [Commits](https://github.com/npm/node-semver/compare/v5.7.1...v5.7.2)

---
updated-dependencies:
- dependency-name: semver
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-12 23:21:38 +02:00
Eric Traut
2eee9558ae Published 1.1.317 2023-07-12 14:33:46 +02:00
PylanceBot
74d8f3c4d2
pull-pylance-with-pyright-1.1.316 (#5401) 2023-06-28 10:35:29 -07:00
Eric Traut
67fe93239f Published 1.1.316 2023-06-26 09:02:52 +02:00
Eric Traut
cef2712bf3 Published 1.1.315 2023-06-20 18:34:15 -07:00
Eric Traut
0b49479dff Published 1.1.314 2023-06-13 20:21:13 -07:00
Heejae Chang
73165c50c2
Push pylance changes to pyright (#5248)
* Push pylance changes to pyright

* Update packages/pyright-internal/src/backgroundThreadBase.ts

Co-authored-by: Erik De Bonte <erikd@microsoft.com>

---------

Co-authored-by: Erik De Bonte <erikd@microsoft.com>
2023-06-07 15:03:40 -07:00
Eric Traut
51d2ff8beb
Switched from ts-loader to esbuild-loader for better build performance. (#5247)
Co-authored-by: Eric Traut <erictr@microsoft.com>
2023-06-07 11:51:29 -06:00
Eric Traut
3b36b8ea35 Published 1.1.313 2023-06-07 10:33:05 -06:00
Eric Traut
ee3c669bad Published 1.1.312 2023-06-06 18:50:04 -06:00
Eric Traut
d20fbcf8e6 Published 1.1.311 2023-05-30 20:27:13 -06:00
Eric Traut
7e95fe8d9e Published 1.1.310 2023-05-23 17:06:23 -07:00
Rich Chiodo
e6d7b84c80
Push pylance changes to pyright (#5131)
* Push pylance changes to pyright

* Fixup merge problems

* Update packages/pyright-internal/src/analyzer/backgroundAnalysisProgram.ts

Co-authored-by: Erik De Bonte <erikd@microsoft.com>

---------

Co-authored-by: Erik De Bonte <erikd@microsoft.com>
2023-05-17 10:43:31 -07:00
Eric Traut
27d495afc6 Published 1.1.309 2023-05-16 20:53:04 -07:00
Eric Traut
b7f2751b3a Published 1.1.308 2023-05-11 20:34:33 -07:00
PylanceBot
e1b6074b4d
pull-pylance-with-pyright-1.1.307 (#5093) 2023-05-10 10:56:49 -07:00
Eric Traut
0c308e057f Published 1.1.307 2023-05-09 22:30:57 -07:00
Rich Chiodo
009aef317b
Push pylance changes to pyright (#5066) 2023-05-03 10:54:00 -07:00
Eric Traut
66b6672bef Published 1.1.306 2023-05-02 19:20:11 -07:00
Eric Traut
a359c84ffb Published 1.1.305 2023-04-25 21:58:37 -07:00
Eric Traut
9f3e150e6f Published 1.1.304 2023-04-18 21:55:44 -07:00
Eric Traut
02041847ee Published 1.1.303 2023-04-11 20:25:28 -07:00
Eric Traut
5d6eacd5e1
Changed the default of the useLibraryCodeForTypes from false to true to bring pylance and pyright into alignment. Also deprecated the "--lib" command-line option, which was previously used to enable useLibraryCodeForTypes from the command line. (#4903)
Co-authored-by: Eric Traut <erictr@microsoft.com>
2023-04-05 09:47:59 -06:00
Eric Traut
1e8ee8f1ea Published 1.1.302 2023-04-04 21:17:07 -07:00
Eric Traut
a218860850 Published 1.1.301 2023-03-28 19:05:17 -07:00
Eric Traut
f9a7382989 Published 1.1.300 2023-03-21 22:46:14 -06:00
Eric Traut
e2e3a5c9ff Added new diagnostic check reportImplicitOverride. This addresses https://github.com/microsoft/pyright/issues/4788. 2023-03-16 09:52:25 -06:00
Erik De Bonte
6de737544c
Push pylance changes to pyright (#4783)
Co-authored-by: Bill Schnurr <bschnurr@microsoft.com>
Co-authored-by: HeeJae Chang <hechang@microsoft.com>
Co-authored-by: Erik De Bonte <erikd@microsoft.com>
Co-authored-by: Rich Chiodo <rchiodo@microsoft.com>
2023-03-15 17:27:27 -07:00
Eric Traut
ac9b89c255 Published 1.1.299 2023-03-15 00:16:59 -06:00
Eric Traut
574fc599a7 Published 1.1.298 2023-03-08 09:15:00 -07:00
Eric Traut
d016ff4153 Published 1.1.297 2023-03-07 18:07:23 -07:00
Eric Traut
2c4a9da2ae More tweaks to documentation and README files. Added a navbar to docs site. 2023-03-06 17:52:06 -07:00
Eric Traut
8c79c1bb5a Published 1.1.296 2023-02-28 01:03:52 -07:00
Eric Traut
526d907def Slimmed down the README to remove information that most pyright users probably don't care about. Features of pyright were moved to a separate "features.md" document. 2023-02-26 10:54:20 -07:00
Eric Traut
f5e43ca29f Published 1.1.295 2023-02-22 01:03:48 -07:00
Eric Traut
58f6824913 Published 1.1.294 2023-02-14 21:29:23 -08:00
Eric Traut
ceb2a2d5a4 Published 1.1.293 2023-02-07 21:22:44 -08:00
Eric Traut
b3ff34f90b Marked PEP 698 as no longer "draft" since it was accepted. 2023-02-02 07:53:44 -08:00
Eric Traut
e4e08c359f Published 1.1.292 2023-01-31 18:39:32 -08:00
Eric Traut
624fedaccb Published 1.1.291 2023-01-24 18:23:01 -08:00
Eric Traut
675fafdeb7 Removed the "draft" status of PEP 692 since it has been accepted by the SC. 2023-01-24 12:50:29 -08:00
Eric Traut
c6e79efbba Published 1.1.290 2023-01-17 18:47:36 -08:00
Eric Traut
9a0820df09 Published 1.1.289 2023-01-13 22:25:16 -08:00
Eric Traut
53e8cd4145 Added provisional support for draft PEP 702 (marking deprecations using the type system). 2023-01-13 21:16:07 -08:00
PylanceBot
bf8ec313b1
pull-pylance-with-pyright-null (#4443)
Co-authored-by: Bill Schnurr <bschnurr@microsoft.com>
Co-authored-by: HeeJae Chang <hechang@microsoft.com>
Co-authored-by: Erik De Bonte <erikd@microsoft.com>
Co-authored-by: Rich Chiodo <rchiodo@microsoft.com>
2023-01-11 14:39:59 -08:00
Eric Traut
bc4381e8fe Published 1.1.288 2023-01-10 20:20:56 -08:00
Heejae Chang
b78a9e4bd3
Push pylance changes to pyright (#4404)
Co-authored-by: Bill Schnurr <bschnurr@microsoft.com>
Co-authored-by: HeeJae Chang <hechang@microsoft.com>
Co-authored-by: Erik De Bonte <erikd@microsoft.com>
Co-authored-by: Rich Chiodo <rchiodo@microsoft.com>
2023-01-04 14:07:31 -08:00
Eric Traut
440d54d68d Published 1.1.287 2023-01-03 23:54:58 -07:00
Eric Traut
5e83e8182a Updated README to include PEP 696. 2022-12-27 22:16:10 -07:00
Eric Traut
e4472b3275 Published 1.1.286 2022-12-27 22:01:39 -07:00
Eric Traut
5c0de8b79b Published 1.1.285 2022-12-21 01:17:53 -07:00
Eric Traut
da5553515e Published 1.1.284 2022-12-13 17:49:56 -08:00
Eric Traut
5f48e39671 Exposed new configuration setting analyzeUnannotatedFunctions which corresponds to the --skipunannotated command-line option. Added an information diagnostic for skipped functions. This addresses https://github.com/microsoft/pyright/issues/4303. 2022-12-08 20:05:32 -08:00
Eric Traut
5c8f84f12e Published 1.1.283 2022-12-06 23:31:24 -08:00
Eric Traut
a3fc8b8789 Published 1.1.282 2022-11-29 21:22:53 -08:00
Eric Traut
0ef63711f5 Published 1.1.281 2022-11-22 20:19:43 -08:00
Erik De Bonte
4bc49e5ef1
Push pylance changes to pyright (#4209)
Co-authored-by: Bill Schnurr <bschnurr@microsoft.com>
Co-authored-by: HeeJae Chang <hechang@microsoft.com>
Co-authored-by: Erik De Bonte <erikd@microsoft.com>
Co-authored-by: Rich Chiodo <rchiodo@microsoft.com>
2022-11-18 17:20:20 -08:00
Eric Traut
8a5997a753 Published 1.1.280 2022-11-15 19:50:16 -08:00
Eric Traut
4db3f23b4b Published 1.1.279 2022-11-08 17:35:30 -08:00
Rich Chiodo
8c0ba8a78a
Show a warning when a stdlib module is being overridden (#4132)
* Working for simple cases

* Fix localize

* Move logic to source mapper

* Add support for the current file

* Add rename file command

* Fix comments

* Closer to getting tests to work. Rename added

* Rework how stdlib modules are found. Fix tests

* Do the rename without bringing up a dialog

* Fix tests and add docs

* Fix tests on unix

* Review feedback

* Default shadowed imports to off

* Missed spot for execEnv not needing to be passed
2022-11-04 16:45:16 -07:00
Eric Traut
0fdcb59b97 Published 1.1.278 2022-11-01 21:01:53 -07:00
Eric Traut
a58485a477 Published 1.1.277 2022-10-25 20:08:24 -07:00
Eric Traut
79918879aa Published 1.1.276 2022-10-18 20:31:36 -07:00
Eric Traut
aad650ec37 Added support for draft PEP 698 and the @override decorator. This addresses https://github.com/microsoft/pyright/issues/4047. 2022-10-13 19:53:19 -07:00
Eric Traut
23ee7801c4 Updated typeshed stubs to the latest version. This includes the removal of stubs for freezegun. 2022-10-13 19:14:49 -07:00
Eric Traut
779b872a55 Published 1.1.275 2022-10-11 22:08:15 -07:00
Eric Traut
fdc9844862 Published 1.1.274 2022-10-04 21:39:20 -07:00
PylanceBot
4047554222
pull-pylance-with-pyright-1.1.273 (#3991)
Co-authored-by: Bill Schnurr <bschnurr@microsoft.com>
Co-authored-by: HeeJae Chang <hechang@microsoft.com>
Co-authored-by: Erik De Bonte <erikd@microsoft.com>
Co-authored-by: Rich Chiodo <rchiodo@microsoft.com>
2022-09-28 10:03:38 -07:00
Eric Traut
f04730ce92 Published 1.1.273 2022-09-27 17:26:24 -07:00
Eric Traut
a7f3fdd6a5 Published 1.1.272 2022-09-20 19:28:21 -07:00
Eric Traut
49c18e619c Published 1.1.271 2022-09-13 19:33:58 -07:00
PylanceBot
95c059fad7
pull-pylance-with-pyright-1.1.270 (#3920)
Co-authored-by: Bill Schnurr <bschnurr@microsoft.com>
Co-authored-by: HeeJae Chang <hechang@microsoft.com>
Co-authored-by: Erik De Bonte <erikd@microsoft.com>
2022-09-07 11:59:07 -07:00
Eric Traut
d09fdedba6 Published 1.1.270 2022-09-06 18:04:56 -07:00
timsu92
eb94467687
docs: fix wrong description of reportUndefinedVariable (#3903) 2022-09-03 06:36:38 -06:00
Eric Traut
36df440e52 Published 1.1.269 2022-08-30 18:32:27 -06:00
Eric Traut
f107f0f323 Published 1.1.268 2022-08-23 21:26:39 -07:00
Eric Traut
4cfbc33a1c Published 1.1.267 2022-08-16 18:37:07 -07:00
Eric Traut
162406b7bf Published 1.1.266 2022-08-07 22:55:09 -07:00
Eric Traut
21a6a1b2a9 Published 1.1.265. 2022-08-02 20:00:42 -07:00
PylanceBot
6fa755c025
pull-pylance-with-pyright-1.1.264 (#3755)
Co-authored-by:
    Co-authored-by: Bill Schnurr <bschnurr@microsoft.com>
    Co-authored-by: HeeJae Chang <hechang@microsoft.com>
    Co-authored-by: Erik De Bonte <erikd@microsoft.com>
2022-07-27 12:31:21 -07:00
Eric Traut
861dfbe06e Published 1.1.264 2022-07-26 17:52:34 -07:00
Eric Traut
4b24c9ea56 Published 1.1.263 2022-07-22 21:01:12 -07:00
Eric Traut
e82d5f353a Published 1.1.262 2022-07-20 07:19:31 -07:00
dependabot[bot]
f4017da8c6
Bump terser from 5.10.0 to 5.14.2 in /packages/vscode-pyright (#3724)
Bumps [terser](https://github.com/terser/terser) from 5.10.0 to 5.14.2.
- [Release notes](https://github.com/terser/terser/releases)
- [Changelog](https://github.com/terser/terser/blob/master/CHANGELOG.md)
- [Commits](https://github.com/terser/terser/commits)

---
updated-dependencies:
- dependency-name: terser
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-19 20:05:27 -07:00
Eric Traut
7f3e7b0d2e Added support for new reportUnnecessaryContains diagnostic rule to catch potential bugs in in and not in containment checks. 2022-07-17 23:29:50 -07:00
Eric Traut
08431a3191 Published 1.1.261 2022-07-16 08:37:17 -07:00
Eric Traut
013866173c Published 1.1.260 2022-07-13 08:57:12 -07:00
Eric Traut
ae5d9e832f Published 1.1.259 2022-07-12 23:10:57 -07:00
Eric Traut
ac3d33f741 Published 1.1.258 2022-07-08 23:14:26 -07:00
Eric Traut
f3d8345b75 Updated README to include provisional PEPs. 2022-07-04 10:47:08 -07:00
Eric Traut
4c47b0b391 Published 1.1.257 2022-07-02 19:06:28 -07:00
Eric Traut
0d2a0414e3 Fixed merge issue. 2022-06-29 20:18:43 -07:00
Bill Schnurr
7cadfb7412
update dependencies (#3638) 2022-06-29 15:56:46 -07:00
Eric Traut
66c44cff55 Published 1.1.256 2022-06-27 23:42:21 -07:00
Eric Traut
a08f716f98 Published 1.1.255 2022-06-20 01:12:51 -07:00
Eric Traut
4e22927305 Published 1.1.254 2022-06-11 20:55:23 -07:00
Eric Traut
484faf7ba3 Added support for new reportTypeCommentUsage diagnostic check. It flag the usage of # type: xxx comments for functions and variables. These are still supported for backward compatibility, but they are increasingly irrelevant and will likely be deprecated in the next few years. 2022-06-09 21:00:47 -07:00
Eric Traut
794d151050 Added new configuration setting called "defineConstant". It allows a configuration to specify one or more identifiers that should be assigned by pyright's binder to be constant anywhere they appear. Values can be boolean (true or false) or a string. If an identifier of this value is used within a conditional statement (like if not DEBUG:) it will affect pyright's reachability analysis for the guarded code blocks. 2022-06-08 22:01:33 -07:00
PylanceBot
bbc4282691
pull-pylance-with-pyright-1.1.253 (#3556)
Co-authored-by: Bill Schnurr <bschnurr@microsoft.com>
Co-authored-by: HeeJae Chang <hechang@microsoft.com>
Co-authored-by: Erik De Bonte <erikd@microsoft.com>
2022-06-08 10:16:10 -07:00
Eric Traut
ffb0ba7144 Published 1.1.253 2022-06-08 01:16:55 -07:00
Eric Traut
ac576bbd47 Published 1.1.252 2022-06-04 16:47:14 -07:00
Eric Traut
b46034527e Published 1.1.251 2022-05-31 23:05:39 -07:00
Eric Traut
8a9b23bff3 Published 1.1.250 2022-05-28 16:19:41 -07:00
PylanceBot
73c82fab9d
pull-pylance-with-pyright-1.1.249 (#3508)
Co-authored-by: Bill Schnurr <bschnurr@microsoft.com>
Co-authored-by: HeeJae Chang <hechang@microsoft.com>
Co-authored-by: Erik De Bonte <erikd@microsoft.com>
2022-05-25 11:28:47 -07:00
Eric Traut
bb7968826a Published 1.1.249 2022-05-24 22:27:23 -07:00
Eric Traut
e9189b5b67 Published 1.1.248 2022-05-21 10:47:23 -07:00
PylanceBot
0577bc22b9
pull-pylance-with-pyright-1.1.247 (#3474)
Co-authored-by: Bill Schnurr <bschnurr@microsoft.com>
Co-authored-by: HeeJae Chang <hechang@microsoft.com>
Co-authored-by: Erik De Bonte <erikd@microsoft.com>
2022-05-18 10:08:15 -07:00
Eric Traut
f4383ab61a Published 1.1.247 2022-05-14 12:32:26 -07:00
Eric Traut
e0e07d3165 Published 1.1.246 2022-05-10 21:45:24 -07:00
Eric Traut
ccc95e0545 Published 1.1.245 2022-05-07 01:08:40 -07:00
Eric Traut
80858f61dc Published 1.1.244 2022-05-03 23:51:43 -07:00
Eric Traut
00b8d86805 Published 1.1.243 2022-05-01 19:38:11 -07:00
Eric Traut
831efad39d Published 1.1.242 2022-04-30 10:22:56 -07:00
Eric Traut
a62f0cca5a Published 1.1.241 2022-04-27 14:25:27 -07:00
Eric Traut
564dbd4ea3 Published 1.1.240 2022-04-26 20:07:00 -07:00
Erik De Bonte
fbc8bcb229
Increase vscode engine to 1.66.0+ (#3362) 2022-04-20 14:51:22 -07:00
PylanceBot
90161194e1
pull-pylance-with-pyright-1.1.239 (#3360)
Co-authored-by: Bill Schnurr <bschnurr@microsoft.com>
Co-authored-by: HeeJae Chang <hechang@microsoft.com>
Co-authored-by: Erik De Bonte <Erik.DeBonte@microsoft.com>
2022-04-20 13:07:38 -07:00
Eric Traut
fd96bdf363 Published 1.1.239 2022-04-19 22:23:45 -07:00
Eric Traut
e701173051 Published 1.1.238 2022-04-15 22:46:36 -07:00
Eric Traut
551c6acdcb Published 1.1.237 2022-04-12 21:32:08 -07:00
Eric Traut
1502bb25d9 Published 1.1.236 2022-04-10 14:51:09 -07:00
Eric Traut
1e04e9089f Published 1.1.235 2022-04-03 20:14:33 -07:00
Eric Traut
a4391a4158 Published 1.1.234 2022-03-29 23:38:36 -06:00
Eric Traut
f92b023956 Published 1.1.233 2022-03-27 10:41:42 -06:00
Eric Traut
1c51248c8f Updated hashes for minimist 2022-03-23 15:20:57 -06:00
Eric Traut
3f86a00a72 Updated "minimist" dependency to address potential vulnerability. 2022-03-23 15:06:48 -06:00
Eric Traut
7d050c49bb Published 1.1.232 2022-03-23 00:01:37 -06:00
Eric Traut
9c8575e884 Published 1.1.231 2022-03-19 00:17:00 -06:00
PylanceBot
d2d8122be5
[PylanceBot] Pull Pylance with Pyright 1.1.230 (#3205)
Co-authored-by: HeeJae Chang <hechang@microsoft.com>
2022-03-16 14:07:58 -07:00
Eric Traut
bf16b1b8b6 Published 1.1.230 2022-03-16 01:40:10 -06:00
Eric Traut
d28c481535 Added new diagnostic check reportUnusedExpression to catch bugs like a == 4 when a = 4 was intended. 2022-03-13 15:25:18 -06:00
Eric Traut
54c5e405ff Published 1.1.229 2022-03-11 21:45:17 -07:00
Eric Traut
6550a3fb61 Published 1.1.228 2022-03-08 23:10:38 -07:00