Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge 1.1.369 #450

Merged
merged 24 commits into from
Jun 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
20942b3
Added support for detecting mismatched property types in base classes…
erictraut Jun 19, 2024
b7be7b9
pull-pylance-with-pyright-1.1.368-9572872079 (#8173)
PylanceBot Jun 19, 2024
98d68d5
Fixed recent regression in `reportUninitializedInstanceVariable` chec…
erictraut Jun 20, 2024
4a9b9a5
fix broken markdown link (#8186)
jvacek Jun 20, 2024
81ff21e
Fixed bug that leads to a false negative when a subscript object used…
erictraut Jun 20, 2024
b841e11
Improved consistency of unreachable code. Previously, unreachable cod…
erictraut Jun 20, 2024
1bbb5d9
Fixed recent regression that results in a runtime assert (and therefo…
erictraut Jun 20, 2024
221a977
Changed hover provider output for type aliases to conform more closel…
erictraut Jun 21, 2024
d2ff2a4
Fixed bug that results in an incorrect overload implementation diagno…
erictraut Jun 21, 2024
2efc12f
Improved diagnostic messages for type errors detected during `__set__…
erictraut Jun 21, 2024
0c4c9ab
fix: usage of `deprecated` version of `Node.js` (#8201)
hamirmahal Jun 22, 2024
cfeed20
Bump braces from 3.0.2 to 3.0.3 (#8204)
dependabot[bot] Jun 22, 2024
3e6661a
Fix binary search in `findNodeByOffset` to match linear search result…
debonte Jun 22, 2024
ee12ebc
Improved `reportUninitializedInstanceVariable` check to handle datacl…
erictraut Jun 22, 2024
6ffb60b
Fixed bug that results in a false positive error when using a callbac…
erictraut Jun 23, 2024
3a26313
Fixed bug that incorrectly evaluates a constructor call to a construc…
erictraut Jun 24, 2024
bc1fc9f
Added support for walrus (assignment) operator within set literal exp…
erictraut Jun 24, 2024
2672441
Fixed bug that leads to a spurious "unbound variable" diagnostic when…
erictraut Jun 25, 2024
24f64f7
Fixed bug that results in incorrect type narrowing in the negative (f…
erictraut Jun 25, 2024
a5cbd47
Published 1.1.369
erictraut Jun 25, 2024
4debbfc
Merge tag 'refs/tags/1.1.369' into merge-1.1.369
DetachHead Jun 25, 2024
9f80bab
Revert "fix `reportUninitializedInstanceVariable` false positive on `…
DetachHead Jun 25, 2024
1b20e5e
update some tests that use `unreachable1.py` since there are now more…
DetachHead Jun 25, 2024
285d807
don't report `reportUnreachable` on `assert_never` calls
DetachHead Jun 25, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ The following settings can be specified for each execution environment.

- **pythonPlatform** [string, optional]: Specifies the target platform that will be used for this execution environment. If not specified, the global `pythonPlatform` setting is used instead.

In addition, any of the [type check diagnostics settings](configuration.md/type-check-diagnostics-settings) listed above can be specified. These settings act as overrides for the files in this execution environment.
In addition, any of the [type check diagnostics settings](configuration.md#type-check-diagnostics-settings) listed above can be specified. These settings act as overrides for the files in this execution environment.

## Sample Config File
The following is an example of a pyright config file:
Expand Down
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"packages": [
"packages/*"
],
"version": "1.1.368",
"version": "1.1.369",
"command": {
"version": {
"push": false,
Expand Down
32 changes: 22 additions & 10 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions packages/pyright-internal/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/pyright-internal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "pyright-internal",
"displayName": "pyright",
"description": "Type checker for the Python language",
"version": "1.1.368",
"version": "1.1.369",
"license": "MIT",
"private": true,
"files": [
Expand Down
4 changes: 4 additions & 0 deletions packages/pyright-internal/src/analyzer/cacheManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,10 @@ export class CacheManager {

// Returns a ratio of used bytes to total bytes.
getUsedHeapRatio(console?: ConsoleInterface) {
if (this._pausedCount > 0) {
return -1;
}

const heapStats = getHeapStatistics();
let usage = this._getTotalHeapUsage(heapStats);

Expand Down
Loading
Loading