@zzzen/pyright-internal 1.2.0-dev.20251012 → 1.2.0-dev.20251019
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/dist/analyzer/checker.js +5 -0
- package/dist/analyzer/checker.js.map +1 -1
- package/dist/analyzer/namedTuples.js +18 -14
- package/dist/analyzer/namedTuples.js.map +1 -1
- package/dist/analyzer/patternMatching.js +18 -6
- package/dist/analyzer/patternMatching.js.map +1 -1
- package/dist/common/configOptions.js +45 -1
- package/dist/common/configOptions.js.map +1 -1
- package/dist/localization/localize.d.ts +3 -0
- package/dist/localization/localize.js +1 -0
- package/dist/localization/localize.js.map +1 -1
- package/dist/localization/package.nls.en-us.json +4 -0
- package/dist/pyright.js +1 -1
- package/dist/pyright.js.map +1 -1
- package/dist/tests/typeEvaluator5.test.js +1 -1
- package/package.json +1 -1
package/dist/analyzer/checker.js
CHANGED
|
@@ -4378,6 +4378,11 @@ class Checker extends parseTreeWalker_1.ParseTreeWalker {
|
|
|
4378
4378
|
type: this._evaluator.printType(entry.valueType),
|
|
4379
4379
|
}));
|
|
4380
4380
|
}
|
|
4381
|
+
else if (!baseTypedDictEntries.extraItems.isReadOnly && entry.isReadOnly) {
|
|
4382
|
+
diag.addMessage(localize_1.LocAddendum.typedDictClosedFieldNotReadOnly().format({
|
|
4383
|
+
name,
|
|
4384
|
+
}));
|
|
4385
|
+
}
|
|
4381
4386
|
else if (!baseTypedDictEntries.extraItems.isReadOnly && entry.isRequired) {
|
|
4382
4387
|
diag.addMessage(localize_1.LocAddendum.typedDictClosedFieldNotRequired().format({
|
|
4383
4388
|
name,
|