coc-pyright 1.1.394 → 1.1.395

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 +815 -794
  2. package/package.json +4 -4
package/lib/index.js CHANGED
@@ -12571,6 +12571,8 @@ var require_cancellationUtils = __commonJS({
12571
12571
  exports2.throwIfCancellationRequested = throwIfCancellationRequested;
12572
12572
  exports2.onCancellationRequested = onCancellationRequested;
12573
12573
  exports2.CancelAfter = CancelAfter;
12574
+ exports2.createCombinedToken = createCombinedToken;
12575
+ exports2.setupCombinedTokensFor = setupCombinedTokensFor;
12574
12576
  exports2.getCancellationTokenId = getCancellationTokenId;
12575
12577
  exports2.raceCancellation = raceCancellation;
12576
12578
  var vscode_jsonrpc_1 = require_api();
@@ -12620,6 +12622,22 @@ var require_cancellationUtils = __commonJS({
12620
12622
  }
12621
12623
  function CancelAfter(provider, ...tokens) {
12622
12624
  const source = provider.createCancellationTokenSource();
12625
+ setupCombinedTokensFor(source, ...tokens);
12626
+ return source;
12627
+ }
12628
+ function createCombinedToken(...tokens) {
12629
+ const source = new vscode_jsonrpc_1.CancellationTokenSource();
12630
+ setupCombinedTokensFor(source, ...tokens);
12631
+ return source.token;
12632
+ }
12633
+ function setupCombinedTokensFor(source, ...tokens) {
12634
+ for (const token of tokens) {
12635
+ if (!token.isCancellationRequested) {
12636
+ continue;
12637
+ }
12638
+ source.cancel();
12639
+ return;
12640
+ }
12623
12641
  const disposables = [];
12624
12642
  for (const token of tokens) {
12625
12643
  disposables.push(onCancellationRequested(token, () => {
@@ -12629,7 +12647,6 @@ var require_cancellationUtils = __commonJS({
12629
12647
  disposables.push(onCancellationRequested(source.token, () => {
12630
12648
  disposables.forEach((d) => d.dispose());
12631
12649
  }));
12632
- return source;
12633
12650
  }
12634
12651
  var DefaultCancellationProvider = class {
12635
12652
  createCancellationTokenSource() {
@@ -15035,41 +15052,6 @@ var require_programTypes = __commonJS({
15035
15052
  }
15036
15053
  });
15037
15054
 
15038
- // node_modules/@zzzen/pyright-internal/dist/analyzer/pyTypedUtils.js
15039
- var require_pyTypedUtils = __commonJS({
15040
- "node_modules/@zzzen/pyright-internal/dist/analyzer/pyTypedUtils.js"(exports2) {
15041
- "use strict";
15042
- Object.defineProperty(exports2, "__esModule", { value: true });
15043
- exports2.getPyTypedInfo = getPyTypedInfo;
15044
- exports2.getPyTypedInfoForPyTypedFile = getPyTypedInfoForPyTypedFile;
15045
- var uriUtils_1 = require_uriUtils();
15046
- function getPyTypedInfo(fileSystem, dirPath) {
15047
- if (!fileSystem.existsSync(dirPath) || !(0, uriUtils_1.isDirectory)(fileSystem, dirPath)) {
15048
- return void 0;
15049
- }
15050
- const pyTypedPath = dirPath.pytypedUri;
15051
- if (!fileSystem.existsSync(pyTypedPath) || !(0, uriUtils_1.isFile)(fileSystem, pyTypedPath)) {
15052
- return void 0;
15053
- }
15054
- return getPyTypedInfoForPyTypedFile(fileSystem, pyTypedPath);
15055
- }
15056
- function getPyTypedInfoForPyTypedFile(fileSystem, pyTypedPath) {
15057
- let isPartiallyTyped = false;
15058
- const fileStats = fileSystem.statSync(pyTypedPath);
15059
- if (fileStats.size > 0 && fileStats.size < 64 * 1024) {
15060
- const pyTypedContents = fileSystem.readFileSync(pyTypedPath, "utf8");
15061
- if (pyTypedContents.match(/partial\n/) || pyTypedContents.match(/partial\r\n/)) {
15062
- isPartiallyTyped = true;
15063
- }
15064
- }
15065
- return {
15066
- pyTypedPath,
15067
- isPartiallyTyped
15068
- };
15069
- }
15070
- }
15071
- });
15072
-
15073
15055
  // node_modules/@zzzen/pyright-internal/dist/common/fileSystem.js
15074
15056
  var require_fileSystem = __commonJS({
15075
15057
  "node_modules/@zzzen/pyright-internal/dist/common/fileSystem.js"(exports2) {
@@ -15130,294 +15112,6 @@ var require_fileSystem = __commonJS({
15130
15112
  }
15131
15113
  });
15132
15114
 
15133
- // node_modules/@zzzen/pyright-internal/dist/readonlyAugmentedFileSystem.js
15134
- var require_readonlyAugmentedFileSystem = __commonJS({
15135
- "node_modules/@zzzen/pyright-internal/dist/readonlyAugmentedFileSystem.js"(exports2) {
15136
- "use strict";
15137
- Object.defineProperty(exports2, "__esModule", { value: true });
15138
- exports2.ReadOnlyAugmentedFileSystem = void 0;
15139
- var collectionUtils_1 = require_collectionUtils();
15140
- var fileSystem_1 = require_fileSystem();
15141
- var ReadOnlyAugmentedFileSystem = class {
15142
- constructor(realFS) {
15143
- this.realFS = realFS;
15144
- this._entryMap = /* @__PURE__ */ new Map();
15145
- this._reverseEntryMap = /* @__PURE__ */ new Map();
15146
- this._folderMap = /* @__PURE__ */ new Map();
15147
- }
15148
- existsSync(uri) {
15149
- if (this.isMovedEntry(uri)) {
15150
- return false;
15151
- }
15152
- return this.realFS.existsSync(this.getOriginalPath(uri));
15153
- }
15154
- mkdirSync(uri, options) {
15155
- throw new Error("Operation is not allowed.");
15156
- }
15157
- chdir(uri) {
15158
- throw new Error("Operation is not allowed.");
15159
- }
15160
- readdirEntriesSync(uri) {
15161
- const entries = [];
15162
- const movedEntries = this._folderMap.get(uri.key);
15163
- if (!movedEntries || this.realFS.existsSync(uri)) {
15164
- (0, collectionUtils_1.appendArray)(entries, this.realFS.readdirEntriesSync(uri).filter((item) => {
15165
- return !this.isMovedEntry(uri.combinePaths(item.name)) && !(movedEntries == null ? void 0 : movedEntries.some((movedEntry) => movedEntry.name === item.name));
15166
- }));
15167
- }
15168
- if (!movedEntries) {
15169
- return entries;
15170
- }
15171
- const dirPath = uri.getFilePath();
15172
- return entries.concat(movedEntries.map((e) => new fileSystem_1.VirtualDirent(e.name, e.isFile, dirPath)));
15173
- }
15174
- readdirSync(uri) {
15175
- return this.readdirEntriesSync(uri).map((p) => p.name);
15176
- }
15177
- readFileSync(uri, encoding) {
15178
- return this.realFS.readFileSync(this.getOriginalPath(uri), encoding);
15179
- }
15180
- writeFileSync(uri, data, encoding) {
15181
- throw new Error("Operation is not allowed.");
15182
- }
15183
- statSync(uri) {
15184
- return this.realFS.statSync(this.getOriginalPath(uri));
15185
- }
15186
- rmdirSync(uri) {
15187
- throw new Error("Operation is not allowed.");
15188
- }
15189
- unlinkSync(uri) {
15190
- throw new Error("Operation is not allowed.");
15191
- }
15192
- realpathSync(uri) {
15193
- if (this._entryMap.has(uri.key)) {
15194
- return uri;
15195
- }
15196
- return this.realFS.realpathSync(uri);
15197
- }
15198
- getModulePath() {
15199
- return this.realFS.getModulePath();
15200
- }
15201
- createFileSystemWatcher(paths, listener) {
15202
- return this.realFS.createFileSystemWatcher(paths, listener);
15203
- }
15204
- createReadStream(uri) {
15205
- return this.realFS.createReadStream(this.getOriginalPath(uri));
15206
- }
15207
- createWriteStream(uri) {
15208
- throw new Error("Operation is not allowed.");
15209
- }
15210
- copyFileSync(src, dst) {
15211
- throw new Error("Operation is not allowed.");
15212
- }
15213
- // Async I/O
15214
- readFile(uri) {
15215
- return this.realFS.readFile(this.getOriginalPath(uri));
15216
- }
15217
- readFileText(uri, encoding) {
15218
- return this.realFS.readFileText(this.getOriginalPath(uri), encoding);
15219
- }
15220
- realCasePath(uri) {
15221
- return this.realFS.realCasePath(uri);
15222
- }
15223
- // See whether the file is mapped to another location.
15224
- isMappedUri(fileUri) {
15225
- return this._entryMap.has(fileUri.key) || this.realFS.isMappedUri(fileUri);
15226
- }
15227
- // Get original filepath if the given filepath is mapped.
15228
- getOriginalUri(mappedFileUri) {
15229
- return this.realFS.getOriginalUri(this.getOriginalPath(mappedFileUri));
15230
- }
15231
- // Get mapped filepath if the given filepath is mapped.
15232
- getMappedUri(originalFileUri) {
15233
- const mappedFileUri = this.realFS.getMappedUri(originalFileUri);
15234
- return this._reverseEntryMap.get(mappedFileUri.key) ?? mappedFileUri;
15235
- }
15236
- isInZip(uri) {
15237
- return this.realFS.isInZip(uri);
15238
- }
15239
- recordMovedEntry(mappedUri, originalUri, rootPath) {
15240
- this._entryMap.set(mappedUri.key, originalUri);
15241
- this._reverseEntryMap.set(originalUri.key, mappedUri);
15242
- const directory = mappedUri.getDirectory();
15243
- const folderInfo = (0, collectionUtils_1.getOrAdd)(this._folderMap, directory.key, () => []);
15244
- const name = mappedUri.fileName;
15245
- if (!folderInfo.some((entry) => entry.name === name)) {
15246
- folderInfo.push({ name, isFile: true });
15247
- }
15248
- const subPathEntries = rootPath.getRelativePathComponents(directory);
15249
- for (let i = 0; i < subPathEntries.length; i++) {
15250
- const subdir = rootPath.combinePaths(...subPathEntries.slice(0, i + 1));
15251
- const parent = subdir.getDirectory().key;
15252
- const dirInfo = (0, collectionUtils_1.getOrAdd)(this._folderMap, parent, () => []);
15253
- const dirName = subdir.fileName;
15254
- if (!dirInfo.some((entry) => entry.name === dirName)) {
15255
- dirInfo.push({ name: dirName, isFile: false });
15256
- }
15257
- }
15258
- }
15259
- getOriginalPath(mappedFileUri) {
15260
- return this._entryMap.get(mappedFileUri.key) ?? mappedFileUri;
15261
- }
15262
- isMovedEntry(uri) {
15263
- return this._reverseEntryMap.has(uri.key);
15264
- }
15265
- clear() {
15266
- this._entryMap.clear();
15267
- this._reverseEntryMap.clear();
15268
- this._folderMap.clear();
15269
- }
15270
- };
15271
- exports2.ReadOnlyAugmentedFileSystem = ReadOnlyAugmentedFileSystem;
15272
- }
15273
- });
15274
-
15275
- // node_modules/@zzzen/pyright-internal/dist/pyrightFileSystem.js
15276
- var require_pyrightFileSystem = __commonJS({
15277
- "node_modules/@zzzen/pyright-internal/dist/pyrightFileSystem.js"(exports2) {
15278
- "use strict";
15279
- Object.defineProperty(exports2, "__esModule", { value: true });
15280
- exports2.PyrightFileSystem = exports2.SupportPartialStubs = void 0;
15281
- var pyTypedUtils_1 = require_pyTypedUtils();
15282
- var pathConsts_1 = require_pathConsts();
15283
- var uriUtils_1 = require_uriUtils();
15284
- var readonlyAugmentedFileSystem_1 = require_readonlyAugmentedFileSystem();
15285
- var SupportPartialStubs;
15286
- (function(SupportPartialStubs2) {
15287
- function is(value) {
15288
- return value.isPartialStubPackagesScanned && value.isPathScanned && value.processPartialStubPackages && value.clearPartialStubs;
15289
- }
15290
- SupportPartialStubs2.is = is;
15291
- })(SupportPartialStubs || (exports2.SupportPartialStubs = SupportPartialStubs = {}));
15292
- var PyrightFileSystem = class extends readonlyAugmentedFileSystem_1.ReadOnlyAugmentedFileSystem {
15293
- constructor(realFS) {
15294
- super(realFS);
15295
- this._rootSearched = /* @__PURE__ */ new Set();
15296
- this._partialStubPackagePaths = /* @__PURE__ */ new Set();
15297
- }
15298
- mkdirSync(uri, options) {
15299
- this.realFS.mkdirSync(uri, options);
15300
- }
15301
- chdir(uri) {
15302
- this.realFS.chdir(uri);
15303
- }
15304
- writeFileSync(uri, data, encoding) {
15305
- this.realFS.writeFileSync(this.getOriginalPath(uri), data, encoding);
15306
- }
15307
- rmdirSync(uri) {
15308
- this.realFS.rmdirSync(this.getOriginalPath(uri));
15309
- }
15310
- unlinkSync(uri) {
15311
- this.realFS.unlinkSync(this.getOriginalPath(uri));
15312
- }
15313
- createWriteStream(uri) {
15314
- return this.realFS.createWriteStream(this.getOriginalPath(uri));
15315
- }
15316
- copyFileSync(src, dst) {
15317
- this.realFS.copyFileSync(this.getOriginalPath(src), this.getOriginalPath(dst));
15318
- }
15319
- isPartialStubPackagesScanned(execEnv) {
15320
- return execEnv.root ? this.isPathScanned(execEnv.root) : false;
15321
- }
15322
- isPathScanned(uri) {
15323
- return this._rootSearched.has(uri.key);
15324
- }
15325
- processPartialStubPackages(paths, roots, bundledStubPath, allowMoving) {
15326
- var _a;
15327
- const allowMovingFn = allowMoving ?? this._allowMoving.bind(this);
15328
- for (const path13 of paths) {
15329
- this._rootSearched.add(path13.key);
15330
- if (!this.realFS.existsSync(path13) || !(0, uriUtils_1.isDirectory)(this.realFS, path13)) {
15331
- continue;
15332
- }
15333
- let dirEntries = [];
15334
- try {
15335
- dirEntries = this.realFS.readdirEntriesSync(path13);
15336
- } catch {
15337
- }
15338
- const isBundledStub = path13.equals(bundledStubPath);
15339
- for (const entry of dirEntries) {
15340
- const partialStubPackagePath = path13.combinePaths(entry.name);
15341
- const isDirectory = !entry.isSymbolicLink() ? entry.isDirectory() : !!((_a = (0, uriUtils_1.tryStat)(this.realFS, partialStubPackagePath)) == null ? void 0 : _a.isDirectory());
15342
- if (!isDirectory || !entry.name.endsWith(pathConsts_1.stubsSuffix)) {
15343
- continue;
15344
- }
15345
- const pyTypedInfo = (0, pyTypedUtils_1.getPyTypedInfo)(this.realFS, partialStubPackagePath);
15346
- if (!pyTypedInfo || !pyTypedInfo.isPartiallyTyped) {
15347
- continue;
15348
- }
15349
- this._partialStubPackagePaths.add(partialStubPackagePath.key);
15350
- let partialStubs;
15351
- const packageName = entry.name.substr(0, entry.name.length - pathConsts_1.stubsSuffix.length);
15352
- for (const root of roots) {
15353
- const packagePath = root.combinePaths(packageName);
15354
- try {
15355
- const stat = (0, uriUtils_1.tryStat)(this.realFS, packagePath);
15356
- if (!(stat == null ? void 0 : stat.isDirectory())) {
15357
- continue;
15358
- }
15359
- if (!allowMovingFn(isBundledStub, (0, pyTypedUtils_1.getPyTypedInfo)(this.realFS, packagePath), pyTypedInfo)) {
15360
- continue;
15361
- }
15362
- partialStubs = partialStubs ?? this._getRelativePathPartialStubs(partialStubPackagePath);
15363
- for (const partialStub of partialStubs) {
15364
- const originalPyiFile = partialStubPackagePath.resolvePaths(partialStub);
15365
- const mappedPyiFile = packagePath.resolvePaths(partialStub);
15366
- this.recordMovedEntry(mappedPyiFile, originalPyiFile, packagePath);
15367
- }
15368
- } catch {
15369
- }
15370
- }
15371
- }
15372
- }
15373
- }
15374
- clearPartialStubs() {
15375
- super.clear();
15376
- this._rootSearched.clear();
15377
- this._partialStubPackagePaths.clear();
15378
- }
15379
- isMovedEntry(uri) {
15380
- return this._partialStubPackagePaths.has(uri.key) || super.isMovedEntry(uri);
15381
- }
15382
- _allowMoving(isBundled, packagePyTyped, _stubPyTyped) {
15383
- if (!isBundled) {
15384
- return true;
15385
- }
15386
- return !packagePyTyped || packagePyTyped.isPartiallyTyped;
15387
- }
15388
- _getRelativePathPartialStubs(partialStubPath) {
15389
- const relativePaths = [];
15390
- const searchAllStubs = (uri) => {
15391
- for (const entry of this.realFS.readdirEntriesSync(uri)) {
15392
- const filePath = uri.combinePaths(entry.name);
15393
- let isDirectory = entry.isDirectory();
15394
- let isFile = entry.isFile();
15395
- if (entry.isSymbolicLink()) {
15396
- const stat = (0, uriUtils_1.tryStat)(this.realFS, filePath);
15397
- if (stat) {
15398
- isDirectory = stat.isDirectory();
15399
- isFile = stat.isFile();
15400
- }
15401
- }
15402
- if (isDirectory) {
15403
- searchAllStubs(filePath);
15404
- }
15405
- if (isFile && entry.name.endsWith(".pyi")) {
15406
- const relative = partialStubPath.getRelativePathComponents(filePath).join("/");
15407
- if (relative) {
15408
- relativePaths.push(relative);
15409
- }
15410
- }
15411
- }
15412
- };
15413
- searchAllStubs(partialStubPath);
15414
- return relativePaths;
15415
- }
15416
- };
15417
- exports2.PyrightFileSystem = PyrightFileSystem;
15418
- }
15419
- });
15420
-
15421
15115
  // node_modules/@zzzen/pyright-internal/dist/analyzer/docStringUtils.js
15422
15116
  var require_docStringUtils = __commonJS({
15423
15117
  "node_modules/@zzzen/pyright-internal/dist/analyzer/docStringUtils.js"(exports2) {
@@ -16167,6 +15861,158 @@ var require_languageServerInterface = __commonJS({
16167
15861
  }
16168
15862
  });
16169
15863
 
15864
+ // node_modules/@zzzen/pyright-internal/dist/analyzer/pyTypedUtils.js
15865
+ var require_pyTypedUtils = __commonJS({
15866
+ "node_modules/@zzzen/pyright-internal/dist/analyzer/pyTypedUtils.js"(exports2) {
15867
+ "use strict";
15868
+ Object.defineProperty(exports2, "__esModule", { value: true });
15869
+ exports2.getPyTypedInfo = getPyTypedInfo;
15870
+ exports2.getPyTypedInfoForPyTypedFile = getPyTypedInfoForPyTypedFile;
15871
+ var uriUtils_1 = require_uriUtils();
15872
+ function getPyTypedInfo(fileSystem, dirPath) {
15873
+ if (!fileSystem.existsSync(dirPath) || !(0, uriUtils_1.isDirectory)(fileSystem, dirPath)) {
15874
+ return void 0;
15875
+ }
15876
+ const pyTypedPath = dirPath.pytypedUri;
15877
+ if (!fileSystem.existsSync(pyTypedPath) || !(0, uriUtils_1.isFile)(fileSystem, pyTypedPath)) {
15878
+ return void 0;
15879
+ }
15880
+ return getPyTypedInfoForPyTypedFile(fileSystem, pyTypedPath);
15881
+ }
15882
+ function getPyTypedInfoForPyTypedFile(fileSystem, pyTypedPath) {
15883
+ let isPartiallyTyped = false;
15884
+ const fileStats = fileSystem.statSync(pyTypedPath);
15885
+ if (fileStats.size > 0 && fileStats.size < 64 * 1024) {
15886
+ const pyTypedContents = fileSystem.readFileSync(pyTypedPath, "utf8");
15887
+ if (pyTypedContents.match(/partial\n/) || pyTypedContents.match(/partial\r\n/)) {
15888
+ isPartiallyTyped = true;
15889
+ }
15890
+ }
15891
+ return {
15892
+ pyTypedPath,
15893
+ isPartiallyTyped
15894
+ };
15895
+ }
15896
+ }
15897
+ });
15898
+
15899
+ // node_modules/@zzzen/pyright-internal/dist/partialStubService.js
15900
+ var require_partialStubService = __commonJS({
15901
+ "node_modules/@zzzen/pyright-internal/dist/partialStubService.js"(exports2) {
15902
+ "use strict";
15903
+ Object.defineProperty(exports2, "__esModule", { value: true });
15904
+ exports2.PartialStubService = exports2.SupportPartialStubs = void 0;
15905
+ var pyTypedUtils_1 = require_pyTypedUtils();
15906
+ var pathConsts_1 = require_pathConsts();
15907
+ var uriUtils_1 = require_uriUtils();
15908
+ var SupportPartialStubs;
15909
+ (function(SupportPartialStubs2) {
15910
+ function is(value) {
15911
+ return value.isPartialStubPackagesScanned && value.isPathScanned && value.processPartialStubPackages && value.clearPartialStubs;
15912
+ }
15913
+ SupportPartialStubs2.is = is;
15914
+ })(SupportPartialStubs || (exports2.SupportPartialStubs = SupportPartialStubs = {}));
15915
+ var PartialStubService = class {
15916
+ constructor(_realFs) {
15917
+ this._realFs = _realFs;
15918
+ this._rootSearched = /* @__PURE__ */ new Set();
15919
+ this._partialStubPackagePaths = /* @__PURE__ */ new Set();
15920
+ this._movedDirectories = [];
15921
+ }
15922
+ isPartialStubPackagesScanned(execEnv) {
15923
+ return execEnv.root ? this.isPathScanned(execEnv.root) : false;
15924
+ }
15925
+ isPathScanned(uri) {
15926
+ return this._rootSearched.has(uri.key);
15927
+ }
15928
+ processPartialStubPackages(paths, roots, bundledStubPath, allowMoving) {
15929
+ var _a;
15930
+ const allowMovingFn = allowMoving ?? this._allowMoving.bind(this);
15931
+ for (const path13 of paths) {
15932
+ this._rootSearched.add(path13.key);
15933
+ if (!this._realFs.existsSync(path13) || !(0, uriUtils_1.isDirectory)(this._realFs, path13)) {
15934
+ continue;
15935
+ }
15936
+ let dirEntries = [];
15937
+ try {
15938
+ dirEntries = this._realFs.readdirEntriesSync(path13);
15939
+ } catch {
15940
+ }
15941
+ const isBundledStub = path13.equals(bundledStubPath);
15942
+ for (const entry of dirEntries) {
15943
+ const partialStubPackagePath = path13.combinePaths(entry.name);
15944
+ const isDirectory = !entry.isSymbolicLink() ? entry.isDirectory() : !!((_a = (0, uriUtils_1.tryStat)(this._realFs, partialStubPackagePath)) == null ? void 0 : _a.isDirectory());
15945
+ if (!isDirectory || !entry.name.endsWith(pathConsts_1.stubsSuffix)) {
15946
+ continue;
15947
+ }
15948
+ const pyTypedInfo = (0, pyTypedUtils_1.getPyTypedInfo)(this._realFs, partialStubPackagePath);
15949
+ if (!pyTypedInfo || !pyTypedInfo.isPartiallyTyped) {
15950
+ continue;
15951
+ }
15952
+ this._partialStubPackagePaths.add(partialStubPackagePath.key);
15953
+ const packageName = entry.name.substr(0, entry.name.length - pathConsts_1.stubsSuffix.length);
15954
+ for (const root of roots) {
15955
+ const packagePath = root.combinePaths(packageName);
15956
+ try {
15957
+ const stat = (0, uriUtils_1.tryStat)(this._realFs, packagePath);
15958
+ if (!(stat == null ? void 0 : stat.isDirectory())) {
15959
+ continue;
15960
+ }
15961
+ if (!allowMovingFn(isBundledStub, (0, pyTypedUtils_1.getPyTypedInfo)(this._realFs, packagePath), pyTypedInfo)) {
15962
+ continue;
15963
+ }
15964
+ this._movedDirectories.push(this._realFs.mapDirectory(packagePath, partialStubPackagePath, (u, fs8) => u.hasExtension(".pyi") || fs8.existsSync(u) && fs8.statSync(u).isDirectory()));
15965
+ } catch {
15966
+ }
15967
+ }
15968
+ }
15969
+ }
15970
+ }
15971
+ clearPartialStubs() {
15972
+ this._rootSearched.clear();
15973
+ this._partialStubPackagePaths.clear();
15974
+ this._movedDirectories.forEach((d) => d.dispose());
15975
+ this._movedDirectories = [];
15976
+ }
15977
+ _allowMoving(isBundled, packagePyTyped, _stubPyTyped) {
15978
+ if (!isBundled) {
15979
+ return true;
15980
+ }
15981
+ return !packagePyTyped || packagePyTyped.isPartiallyTyped;
15982
+ }
15983
+ _getRelativePathPartialStubs(partialStubPath) {
15984
+ const relativePaths = [];
15985
+ const searchAllStubs = (uri) => {
15986
+ for (const entry of this._realFs.readdirEntriesSync(uri)) {
15987
+ const filePath = uri.combinePaths(entry.name);
15988
+ let isDirectory = entry.isDirectory();
15989
+ let isFile = entry.isFile();
15990
+ if (entry.isSymbolicLink()) {
15991
+ const stat = (0, uriUtils_1.tryStat)(this._realFs, filePath);
15992
+ if (stat) {
15993
+ isDirectory = stat.isDirectory();
15994
+ isFile = stat.isFile();
15995
+ }
15996
+ }
15997
+ if (isDirectory) {
15998
+ searchAllStubs(filePath);
15999
+ }
16000
+ if (isFile && entry.name.endsWith(".pyi")) {
16001
+ const relative = partialStubPath.getRelativePathComponents(filePath).join("/");
16002
+ if (relative) {
16003
+ relativePaths.push(relative);
16004
+ }
16005
+ }
16006
+ }
16007
+ };
16008
+ searchAllStubs(partialStubPath);
16009
+ return relativePaths;
16010
+ }
16011
+ };
16012
+ exports2.PartialStubService = PartialStubService;
16013
+ }
16014
+ });
16015
+
16170
16016
  // node_modules/@zzzen/pyright-internal/dist/common/serviceProviderExtensions.js
16171
16017
  var require_serviceProviderExtensions = __commonJS({
16172
16018
  "node_modules/@zzzen/pyright-internal/dist/common/serviceProviderExtensions.js"(exports2) {
@@ -16176,7 +16022,6 @@ var require_serviceProviderExtensions = __commonJS({
16176
16022
  var cacheManager_1 = require_cacheManager();
16177
16023
  var programTypes_1 = require_programTypes();
16178
16024
  var sourceFile_1 = require_sourceFile();
16179
- var pyrightFileSystem_1 = require_pyrightFileSystem();
16180
16025
  var serviceKeys_1 = require_serviceKeys();
16181
16026
  var caseSensitivityDetector_1 = require_caseSensitivityDetector();
16182
16027
  var console_1 = require_console();
@@ -16184,6 +16029,7 @@ var require_serviceProviderExtensions = __commonJS({
16184
16029
  var serviceProvider_1 = require_serviceProvider();
16185
16030
  var docStringService_1 = require_docStringService();
16186
16031
  var languageServerInterface_1 = require_languageServerInterface();
16032
+ var partialStubService_1 = require_partialStubService();
16187
16033
  function createServiceProvider(...services2) {
16188
16034
  const sp = new serviceProvider_1.ServiceProvider();
16189
16035
  services2.forEach((service) => {
@@ -16196,7 +16042,7 @@ var require_serviceProviderExtensions = __commonJS({
16196
16042
  if (programTypes_1.ISourceFileFactory.is(service)) {
16197
16043
  sp.add(serviceKeys_1.ServiceKeys.sourceFileFactory, service);
16198
16044
  }
16199
- if (pyrightFileSystem_1.SupportPartialStubs.is(service)) {
16045
+ if (partialStubService_1.SupportPartialStubs.is(service)) {
16200
16046
  sp.add(serviceKeys_1.ServiceKeys.partialStubs, service);
16201
16047
  }
16202
16048
  if (fileSystem_1.TempFile.is(service)) {
@@ -16734,6 +16580,7 @@ var require_package_nls_cs = __commonJS({
16734
16580
  noneNotUsableWithAsync: "Objekt typu None nen\xED mo\u017En\xE9 pou\u017E\xEDt s typem async with.",
16735
16581
  noneOperator: "Oper\xE1tor {operator} se pro None nepodporuje",
16736
16582
  noneUnknownMember: "{name} nen\xED zn\xE1m\xFD atribut None.",
16583
+ nonlocalTypeParam: "Pro parametr typu {name} nen\xED povolen\xE1 vazba nonlocal.",
16737
16584
  notRequiredArgCount: "Za NotRequired byl o\u010Dek\xE1v\xE1n jeden argument typu",
16738
16585
  notRequiredNotInTypedDict: "NotRequired nen\xED v tomto kontextu povolen\xE9",
16739
16586
  objectNotCallable: "Objekt typu {type} nen\xED mo\u017En\xE9 volat",
@@ -16752,11 +16599,11 @@ var require_package_nls_cs = __commonJS({
16752
16599
  overloadAbstractImplMismatch: "P\u0159et\xED\u017Een\xED mus\xED odpov\xEDdat abstraktn\xEDmu stavu implementace.",
16753
16600
  overloadAbstractMismatch: "Bu\u010F mus\xED b\xFDt v\u0161echna p\u0159et\xED\u017Een\xED abstraktn\xED, nebo naopak nesm\xED b\xFDt \u017E\xE1dn\xE9 z nich abstraktn\xED.",
16754
16601
  overloadClassMethodInconsistent: "P\u0159et\xED\u017Een\xED pro {name} pou\u017E\xEDvaj\xED @classmethod nekonzistentn\u011B.",
16755
- overloadFinalImpl: "@final decorator should be applied only to the implementation",
16756
- overloadFinalNoImpl: "Only the first overload should be marked @final",
16602
+ overloadFinalImpl: "dekorat\xE9r @final by se m\u011Bl pou\u017E\xEDvat jenom pro implementaci.",
16603
+ overloadFinalNoImpl: "Pouze prvn\xED p\u0159et\xED\u017Een\xED by m\u011Blo b\xFDt ozna\u010Deno @final",
16757
16604
  overloadImplementationMismatch: "P\u0159et\xED\u017Een\xE1 implementace nen\xED konzistentn\xED se signaturou p\u0159et\xED\u017Een\xED {index}",
16758
- overloadOverrideImpl: "@override decorator should be applied only to the implementation",
16759
- overloadOverrideNoImpl: "Only the first overload should be marked @override",
16605
+ overloadOverrideImpl: "dekorat\xE9r @override by se m\u011Bl pou\u017E\xEDvat jenom pro implementaci.",
16606
+ overloadOverrideNoImpl: "Pouze prvn\xED p\u0159et\xED\u017Een\xED by m\u011Blo b\xFDt ozna\u010Deno @override",
16760
16607
  overloadReturnTypeMismatch: "P\u0159et\xED\u017Een\xED {prevIndex} pro {name} se p\u0159ekr\xFDv\xE1 s p\u0159et\xED\u017Een\xEDm {newIndex} a vrac\xED nekompatibiln\xED typ",
16761
16608
  overloadStaticMethodInconsistent: "P\u0159et\xED\u017Een\xED pro {name} pou\u017E\xEDvaj\xED @staticmethod nekonzistentn\u011B.",
16762
16609
  overloadWithoutImplementation: "\u201E{name}\u201C je ozna\u010Den\xE9 jako p\u0159et\xED\u017Een\xED (overload), ale nen\xED zadan\xE1 \u017E\xE1dn\xE1 implementace.",
@@ -16952,14 +16799,14 @@ var require_package_nls_cs = __commonJS({
16952
16799
  typedDictBadVar: "T\u0159\xEDdy TypedDict m\u016F\u017Eou obsahovat jenom pozn\xE1mky typu",
16953
16800
  typedDictBaseClass: "V\u0161echny z\xE1kladn\xED t\u0159\xEDdy pro t\u0159\xEDdy TypedDict mus\xED b\xFDt tak\xE9 t\u0159\xEDdami TypedDict",
16954
16801
  typedDictBoolParam: "O\u010Dek\xE1valo se, \u017Ee parametr {name} bude m\xEDt hodnotu True nebo False",
16955
- typedDictClosedExtras: "Z\xE1kladn\xED t\u0159\xEDda {name} je closed TypedDict; dal\u0161\xED polo\u017Eky mus\xED b\xFDt typu {type}.",
16802
+ typedDictClosedExtras: 'Z\xE1kladn\xED "{name}" t\u0159\xEDdy je TypedDict, kter\xFD omezuje typ dal\u0161\xEDch polo\u017Eek na typ "{type}"',
16956
16803
  typedDictClosedNoExtras: "Z\xE1kladn\xED t\u0159\xEDda {name} je closed TypedDict; polo\u017Eky nav\xEDc nejsou povolen\xE9.",
16957
16804
  typedDictDelete: "Nepovedlo se odstranit polo\u017Eku v TypedDict",
16958
16805
  typedDictEmptyName: "N\xE1zvy v r\xE1mci TypedDict nem\u016F\u017Eou b\xFDt pr\xE1zdn\xE9",
16959
16806
  typedDictEntryName: "O\u010Dek\xE1val se \u0159et\u011Bzcov\xFD liter\xE1l pro n\xE1zev polo\u017Eky slovn\xEDku",
16960
16807
  typedDictEntryUnique: "N\xE1zvy ve slovn\xEDku mus\xED b\xFDt jedine\u010Dn\xE9",
16961
16808
  typedDictExtraArgs: "Nadbyte\u010Dn\xE9 argumenty TypedDict nejsou podporov\xE1ny",
16962
- typedDictExtraItemsClosed: "Objekt TypedDict nelze closed, pokud podporuje dal\u0161\xED polo\u017Eky.",
16809
+ typedDictExtraItemsClosed: 'TypedDict m\u016F\u017Ee pou\u017E\xEDvat bu\u010F "closed", nebo "extra_items", ale ne oboj\xED.',
16963
16810
  typedDictFieldNotRequiredRedefinition: "Polo\u017Eka TypedDict {name} nejde p\u0159edefinovat jako NotRequired.",
16964
16811
  typedDictFieldReadOnlyRedefinition: "Polo\u017Eka TypedDict {name} nejde p\u0159edefinovat jako ReadOnly.",
16965
16812
  typedDictFieldRequiredRedefinition: "Polo\u017Eka TypedDict {name} nejde p\u0159edefinovat jako Required.",
@@ -17201,7 +17048,6 @@ var require_package_nls_cs = __commonJS({
17201
17048
  typedDictFieldRequired: "{name} se vy\u017Eaduje v {type}",
17202
17049
  typedDictFieldTypeMismatch: "Typ {type} se ned\xE1 p\u0159i\u0159adit k polo\u017Ece {name}",
17203
17050
  typedDictFieldUndefined: "{name} je nedefinovan\xE1 polo\u017Eka v typu {type}",
17204
- typedDictFinalMismatch: "{sourceType} nen\xED kompatibiln\xED s {destType} z d\u016Fvodu neshody @final",
17205
17051
  typedDictKeyAccess: 'Pou\u017E\xEDt ["{name}"] k odkazov\xE1n\xED na polo\u017Eku v TypedDict',
17206
17052
  typedDictNotAllowed: "TypedDict se ned\xE1 pou\u017E\xEDt pro kontroly instanc\xED nebo t\u0159\xEDd.",
17207
17053
  unhashableType: "Typ \u201E{type}\u201C nejde zat\u0159i\u010Fovat",
@@ -17573,6 +17419,7 @@ var require_package_nls_de = __commonJS({
17573
17419
  noneNotUsableWithAsync: "Das Objekt vom Typ \u201ENone\u201C kann nicht mit \u201Easync with\u201C verwendet werden.",
17574
17420
  noneOperator: 'Der Operator "{operator}" wird f\xFCr den "{None}" nicht unterst\xFCtzt.',
17575
17421
  noneUnknownMember: "\u201E{name}\u201C ist kein bekanntes Attribut von \u201ENone\u201C",
17422
+ nonlocalTypeParam: "Die Bindung \u201ENonlocal\u201C ist f\xFCr den Typparameter \u201E{name}\u201C nicht zul\xE4ssig.",
17576
17423
  notRequiredArgCount: 'Nach "NotRequired" wurde ein einzelnes Typargument erwartet.',
17577
17424
  notRequiredNotInTypedDict: '"NotRequired" ist in diesem Kontext nicht zul\xE4ssig.',
17578
17425
  objectNotCallable: 'Das Objekt vom Typ "{type}" kann nicht aufgerufen werden.',
@@ -17591,11 +17438,11 @@ var require_package_nls_de = __commonJS({
17591
17438
  overloadAbstractImplMismatch: "\xDCberladungen m\xFCssen dem abstrakten Status der Implementierung entsprechen.",
17592
17439
  overloadAbstractMismatch: "\xDCberladungen m\xFCssen alle abstrakt sein oder nicht.",
17593
17440
  overloadClassMethodInconsistent: '\xDCberladungen f\xFCr "{name}" verwenden @classmethod inkonsistent',
17594
- overloadFinalImpl: "@final decorator should be applied only to the implementation",
17595
- overloadFinalNoImpl: "Only the first overload should be marked @final",
17441
+ overloadFinalImpl: "@final Decorator sollte nur auf die Implementierung angewendet werden.",
17442
+ overloadFinalNoImpl: "Nur die erste \xDCberladung sollte @final markiert werden.",
17596
17443
  overloadImplementationMismatch: "Die \xFCberladene Implementierung ist nicht konsistent mit der Signatur der \xDCberladung {index}",
17597
- overloadOverrideImpl: "@override decorator should be applied only to the implementation",
17598
- overloadOverrideNoImpl: "Only the first overload should be marked @override",
17444
+ overloadOverrideImpl: "@override Decorator sollte nur auf die Implementierung angewendet werden.",
17445
+ overloadOverrideNoImpl: "Nur die erste \xDCberladung sollte @override markiert werden.",
17599
17446
  overloadReturnTypeMismatch: '\xDCberladung {prevIndex} f\xFCr "{name}" \xFCberlappt {newIndex} und gibt einen inkompatiblen Typ zur\xFCck.',
17600
17447
  overloadStaticMethodInconsistent: '\xDCberladungen f\xFCr "{name}" verwenden @staticmethod inkonsistent',
17601
17448
  overloadWithoutImplementation: '"{name}" ist als overload markiert, es wurde jedoch keine Implementierung bereitgestellt.',
@@ -17791,14 +17638,14 @@ var require_package_nls_de = __commonJS({
17791
17638
  typedDictBadVar: "TypedDict-Klassen d\xFCrfen nur Typanmerkungen enthalten.",
17792
17639
  typedDictBaseClass: "Alle Basisklassen f\xFCr TypedDict-Klassen m\xFCssen auch TypedDict-Klassen sein.",
17793
17640
  typedDictBoolParam: 'Es wird erwartet, dass "{name}" Parameter den Wert "True" oder "False" aufweist.',
17794
- typedDictClosedExtras: "Die Basisklasse \u201E{name}\u201C ist ein closed TypedDict; zus\xE4tzliche Elemente m\xFCssen vom Typ \u201E{type}\u201C sein.",
17641
+ typedDictClosedExtras: 'Die Basisklasse "{name}" ist eine TypedDict, die den Typ zus\xE4tzlicher Elemente auf den Typ "{type}" beschr\xE4nkt.',
17795
17642
  typedDictClosedNoExtras: "Die Basisklasse \u201E{name}\u201C ist ein closed TypedDict; zus\xE4tzliche Elemente sind nicht zul\xE4ssig.",
17796
17643
  typedDictDelete: "Das Element in TypedDict konnte nicht gel\xF6scht werden.",
17797
17644
  typedDictEmptyName: "Namen innerhalb eines TypedDict d\xFCrfen nicht leer sein.",
17798
17645
  typedDictEntryName: "F\xFCr den W\xF6rterbucheintragsnamen wurde ein Zeichenfolgenliteral erwartet.",
17799
17646
  typedDictEntryUnique: "Namen innerhalb eines W\xF6rterbuchs m\xFCssen eindeutig sein.",
17800
17647
  typedDictExtraArgs: "Zus\xE4tzliche TypedDict-Argumente werden nicht unterst\xFCtzt.",
17801
- typedDictExtraItemsClosed: "Ein TypedDict kann nicht auf closed (geschlossen) gesetzt werden, wenn es zus\xE4tzliche Elemente unterst\xFCtzt.",
17648
+ typedDictExtraItemsClosed: 'TypedDict k\xF6nnen entweder "closed" oder "extra_items" verwenden, aber nicht beides.',
17802
17649
  typedDictFieldNotRequiredRedefinition: "Das TypedDict-Element \u201E{name}\u201C kann nicht als \u201ENotRequired\u201C neu definiert werden.",
17803
17650
  typedDictFieldReadOnlyRedefinition: "Das TypedDict-Element \u201E{name}\u201C kann nicht als \u201EReadOnly\u201C neu definiert werden.",
17804
17651
  typedDictFieldRequiredRedefinition: "Das TypedDict-Element \u201E{name}\u201C kann nicht als \u201ERequired\u201C neu definiert werden.",
@@ -18040,7 +17887,6 @@ var require_package_nls_de = __commonJS({
18040
17887
  typedDictFieldRequired: '"{name}" ist in "{type}" erforderlich.',
18041
17888
  typedDictFieldTypeMismatch: "Der Typ \u201E{type}\u201C kann dem Element \u201E{name}\u201C nicht zugewiesen werden.",
18042
17889
  typedDictFieldUndefined: "\u201E{name}\u201C ist ein nicht definiertes Element im Typ \u201E{type}\u201C.",
18043
- typedDictFinalMismatch: '"{sourceType}" ist aufgrund eines @final-Konflikts nicht mit "{destType}" kompatibel.',
18044
17890
  typedDictKeyAccess: '["{name}"] verwenden, um in TypedDict auf ein Element zu verweisen',
18045
17891
  typedDictNotAllowed: "TypedDict kann nicht f\xFCr Instanzen- oder Klassen\xFCberpr\xFCfungen verwendet werden.",
18046
17892
  unhashableType: 'Der Typ "{type}" kann nicht mit einem Hash erstellt werden.',
@@ -18168,6 +18014,10 @@ var require_package_nls_en_us = __commonJS({
18168
18014
  baseClassUnknown: "Base class type is unknown, obscuring type of derived class",
18169
18015
  baseClassVariableTypeIncompatible: 'Base classes for class "{classType}" define variable "{name}" in incompatible way',
18170
18016
  binaryOperationNotAllowed: "Binary operator not allowed in type expression",
18017
+ bindParamMissing: {
18018
+ message: 'Could not bind method "{methodName}" because it is missing a "self" or "cls" parameter',
18019
+ comment: "Binding is the process through which Pyright determines what object a name refers to"
18020
+ },
18171
18021
  bindTypeMismatch: {
18172
18022
  message: 'Could not bind method "{methodName}" because "{type}" is not assignable to parameter "{paramName}"',
18173
18023
  comment: "Binding is the process through which Pyright determines what object a name refers to"
@@ -19331,6 +19181,7 @@ var require_package_nls_en_us = __commonJS({
19331
19181
  comment: "{Locked='type'}"
19332
19182
  },
19333
19183
  typeAliasStatementIllegal: "Type alias statement requires Python 3.12 or newer",
19184
+ typeAliasTypeBadScope: "A type alias can be defined only within a module or class scope",
19334
19185
  typeAliasTypeBaseClass: {
19335
19186
  message: 'A type alias defined in a "type" statement cannot be used as a base class',
19336
19187
  comment: `{Locked='"type"'}`
@@ -20134,10 +19985,6 @@ var require_package_nls_en_us = __commonJS({
20134
19985
  typedDictFieldRequired: '"{name}" is required in "{type}"',
20135
19986
  typedDictFieldTypeMismatch: 'Type "{type}" is not assignable to item "{name}"',
20136
19987
  typedDictFieldUndefined: '"{name}" is an undefined item in type "{type}"',
20137
- typedDictFinalMismatch: {
20138
- message: '"{sourceType}" is incompatible with "{destType}" because of a @final mismatch',
20139
- comment: "{Locked='@final'}"
20140
- },
20141
19988
  typedDictKeyAccess: {
20142
19989
  message: 'Use ["{name}"] to reference item in TypedDict',
20143
19990
  comment: "{Locked='TypedDict'}"
@@ -20527,6 +20374,7 @@ var require_package_nls_es = __commonJS({
20527
20374
  noneNotUsableWithAsync: 'El objeto de tipo "None" no se puede usar con "async with"',
20528
20375
  noneOperator: 'El operador "{operator}" no es compatible con "None".',
20529
20376
  noneUnknownMember: '"{name}" no es un atributo conocido de "None"',
20377
+ nonlocalTypeParam: 'No se permite el enlace nonlocal para el par\xE1metro de tipo "{name}"',
20530
20378
  notRequiredArgCount: 'Se esperaba un \xFAnico argumento de tipo despu\xE9s de "NotRequired".',
20531
20379
  notRequiredNotInTypedDict: '"NotRequired" no est\xE1 permitido en este contexto',
20532
20380
  objectNotCallable: 'El objeto de tipo "{type}" no es invocable',
@@ -20545,11 +20393,11 @@ var require_package_nls_es = __commonJS({
20545
20393
  overloadAbstractImplMismatch: "Las sobrecargas deben coincidir con el estado abstracto de la implementaci\xF3n",
20546
20394
  overloadAbstractMismatch: "Todos los m\xE9todos sobrecargados deben ser abstractos o no",
20547
20395
  overloadClassMethodInconsistent: 'Las sobrecargas de "{name}" usan @classmethod de forma incoherente',
20548
- overloadFinalImpl: "@final decorator should be applied only to the implementation",
20549
- overloadFinalNoImpl: "Only the first overload should be marked @final",
20396
+ overloadFinalImpl: "@final elemento Decorator solo se debe aplicar a la implementaci\xF3n.",
20397
+ overloadFinalNoImpl: "Solo la primera sobrecarga debe marcarse @final",
20550
20398
  overloadImplementationMismatch: "La implementaci\xF3n de la sobrecarga no es consistente con la firma de la sobrecarga {index}",
20551
- overloadOverrideImpl: "@override decorator should be applied only to the implementation",
20552
- overloadOverrideNoImpl: "Only the first overload should be marked @override",
20399
+ overloadOverrideImpl: "@override elemento Decorator solo se debe aplicar a la implementaci\xF3n.",
20400
+ overloadOverrideNoImpl: "Solo la primera sobrecarga debe marcarse @override",
20553
20401
  overloadReturnTypeMismatch: 'La sobrecarga {prevIndex} para " {name}" se superpone con la sobrecarga {newIndex} y devuelve un tipo incompatible',
20554
20402
  overloadStaticMethodInconsistent: 'Las sobrecargas de "{name}" usan @staticmethod de forma incoherente',
20555
20403
  overloadWithoutImplementation: '"{name}" est\xE1 marcado como overload, pero no se proporciona ninguna implementaci\xF3n.',
@@ -20745,14 +20593,14 @@ var require_package_nls_es = __commonJS({
20745
20593
  typedDictBadVar: "Las clases TypedDict solo pueden contener anotaciones de tipo",
20746
20594
  typedDictBaseClass: "Todas las clases base de las clases TypedDict deben ser tambi\xE9n clases TypedDict",
20747
20595
  typedDictBoolParam: 'Se esperaba que el par\xE1metro "{name}" tuviera un valor de True o False.',
20748
- typedDictClosedExtras: 'La clase base "{name}" es un TypedDict closed; los elementos adicionales deben ser de tipo "{type}"',
20596
+ typedDictClosedExtras: 'El "{name}" de clase base es un TypedDict que limita el tipo de elementos adicionales al tipo "{type}"',
20749
20597
  typedDictClosedNoExtras: 'La clase base "{name}" es un TypedDict closed; no se permiten elementos adicionales',
20750
20598
  typedDictDelete: "No se puede eliminar un elemento en TypedDict",
20751
20599
  typedDictEmptyName: "Los nombres de un TypedDict no pueden estar vac\xEDos",
20752
20600
  typedDictEntryName: "Cadena literal esperada para el nombre de la entrada del diccionario",
20753
20601
  typedDictEntryUnique: "Los nombres dentro de un diccionario deben ser \xFAnicos",
20754
20602
  typedDictExtraArgs: "No se admiten argumentos TypedDict adicionales",
20755
- typedDictExtraItemsClosed: "Un TypedDict no puede tener el estado closed si admite elementos adicionales",
20603
+ typedDictExtraItemsClosed: 'TypedDict puede usar "closed" o "extra_items", pero no ambos',
20756
20604
  typedDictFieldNotRequiredRedefinition: 'El elemento TypedDict "{name}" no se puede redefinir como NotRequired',
20757
20605
  typedDictFieldReadOnlyRedefinition: 'El elemento TypedDict "{name}" no se puede redefinir como ReadOnly',
20758
20606
  typedDictFieldRequiredRedefinition: 'El elemento TypedDict "{name}" no se puede redefinir como Required',
@@ -20994,7 +20842,6 @@ var require_package_nls_es = __commonJS({
20994
20842
  typedDictFieldRequired: '"{name}" es obligatorio en "{type}"',
20995
20843
  typedDictFieldTypeMismatch: 'El tipo "{type}" no se puede asignar al elemento "{name}"',
20996
20844
  typedDictFieldUndefined: '"{name}" es un elemento no definido en el tipo "{type}"',
20997
- typedDictFinalMismatch: '"{sourceType}" no es compatible con "{destType}" debido a una discrepancia @final',
20998
20845
  typedDictKeyAccess: 'Utilizar ["{name}"] para hacer referencia al elemento en TypedDict',
20999
20846
  typedDictNotAllowed: "No se puede usar TypedDict para comprobaciones de instancia o clase",
21000
20847
  unhashableType: 'El tipo "{type}" no admite hash',
@@ -21366,6 +21213,7 @@ var require_package_nls_fr = __commonJS({
21366
21213
  noneNotUsableWithAsync: "L\u2019objet de type \xAB\xA0None\xA0\xBB ne peut pas \xEAtre utilis\xE9 avec \xAB\xA0async with\xA0\xBB",
21367
21214
  noneOperator: "L\u2019op\xE9rateur \xAB\xA0{operator}\xA0\xBB n\u2019est pas pris en charge pour \xAB\xA0None\xA0\xBB",
21368
21215
  noneUnknownMember: "\xAB\xA0{name}\xA0\xBB n\u2019est pas un attribut connu de \xAB\xA0None\xA0\xBB",
21216
+ nonlocalTypeParam: 'La liaison nonlocale n\u2019est pas autoris\xE9e pour le param\xE8tre de type "{name}"',
21369
21217
  notRequiredArgCount: "Argument de type unique attendu apr\xE8s \xAB NotRequired \xBB",
21370
21218
  notRequiredNotInTypedDict: "\xAB NotRequired \xBB n\u2019est pas autoris\xE9 dans ce contexte",
21371
21219
  objectNotCallable: "L\u2019objet de type \xAB\xA0{type}\xA0\xBB n\u2019est pas appelant",
@@ -21384,11 +21232,11 @@ var require_package_nls_fr = __commonJS({
21384
21232
  overloadAbstractImplMismatch: "Les surcharges doivent correspondre \xE0 l\u2019\xE9tat abstrait de l\u2019impl\xE9mentation",
21385
21233
  overloadAbstractMismatch: "Les surcharges doivent toutes \xEAtre abstraites ou non",
21386
21234
  overloadClassMethodInconsistent: "Les surcharges pour \xAB {name} \xBB utilisent @classmethod de mani\xE8re incoh\xE9rente",
21387
- overloadFinalImpl: "@final decorator should be applied only to the implementation",
21388
- overloadFinalNoImpl: "Only the first overload should be marked @final",
21235
+ overloadFinalImpl: "@final decorator ne doit \xEAtre appliqu\xE9 qu\u2019\xE0 l\u2019impl\xE9mentation",
21236
+ overloadFinalNoImpl: "Seule la premi\xE8re surcharge doit \xEAtre marqu\xE9e @final",
21389
21237
  overloadImplementationMismatch: "L\u2019impl\xE9mentation surcharg\xE9e n\u2019est pas coh\xE9rente avec la signature de la surcharge {index}",
21390
- overloadOverrideImpl: "@override decorator should be applied only to the implementation",
21391
- overloadOverrideNoImpl: "Only the first overload should be marked @override",
21238
+ overloadOverrideImpl: "@override decorator ne doit \xEAtre appliqu\xE9 qu\u2019\xE0 l\u2019impl\xE9mentation",
21239
+ overloadOverrideNoImpl: "Seule la premi\xE8re surcharge doit \xEAtre marqu\xE9e @override",
21392
21240
  overloadReturnTypeMismatch: "La surcharge {prevIndex} pour \xAB\xA0{name}\xA0\xBB chevauche la surcharge {newIndex} et retourne un type incompatible",
21393
21241
  overloadStaticMethodInconsistent: "Les surcharges pour \xAB {name} \xBB utilisent @staticmethod de mani\xE8re incoh\xE9rente",
21394
21242
  overloadWithoutImplementation: "\xAB\xA0{name}\xA0\xBB est marqu\xE9 comme overload, mais aucune impl\xE9mentation n\u2019est fournie",
@@ -21584,14 +21432,14 @@ var require_package_nls_fr = __commonJS({
21584
21432
  typedDictBadVar: "Les classes TypedDict ne peuvent contenir que des annotations de type",
21585
21433
  typedDictBaseClass: "Toutes les classes de base pour les classes TypedDict doivent \xE9galement \xEAtre des classes TypedDict",
21586
21434
  typedDictBoolParam: "Param\xE8tre \xAB\xA0{name}\xA0\xBB attendu avec la valeur True ou False",
21587
- typedDictClosedExtras: "La classe de base \xAB\xA0{name}\xA0\xBB est un TypedDict closed, les \xE9l\xE9ments suppl\xE9mentaires doivent \xEAtre de type \xAB\xA0{type}\xA0\xBB",
21435
+ typedDictClosedExtras: 'Le "{name}" de classe de base est un TypedDict qui limite le type d\u2019\xE9l\xE9ments suppl\xE9mentaires au type "{type}"',
21588
21436
  typedDictClosedNoExtras: "La classe de base \xAB\xA0{name}\xA0\xBB est un TypedDict closed, les \xE9l\xE9ments suppl\xE9mentaires ne sont pas autoris\xE9s",
21589
21437
  typedDictDelete: "Impossible de supprimer l\u2019\xE9l\xE9ment dans TypedDict",
21590
21438
  typedDictEmptyName: "Les noms dans un TypedDict ne peuvent pas \xEAtre vides",
21591
21439
  typedDictEntryName: "Litt\xE9ral de cha\xEEne attendu pour le nom d\u2019entr\xE9e du dictionnaire",
21592
21440
  typedDictEntryUnique: "Les noms dans un dictionnaire doivent \xEAtre uniques",
21593
21441
  typedDictExtraArgs: "Arguments TypedDict suppl\xE9mentaires non pris en charge",
21594
- typedDictExtraItemsClosed: "Un TypedDict ne peut pas \xEAtre closed s\u2019il prend en charge les \xE9l\xE9ments suppl\xE9mentaires",
21442
+ typedDictExtraItemsClosed: 'TypedDict pouvez utiliser "closed" ou "extra_items", mais pas les deux',
21595
21443
  typedDictFieldNotRequiredRedefinition: "L\u2019\xE9l\xE9ment TypedDict \xAB\xA0{name}\xA0\xBB ne peut pas \xEAtre red\xE9fini comme \xE9tant NotRequired",
21596
21444
  typedDictFieldReadOnlyRedefinition: "L\u2019\xE9l\xE9ment TypedDict \xAB\xA0{name}\xA0\xBB ne peut pas \xEAtre red\xE9fini comme \xE9tat En ReadOnly",
21597
21445
  typedDictFieldRequiredRedefinition: "L\u2019\xE9l\xE9ment TypedDict \xAB\xA0{name}\xA0\xBB ne peut pas \xEAtre red\xE9fini comme \xE9tant Required",
@@ -21833,7 +21681,6 @@ var require_package_nls_fr = __commonJS({
21833
21681
  typedDictFieldRequired: "\xAB\xA0{name}\xA0\xBB est obligatoire dans \xAB\xA0{type}\xA0\xBB",
21834
21682
  typedDictFieldTypeMismatch: "Le type \xAB\xA0{type}\xA0\xBB n'est pas attribuable \xE0 l\u2019\xE9l\xE9ment \xAB\xA0{name}\xA0\xBB",
21835
21683
  typedDictFieldUndefined: "\xAB\xA0{name}\xA0\xBB est un \xE9l\xE9ment non d\xE9fini dans le type \xAB\xA0{type}\xA0\xBB",
21836
- typedDictFinalMismatch: "\xAB {sourceType} \xBB n\u2019est pas compatible avec \xAB {destType} \xBB en raison d\u2019une incompatibilit\xE9 de @final",
21837
21684
  typedDictKeyAccess: "Utilisez [\xAB {name} \xBB] pour r\xE9f\xE9rencer l\u2019\xE9l\xE9ment dans TypedDict",
21838
21685
  typedDictNotAllowed: "TypedDict ne peut pas \xEAtre utilis\xE9 pour les v\xE9rifications d\u2019instance ou de classe",
21839
21686
  unhashableType: `Le type "{type}" n'est pas hachable`,
@@ -22205,6 +22052,7 @@ var require_package_nls_it = __commonJS({
22205
22052
  noneNotUsableWithAsync: `Impossibile utilizzare l'oggetto di tipo "None" con "async with"`,
22206
22053
  noneOperator: 'Operatore "{operator}" non supportato per "None"',
22207
22054
  noneUnknownMember: '"{name}" non \xE8 un attributo noto di "None"',
22055
+ nonlocalTypeParam: `Non \xE8 consentita l'associazione nonlocal per il parametro di tipo "{name}"`,
22208
22056
  notRequiredArgCount: 'Previsto un singolo argomento tipo dopo "NotRequired"',
22209
22057
  notRequiredNotInTypedDict: '"NotRequired" non \xE8 consentito in questo contesto',
22210
22058
  objectNotCallable: `L'oggetto di tipo "{type}" non \xE8 chiamabile`,
@@ -22223,11 +22071,11 @@ var require_package_nls_it = __commonJS({
22223
22071
  overloadAbstractImplMismatch: "Gli overload devono corrispondere allo stato astratto dell'implementazione",
22224
22072
  overloadAbstractMismatch: "Gli overload devono essere tutti astratti o no",
22225
22073
  overloadClassMethodInconsistent: 'Gli overload per "{name}" usano @classmethod in modo incoerente',
22226
- overloadFinalImpl: "@final decorator should be applied only to the implementation",
22227
- overloadFinalNoImpl: "Only the first overload should be marked @final",
22074
+ overloadFinalImpl: "@final'elemento Decorator deve essere applicato solo all'implementazione",
22075
+ overloadFinalNoImpl: "Solo il primo overload deve essere contrassegnato @final",
22228
22076
  overloadImplementationMismatch: "L'implementazione di overload non \xE8 coerente con la firma dell'overload {index}",
22229
- overloadOverrideImpl: "@override decorator should be applied only to the implementation",
22230
- overloadOverrideNoImpl: "Only the first overload should be marked @override",
22077
+ overloadOverrideImpl: "@override'elemento Decorator deve essere applicato solo all'implementazione",
22078
+ overloadOverrideNoImpl: "Solo il primo overload deve essere contrassegnato @override",
22231
22079
  overloadReturnTypeMismatch: `L'overload {prevIndex} per "{name}" si sovrappone all'overload {newIndex} e restituisce un tipo incompatibile`,
22232
22080
  overloadStaticMethodInconsistent: 'Gli overload per "{name}" usano @staticmethod in modo incoerente',
22233
22081
  overloadWithoutImplementation: '"{name}" \xE8 contrassegnato come overload, ma non viene fornita alcuna implementazione',
@@ -22423,14 +22271,14 @@ var require_package_nls_it = __commonJS({
22423
22271
  typedDictBadVar: "Le classi TypedDict possono contenere solo annotazioni di tipo",
22424
22272
  typedDictBaseClass: "Anche tutte le classi di base per le classi TypedDict devono essere classi TypedDict",
22425
22273
  typedDictBoolParam: '\xC8 previsto che il parametro "{name}" abbia il valore True o False',
22426
- typedDictClosedExtras: 'La classe di base "{name}" \xE8 un TypedDict closed; gli elementi aggiuntivi devono essere di tipo "{type}"',
22274
+ typedDictClosedExtras: 'La classe di base "{name}" \xE8 una TypedDict che limita il tipo di elementi aggiuntivi al tipo "{type}"',
22427
22275
  typedDictClosedNoExtras: 'La classe di base "{name}" \xE8 un TypedDict closed; elementi aggiuntivi non consentiti',
22428
22276
  typedDictDelete: "Non \xE8 stato possibile eliminare l'elemento in TypedDict",
22429
22277
  typedDictEmptyName: "I nomi all'interno di un TypedDict non possono essere vuoti",
22430
22278
  typedDictEntryName: "Valore letterale stringa previsto per il nome della voce del dizionario",
22431
22279
  typedDictEntryUnique: "I nomi all'interno di un dizionario devono essere univoci",
22432
22280
  typedDictExtraArgs: "Argomenti TypedDict aggiuntivi non supportati",
22433
- typedDictExtraItemsClosed: "TypedDict non pu\xF2 avere il valore \u201Cclosed\u201D se supporta elementi aggiuntivi",
22281
+ typedDictExtraItemsClosed: 'TypedDict possono utilizzare "closed" o "extra_items" ma non entrambi',
22434
22282
  typedDictFieldNotRequiredRedefinition: 'Non \xE8 possibile ridefinire il campo TypedDict "{name}" come NotRequired',
22435
22283
  typedDictFieldReadOnlyRedefinition: 'Non \xE8 possibile ridefinire l\u2019elemento TypedDict "{name}" come ReadOnly',
22436
22284
  typedDictFieldRequiredRedefinition: 'Non \xE8 possibile ridefinire il campo TypedDict "{name}" come Required',
@@ -22672,7 +22520,6 @@ var require_package_nls_it = __commonJS({
22672
22520
  typedDictFieldRequired: '"{name}" \xE8 obbligatorio in "{type}"',
22673
22521
  typedDictFieldTypeMismatch: 'Il tipo "{type}" non pu\xF2 essere assegnato all\u2019elemento "{name}"',
22674
22522
  typedDictFieldUndefined: '"{name}" \xE8 un elemento non definito nel tipo "{type}"',
22675
- typedDictFinalMismatch: '"{sourceType}" non \xE8 compatibile con "{destType}" a causa di una @final mancata corrispondenza',
22676
22523
  typedDictKeyAccess: `Usare ["{name}"] per fare riferimento all'elemento in TypedDict`,
22677
22524
  typedDictNotAllowed: "Non \xE8 possibile usare TypedDict per i controlli di istanze o classi",
22678
22525
  unhashableType: 'Il tipo "{type}" non \xE8 hashable',
@@ -23044,6 +22891,7 @@ var require_package_nls_ja = __commonJS({
23044
22891
  noneNotUsableWithAsync: '\u578B "None" \u3068 "async with" \u306F\u540C\u6642\u306B\u4F7F\u7528\u3067\u304D\u307E\u305B\u3093',
23045
22892
  noneOperator: '\u6F14\u7B97\u5B50 "{operator}" \u306F "None" \u3067\u306F\u30B5\u30DD\u30FC\u30C8\u3055\u308C\u3066\u3044\u307E\u305B\u3093',
23046
22893
  noneUnknownMember: '"{name}" \u306F "None" \u306E\u65E2\u77E5\u306E\u5C5E\u6027\u3067\u306F\u3042\u308A\u307E\u305B\u3093',
22894
+ nonlocalTypeParam: '\u578B\u30D1\u30E9\u30E1\u30FC\u30BF\u30FC "{name}" \u306B nonlocal \u30D0\u30A4\u30F3\u30C9\u306F\u8A31\u53EF\u3055\u308C\u3066\u3044\u307E\u305B\u3093',
23047
22895
  notRequiredArgCount: '"NotRequired" \u306E\u5F8C\u306B 1 \u3064\u306E\u578B\u5F15\u6570\u304C\u5FC5\u8981\u3067\u3059',
23048
22896
  notRequiredNotInTypedDict: '"NotRequired" \u306F\u3053\u306E\u30B3\u30F3\u30C6\u30AD\u30B9\u30C8\u3067\u306F\u8A31\u53EF\u3055\u308C\u3066\u3044\u307E\u305B\u3093',
23049
22897
  objectNotCallable: '\u578B "{type}" \u306E\u30AA\u30D6\u30B8\u30A7\u30AF\u30C8\u306F\u547C\u3073\u51FA\u3057\u53EF\u80FD\u3067\u306F\u3042\u308A\u307E\u305B\u3093',
@@ -23062,11 +22910,11 @@ var require_package_nls_ja = __commonJS({
23062
22910
  overloadAbstractImplMismatch: "\u30AA\u30FC\u30D0\u30FC\u30ED\u30FC\u30C9\u306F\u5B9F\u88C5\u306E\u62BD\u8C61\u72B6\u614B\u3068\u4E00\u81F4\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059",
23063
22911
  overloadAbstractMismatch: "\u30AA\u30FC\u30D0\u30FC\u30ED\u30FC\u30C9\u306F\u3059\u3079\u3066\u62BD\u8C61\u3067\u3042\u308B\u304B\u62BD\u8C61\u3067\u306A\u3044\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059",
23064
22912
  overloadClassMethodInconsistent: '"{name}" \u306E\u30AA\u30FC\u30D0\u30FC\u30ED\u30FC\u30C9\u3067\u306F\u3001@classmethod \u3092\u4E0D\u6574\u5408\u306B\u4F7F\u7528\u3057\u307E\u3059',
23065
- overloadFinalImpl: "@final decorator should be applied only to the implementation",
23066
- overloadFinalNoImpl: "Only the first overload should be marked @final",
22913
+ overloadFinalImpl: "@final \u30C7\u30B3\u30EC\u30FC\u30BF\u30FC\u306F\u5B9F\u88C5\u306B\u306E\u307F\u9069\u7528\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059",
22914
+ overloadFinalNoImpl: "\u6700\u521D\u306E\u30AA\u30FC\u30D0\u30FC\u30ED\u30FC\u30C9\u306E\u307F\u3092 @final \u306B\u8A2D\u5B9A\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059",
23067
22915
  overloadImplementationMismatch: "\u30AA\u30FC\u30D0\u30FC\u30ED\u30FC\u30C9\u3055\u308C\u305F\u5B9F\u88C5\u304C\u30AA\u30FC\u30D0\u30FC\u30ED\u30FC\u30C9 {index} \u306E\u30B7\u30B0\u30CD\u30C1\u30E3\u3068\u4E00\u81F4\u3057\u307E\u305B\u3093",
23068
- overloadOverrideImpl: "@override decorator should be applied only to the implementation",
23069
- overloadOverrideNoImpl: "Only the first overload should be marked @override",
22916
+ overloadOverrideImpl: "@override \u30C7\u30B3\u30EC\u30FC\u30BF\u30FC\u306F\u5B9F\u88C5\u306B\u306E\u307F\u9069\u7528\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059",
22917
+ overloadOverrideNoImpl: "\u6700\u521D\u306E\u30AA\u30FC\u30D0\u30FC\u30ED\u30FC\u30C9\u306E\u307F\u3092 @override \u306B\u8A2D\u5B9A\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059",
23070
22918
  overloadReturnTypeMismatch: '"{name}" \u306E\u30AA\u30FC\u30D0\u30FC\u30ED\u30FC\u30C9 {prevIndex} \u306F\u30AA\u30FC\u30D0\u30FC\u30ED\u30FC\u30C9 {newIndex} \u3068\u91CD\u8907\u3057\u3001\u4E92\u63DB\u6027\u306E\u306A\u3044\u578B\u3092\u8FD4\u3057\u307E\u3059',
23071
22919
  overloadStaticMethodInconsistent: '"{name}" \u306E\u30AA\u30FC\u30D0\u30FC\u30ED\u30FC\u30C9\u3067\u306F\u3001@staticmethod \u3092\u4E0D\u6574\u5408\u306B\u4F7F\u7528\u3057\u307E\u3059',
23072
22920
  overloadWithoutImplementation: '"{name}" \u306F overload \u3068\u3057\u3066\u30DE\u30FC\u30AF\u3055\u308C\u3066\u3044\u307E\u3059\u304C\u3001\u5B9F\u88C5\u304C\u63D0\u4F9B\u3055\u308C\u3066\u3044\u307E\u305B\u3093',
@@ -23262,14 +23110,14 @@ var require_package_nls_ja = __commonJS({
23262
23110
  typedDictBadVar: "TypedDict \u30AF\u30E9\u30B9\u306B\u306F\u578B\u6CE8\u91C8\u306E\u307F\u3092\u542B\u3081\u308B\u3053\u3068\u304C\u3067\u304D\u307E\u3059",
23263
23111
  typedDictBaseClass: "TypedDict \u30AF\u30E9\u30B9\u306E\u3059\u3079\u3066\u306E\u57FA\u5E95\u30AF\u30E9\u30B9\u3082 TypedDict \u30AF\u30E9\u30B9\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059",
23264
23112
  typedDictBoolParam: '"{name}" \u30D1\u30E9\u30E1\u30FC\u30BF\u30FC\u306E\u5024\u306F True \u307E\u305F\u306F False \u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059',
23265
- typedDictClosedExtras: '\u57FA\u5E95\u30AF\u30E9\u30B9 "{name}" \u306F closed \u3057\u305F TypedDict \u3067\u3059\u3002\u8FFD\u52A0\u306E\u9805\u76EE\u306F\u578B "{type}" \u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059',
23113
+ typedDictClosedExtras: '\u57FA\u5E95\u30AF\u30E9\u30B9 "{name}" \u306F\u3001\u4F59\u5206\u306A\u9805\u76EE\u306E\u578B\u3092\u578B "{type}" \u306B\u5236\u9650\u3059\u308B TypedDict \u3067\u3059',
23266
23114
  typedDictClosedNoExtras: '\u57FA\u5E95\u30AF\u30E9\u30B9 "{name}" \u306F closed \u3057\u305F TypedDict \u3067\u3059\u3002\u8FFD\u52A0\u306E\u9805\u76EE\u306F\u8A31\u53EF\u3055\u308C\u3066\u3044\u307E\u305B\u3093',
23267
23115
  typedDictDelete: "TypedDict \u306E\u9805\u76EE\u3092\u524A\u9664\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F",
23268
23116
  typedDictEmptyName: "TypedDict \u5185\u306E\u540D\u524D\u3092\u7A7A\u306B\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",
23269
23117
  typedDictEntryName: "\u8F9E\u66F8\u30A8\u30F3\u30C8\u30EA\u540D\u306B\u6587\u5B57\u5217\u30EA\u30C6\u30E9\u30EB\u304C\u5FC5\u8981\u3067\u3059",
23270
23118
  typedDictEntryUnique: "\u30C7\u30A3\u30AF\u30B7\u30E7\u30CA\u30EA\u5185\u306E\u540D\u524D\u306F\u4E00\u610F\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059",
23271
23119
  typedDictExtraArgs: "\u8FFD\u52A0\u306E TypedDict \u5F15\u6570\u306F\u30B5\u30DD\u30FC\u30C8\u3055\u308C\u3066\u3044\u307E\u305B\u3093",
23272
- typedDictExtraItemsClosed: "\u8FFD\u52A0\u306E\u9805\u76EE\u304C\u30B5\u30DD\u30FC\u30C8\u3055\u308C\u3066\u3044\u308B\u5834\u5408\u3001TypedDict \u3092 closed \u306B\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",
23120
+ typedDictExtraItemsClosed: 'TypedDict \u306F "closed" \u307E\u305F\u306F "extra_items" \u3092\u4F7F\u7528\u3067\u304D\u307E\u3059\u304C\u3001\u4E21\u65B9\u3092\u4F7F\u7528\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093',
23273
23121
  typedDictFieldNotRequiredRedefinition: 'TypedDict \u30A2\u30A4\u30C6\u30E0 "{name}" \u3092 NotRequired \u3068\u3057\u3066\u518D\u5B9A\u7FA9\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093',
23274
23122
  typedDictFieldReadOnlyRedefinition: 'TypedDict \u30A2\u30A4\u30C6\u30E0 "{name}" \u3092 ReadOnly \u3068\u3057\u3066\u518D\u5B9A\u7FA9\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093',
23275
23123
  typedDictFieldRequiredRedefinition: 'TypedDict \u30A2\u30A4\u30C6\u30E0 "{name}" \u3092 Required \u3068\u3057\u3066\u518D\u5B9A\u7FA9\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093',
@@ -23511,7 +23359,6 @@ var require_package_nls_ja = __commonJS({
23511
23359
  typedDictFieldRequired: '"{name}" \u306F "{type}" \u306B\u5FC5\u8981\u3067\u3059',
23512
23360
  typedDictFieldTypeMismatch: '\u578B "{type}" \u306F\u3001\u30A2\u30A4\u30C6\u30E0 "{name}" \u306B\u5272\u308A\u5F53\u3066\u3067\u304D\u307E\u305B\u3093',
23513
23361
  typedDictFieldUndefined: '"{name}" \u306F\u578B "{type}" \u306E\u672A\u5B9A\u7FA9\u306E\u30A2\u30A4\u30C6\u30E0\u3067\u3059',
23514
- typedDictFinalMismatch: '@final \u304C\u4E00\u81F4\u3057\u306A\u3044\u305F\u3081\u3001"{sourceType}" \u306F "{destType}" \u3068\u4E92\u63DB\u6027\u304C\u3042\u308A\u307E\u305B\u3093',
23515
23362
  typedDictKeyAccess: '["{name}"] \u3092\u4F7F\u7528\u3057\u3066 TypedDict \u306E\u9805\u76EE\u3092\u53C2\u7167\u3059\u308B',
23516
23363
  typedDictNotAllowed: "TypedDict \u306F\u30A4\u30F3\u30B9\u30BF\u30F3\u30B9\u307E\u305F\u306F\u30AF\u30E9\u30B9\u306E\u30C1\u30A7\u30C3\u30AF\u306B\u306F\u4F7F\u7528\u3067\u304D\u307E\u305B\u3093",
23517
23364
  unhashableType: '\u578B "{type}" \u306F\u30CF\u30C3\u30B7\u30E5\u53EF\u80FD\u3067\u306F\u3042\u308A\u307E\u305B\u3093',
@@ -23883,6 +23730,7 @@ var require_package_nls_ko = __commonJS({
23883
23730
  noneNotUsableWithAsync: '"None" \uD615\uC2DD\uC758 \uAC1C\uCCB4\uB294 "async with"\uC640 \uD568\uAED8 \uC0AC\uC6A9\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.',
23884
23731
  noneOperator: '"None"\uC5D0 \uB300\uD574 \uC5F0\uC0B0\uC790 "{operator}"\uC774(\uAC00) \uC9C0\uC6D0\uB418\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.',
23885
23732
  noneUnknownMember: '"{name}"\uC740(\uB294) "None"\uC758 \uC54C\uB824\uC9C4 \uD2B9\uC131\uC774 \uC544\uB2D8',
23733
+ nonlocalTypeParam: 'Nonlocal \uBC14\uC778\uB529\uC740 \uD615\uC2DD \uB9E4\uAC1C\uBCC0\uC218 "{name}"\uC5D0 \uC0AC\uC6A9\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.',
23886
23734
  notRequiredArgCount: '"NotRequired" \uB4A4\uC5D0 \uB2E8\uC77C \uD615\uC2DD \uC778\uC218\uAC00 \uD544\uC694\uD569\uB2C8\uB2E4.',
23887
23735
  notRequiredNotInTypedDict: '\uC774 \uCEE8\uD14D\uC2A4\uD2B8\uC5D0\uC11C\uB294 "NotRequired"\uB97C \uC0AC\uC6A9\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.',
23888
23736
  objectNotCallable: '"{type}" \uD615\uC2DD\uC758 \uAC1C\uCCB4\uB97C \uD638\uCD9C\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.',
@@ -23901,11 +23749,11 @@ var require_package_nls_ko = __commonJS({
23901
23749
  overloadAbstractImplMismatch: "\uC624\uBC84\uB85C\uB4DC\uB294 \uAD6C\uD604\uC758 \uCD94\uC0C1 \uC0C1\uD0DC\uC640 \uC77C\uCE58\uD574\uC57C \uD569\uB2C8\uB2E4.",
23902
23750
  overloadAbstractMismatch: "\uC624\uBC84\uB85C\uB4DC\uB294 \uBAA8\uB450 \uCD94\uC0C1\uC774\uAC70\uB098 \uC544\uB2C8\uC5B4\uC57C \uD569\uB2C8\uB2E4",
23903
23751
  overloadClassMethodInconsistent: '"{name}"\uC758 \uC624\uBC84\uB85C\uB4DC\uAC00 @classmethod\uB97C \uC77C\uAD00\uB418\uC9C0 \uC54A\uAC8C \uC0AC\uC6A9\uD569\uB2C8\uB2E4.',
23904
- overloadFinalImpl: "@final decorator should be applied only to the implementation",
23905
- overloadFinalNoImpl: "Only the first overload should be marked @final",
23752
+ overloadFinalImpl: "@final \uB370\uCF54\uB808\uC774\uD130\uB294 \uAD6C\uD604\uC5D0\uB9CC \uC801\uC6A9\uD574\uC57C \uD569\uB2C8\uB2E4.",
23753
+ overloadFinalNoImpl: "\uCCAB \uBC88\uC9F8 \uC624\uBC84\uB85C\uB4DC\uB9CC @final \uD45C\uC2DC\uD574\uC57C \uD569\uB2C8\uB2E4.",
23906
23754
  overloadImplementationMismatch: "\uC624\uBC84\uB85C\uB4DC\uB41C \uAD6C\uD604\uC774 \uC624\uBC84\uB85C\uB4DC {index}\uC758 \uC2DC\uADF8\uB2C8\uCC98\uC640 \uC77C\uCE58\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.",
23907
- overloadOverrideImpl: "@override decorator should be applied only to the implementation",
23908
- overloadOverrideNoImpl: "Only the first overload should be marked @override",
23755
+ overloadOverrideImpl: "@override \uB370\uCF54\uB808\uC774\uD130\uB294 \uAD6C\uD604\uC5D0\uB9CC \uC801\uC6A9\uD574\uC57C \uD569\uB2C8\uB2E4.",
23756
+ overloadOverrideNoImpl: "\uCCAB \uBC88\uC9F8 \uC624\uBC84\uB85C\uB4DC\uB9CC @override \uD45C\uC2DC\uD574\uC57C \uD569\uB2C8\uB2E4.",
23909
23757
  overloadReturnTypeMismatch: '"{name}"\uC5D0 \uB300\uD55C {prevIndex} \uC624\uBC84\uB85C\uB4DC\uAC00 \uC624\uBC84\uB85C\uB4DC {newIndex}\uACFC(\uC640) \uACB9\uCE58\uACE0 \uD638\uD658\uB418\uC9C0 \uC54A\uB294 \uD615\uC2DD\uC744 \uBC18\uD658\uD569\uB2C8\uB2E4.',
23910
23758
  overloadStaticMethodInconsistent: '"{name}"\uC758 \uC624\uBC84\uB85C\uB4DC\uAC00 @staticmethod\uB97C \uC77C\uAD00\uB418\uC9C0 \uC54A\uAC8C \uC0AC\uC6A9\uD569\uB2C8\uB2E4.',
23911
23759
  overloadWithoutImplementation: "\u201C{name}\u201C\uC774(\uAC00) overload\uB85C \uD45C\uC2DC\uB418\uC5B4 \uC788\uC9C0\uB9CC \uAD6C\uD604\uC774 \uC81C\uACF5\uB418\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4.",
@@ -24101,14 +23949,14 @@ var require_package_nls_ko = __commonJS({
24101
23949
  typedDictBadVar: "TypedDict \uD074\uB798\uC2A4\uB294 \uD615\uC2DD \uC8FC\uC11D\uB9CC \uD3EC\uD568\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.",
24102
23950
  typedDictBaseClass: "TypedDict \uD074\uB798\uC2A4\uC758 \uBAA8\uB4E0 \uAE30\uBCF8 \uD074\uB798\uC2A4\uB3C4 TypedDict \uD074\uB798\uC2A4\uC5EC\uC57C \uD569\uB2C8\uB2E4.",
24103
23951
  typedDictBoolParam: '"{name}" \uB9E4\uAC1C \uBCC0\uC218\uC5D0 True \uB610\uB294 False \uAC12\uC774 \uC788\uC5B4\uC57C \uD569\uB2C8\uB2E4.',
24104
- typedDictClosedExtras: '\uAE30\uBCF8 \uD074\uB798\uC2A4 "{name}"\uC740(\uB294) closed TypedDict\uC785\uB2C8\uB2E4. \uCD94\uAC00 \uD56D\uBAA9\uC740 "{type}" \uD615\uC2DD\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4.',
23952
+ typedDictClosedExtras: '\uAE30\uBCF8 \uD074\uB798\uC2A4 "{name}" \uCD94\uAC00 \uD56D\uBAA9\uC758 \uC720\uD615\uC744 "{type}" \uD615\uC2DD\uC73C\uB85C \uC81C\uD55C\uD558\uB294 TypedDict.',
24105
23953
  typedDictClosedNoExtras: '\uAE30\uBCF8 \uD074\uB798\uC2A4 "{name}"\uC740(\uB294) closed TypedDict\uC785\uB2C8\uB2E4. \uCD94\uAC00 \uD56D\uBAA9\uC740 \uD5C8\uC6A9\uB418\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.',
24106
23954
  typedDictDelete: "TypedDict\uC5D0\uC11C \uD56D\uBAA9\uC744 \uC0AD\uC81C\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",
24107
23955
  typedDictEmptyName: "TypedDict \uB0B4\uC758 \uC774\uB984\uC740 \uBE44\uC6CC \uB458 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",
24108
23956
  typedDictEntryName: "\uC0AC\uC804 \uD56D\uBAA9 \uC774\uB984\uC5D0 \uD544\uC694\uD55C \uBB38\uC790\uC5F4 \uB9AC\uD130\uB7F4",
24109
23957
  typedDictEntryUnique: "\uC0AC\uC804 \uB0B4\uC758 \uC774\uB984\uC740 \uACE0\uC720\uD574\uC57C \uD569\uB2C8\uB2E4.",
24110
23958
  typedDictExtraArgs: "\uCD94\uAC00 TypedDict \uC778\uC218\uAC00 \uC9C0\uC6D0\uB418\uC9C0 \uC54A\uC74C",
24111
- typedDictExtraItemsClosed: "\uCD94\uAC00 \uD56D\uBAA9\uC744 \uC9C0\uC6D0\uD558\uB294 \uACBD\uC6B0 TypedDict\uB97C closed \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",
23959
+ typedDictExtraItemsClosed: 'TypedDict "closed" \uB610\uB294 "extra_items" \uC911 \uD558\uB098\uB9CC \uC0AC\uC6A9\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.',
24112
23960
  typedDictFieldNotRequiredRedefinition: 'TypedDict \uD56D\uBAA9 "{name}"\uC740(\uB294) NotRequired\uB85C \uC7AC\uC815\uC758\uB420 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.',
24113
23961
  typedDictFieldReadOnlyRedefinition: 'TypedDict \uD56D\uBAA9 "{name}"\uC740(\uB294) ReadOnly\uB85C \uC7AC\uC815\uC758\uB420 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.',
24114
23962
  typedDictFieldRequiredRedefinition: 'TypedDict \uD56D\uBAA9 "{name}"\uC740(\uB294) Required\uB85C \uC7AC\uC815\uC758\uB420 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.',
@@ -24350,7 +24198,6 @@ var require_package_nls_ko = __commonJS({
24350
24198
  typedDictFieldRequired: '"{type}"\uC5D0 "{name}"\uC774(\uAC00) \uD544\uC694\uD569\uB2C8\uB2E4.',
24351
24199
  typedDictFieldTypeMismatch: '"{type}" \uD615\uC2DD\uC740 "{name}" \uD56D\uBAA9\uC5D0 \uD560\uB2F9\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.',
24352
24200
  typedDictFieldUndefined: '"{name}"\uC740(\uB294) "{type}" \uD615\uC2DD\uC758 \uC815\uC758\uB418\uC9C0 \uC54A\uC740 \uD56D\uBAA9\uC785\uB2C8\uB2E4.',
24353
- typedDictFinalMismatch: '@final \uBD88\uC77C\uCE58\uB85C \uC778\uD574 "{sourceType}"\uC774(\uAC00) "{destType}"\uACFC(\uC640) \uD638\uD658\uB418\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.',
24354
24201
  typedDictKeyAccess: 'TypedDict\uC5D0\uC11C \uD56D\uBAA9\uC744 \uCC38\uC870\uD558\uB824\uBA74 ["{name}"]\uC744(\uB97C) \uC0AC\uC6A9\uD558\uC138\uC694.',
24355
24202
  typedDictNotAllowed: "TypedDict\uB294 \uC778\uC2A4\uD134\uC2A4 \uB610\uB294 \uD074\uB798\uC2A4 \uAC80\uC0AC\uC5D0 \uC0AC\uC6A9\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",
24356
24203
  unhashableType: "\u2018{type}\u2019 \uD615\uC2DD\uC744 \uD574\uC2DC\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",
@@ -24722,6 +24569,7 @@ var require_package_nls_pl = __commonJS({
24722
24569
  noneNotUsableWithAsync: "Obiekt typu \u201ENone\u201D nie mo\u017Ce by\u0107 u\u017Cywany z parametrem \u201Easync with\u201D",
24723
24570
  noneOperator: "Operator \u201E{operator}\u201D nie jest obs\u0142ugiwany dla warto\u015Bci \u201ENone\u201D",
24724
24571
  noneUnknownMember: "Nazwa \u201E{name}\u201D nie jest znanym atrybutem \u201ENone\u201D",
24572
+ nonlocalTypeParam: "Powi\u0105zanie nonlocal nie jest dozwolone dla parametru typu \u201E{name}\u201D",
24725
24573
  notRequiredArgCount: "Oczekiwano jednego argumentu typu po warto\u015Bci \u201ENotRequired\u201D",
24726
24574
  notRequiredNotInTypedDict: "Element \u201ENotRequired\u201D jest niedozwolony w tym kontek\u015Bcie",
24727
24575
  objectNotCallable: "Obiekt typu \u201E{type}\u201D nie jest wywo\u0142ywalny",
@@ -24740,11 +24588,11 @@ var require_package_nls_pl = __commonJS({
24740
24588
  overloadAbstractImplMismatch: "Przeci\u0105\u017Cenia musz\u0105 by\u0107 zgodne ze stanem abstrakcyjnym implementacji",
24741
24589
  overloadAbstractMismatch: "Przeci\u0105\u017Cenia musz\u0105 by\u0107 abstrakcyjne lub nieabstrakcyjne",
24742
24590
  overloadClassMethodInconsistent: "Przeci\u0105\u017Cenia dla nazwy \u201E{name}\u201D u\u017Cywaj\u0105 metody @classmethod niekonsekwentnie",
24743
- overloadFinalImpl: "@final decorator should be applied only to the implementation",
24744
- overloadFinalNoImpl: "Only the first overload should be marked @final",
24591
+ overloadFinalImpl: "@final dekorator powinien by\u0107 stosowany tylko do implementacji",
24592
+ overloadFinalNoImpl: "Tylko pierwsze przeci\u0105\u017Cenie powinno by\u0107 oznaczone @final",
24745
24593
  overloadImplementationMismatch: "Przeci\u0105\u017Cone wdro\u017Cenie jest niesp\xF3jne z sygnatur\u0105 przeci\u0105\u017Cenia {index}",
24746
- overloadOverrideImpl: "@override decorator should be applied only to the implementation",
24747
- overloadOverrideNoImpl: "Only the first overload should be marked @override",
24594
+ overloadOverrideImpl: "@override dekorator powinien by\u0107 stosowany tylko do implementacji",
24595
+ overloadOverrideNoImpl: "Tylko pierwsze przeci\u0105\u017Cenie powinno by\u0107 oznaczone @override",
24748
24596
  overloadReturnTypeMismatch: "Przeci\u0105\u017Cenie {prevIndex} dla nazwy \u201E{name}\u201D nak\u0142ada si\u0119 na przeci\u0105\u017Cenie {newIndex} i zwraca niezgodny typ",
24749
24597
  overloadStaticMethodInconsistent: "Przeci\u0105\u017Cenia dla nazwy \u201E{name}\u201D u\u017Cywaj\u0105 metody @staticmethod niekonsekwentnie",
24750
24598
  overloadWithoutImplementation: "Nazwa \u201E{name}\u201D jest oznaczona jako overload, ale nie zapewniono implementacji",
@@ -24940,14 +24788,14 @@ var require_package_nls_pl = __commonJS({
24940
24788
  typedDictBadVar: "Klasy TypedDict mog\u0105 zawiera\u0107 tylko adnotacje typu",
24941
24789
  typedDictBaseClass: "Wszystkie klasy bazowe dla klas TypedDict musz\u0105 by\u0107 r\xF3wnie\u017C klasami TypedDict",
24942
24790
  typedDictBoolParam: "Oczekiwano, \u017Ce parametr \u201E{name}\u201D b\u0119dzie mia\u0142 warto\u015B\u0107 True lub False",
24943
- typedDictClosedExtras: "Klasa bazowa \u201E{name}\u201D jest closed TypedDict; dodatkowe elementy musz\u0105 by\u0107 typu \u201E{type}\u201D",
24791
+ typedDictClosedExtras: '"{name}" klasy bazowej to TypedDict ograniczaj\u0105ca typ dodatkowych element\xF3w do typu "{type}"',
24944
24792
  typedDictClosedNoExtras: "Klasa bazowa \u201E{name}\u201D jest closed TypedDict; dodatkowe elementy s\u0105 niedozwolone",
24945
24793
  typedDictDelete: "Nie mo\u017Cna usun\u0105\u0107 elementu w typie TypedDict",
24946
24794
  typedDictEmptyName: "Nazwy w elemencie TypedDict nie mog\u0105 by\u0107 puste",
24947
24795
  typedDictEntryName: "Oczekiwano litera\u0142u ci\u0105gu dla nazwy wpisu s\u0142ownika",
24948
24796
  typedDictEntryUnique: "Nazwy w s\u0142owniku musz\u0105 by\u0107 unikatowe",
24949
24797
  typedDictExtraArgs: "Dodatkowe argumenty TypedDict nie s\u0105 obs\u0142ugiwane",
24950
- typedDictExtraItemsClosed: "Element TypedDict nie mo\u017Ce by\u0107 \u201Eclosed\u201D, je\u015Bli obs\u0142uguje dodatkowe elementy",
24798
+ typedDictExtraItemsClosed: 'TypedDict mog\u0105 u\u017Cywa\u0107 "closed" lub "extra_items", ale nie obu',
24951
24799
  typedDictFieldNotRequiredRedefinition: "Element TypedDict \u201E{name}\u201D nie mo\u017Ce zosta\u0107 przedefiniowany jako NotRequired",
24952
24800
  typedDictFieldReadOnlyRedefinition: "Element TypedDict \u201E{name}\u201D nie mo\u017Ce by\u0107 przedefiniowany jako ReadOnly.",
24953
24801
  typedDictFieldRequiredRedefinition: "Element TypedDict \u201E{name}\u201D nie mo\u017Ce zosta\u0107 przedefiniowany jako Required",
@@ -25189,7 +25037,6 @@ var require_package_nls_pl = __commonJS({
25189
25037
  typedDictFieldRequired: "Nazwa \u201E{name}\u201D jest wymagana w typie \u201E{type}\u201D",
25190
25038
  typedDictFieldTypeMismatch: "Nie mo\u017Cna przypisa\u0107 typu \u201E{type}\u201D do elementu \u201E{name}\u201D",
25191
25039
  typedDictFieldUndefined: "Nazwa \u201E{name}\u201D jest niezdefiniowanym elementem w typie \u201E{type}\u201D",
25192
- typedDictFinalMismatch: "Typ \u201E{sourceType}\u201D jest niezgodny z typem \u201E{destType}\u201D z powodu niezgodno\u015Bci @final",
25193
25040
  typedDictKeyAccess: 'U\u017Cyj elementu ["{name}"], aby odwo\u0142a\u0107 si\u0119 do elementu w TypedDict',
25194
25041
  typedDictNotAllowed: "Funkcja TypedDict nie mo\u017Ce by\u0107 u\u017Cywana do sprawdzania wyst\u0105pie\u0144 lub klas",
25195
25042
  unhashableType: "Typ \u201E{type}\u201D nie jest warto\u015Bci\u0105 skr\xF3tu",
@@ -25561,6 +25408,7 @@ var require_package_nls_pt_br = __commonJS({
25561
25408
  noneNotUsableWithAsync: 'Objeto do\xA0tipo "None" n\xE3o pode ser usado com "async with"',
25562
25409
  noneOperator: 'Operador "{operator}" incompat\xEDvel com "None"',
25563
25410
  noneUnknownMember: '"{name}" n\xE3o \xE9 um atributo conhecido de "None"',
25411
+ nonlocalTypeParam: 'Associa\xE7\xE3o nonlocal n\xE3o\xA0\xE9 permitida para o par\xE2metro de tipo "{name}"',
25564
25412
  notRequiredArgCount: 'Argumento de tipo \xFAnico esperado ap\xF3s "NotRequired"',
25565
25413
  notRequiredNotInTypedDict: '"NotRequired" n\xE3o \xE9 permitido neste contexto',
25566
25414
  objectNotCallable: 'O objeto do tipo "{type}" n\xE3o pode ser chamado',
@@ -25579,11 +25427,11 @@ var require_package_nls_pt_br = __commonJS({
25579
25427
  overloadAbstractImplMismatch: "As sobrecargas devem corresponder ao status abstrato da implementa\xE7\xE3o",
25580
25428
  overloadAbstractMismatch: "As sobrecargas devem ser abstratas ou n\xE3o",
25581
25429
  overloadClassMethodInconsistent: 'Sobrecargas para "{name}" usam @classmethod inconsistentemente',
25582
- overloadFinalImpl: "@final decorator should be applied only to the implementation",
25583
- overloadFinalNoImpl: "Only the first overload should be marked @final",
25430
+ overloadFinalImpl: "@final decorador deve ser aplicado somente \xE0 implementa\xE7\xE3o",
25431
+ overloadFinalNoImpl: "Somente a primeira sobrecarga deve ser marcada como @final",
25584
25432
  overloadImplementationMismatch: "A implementa\xE7\xE3o sobrecarregada n\xE3o \xE9 consistente com a assinatura da sobrecarga {index}",
25585
- overloadOverrideImpl: "@override decorator should be applied only to the implementation",
25586
- overloadOverrideNoImpl: "Only the first overload should be marked @override",
25433
+ overloadOverrideImpl: "@override decorador deve ser aplicado somente \xE0 implementa\xE7\xE3o",
25434
+ overloadOverrideNoImpl: "Somente a primeira sobrecarga deve ser marcada como @override",
25587
25435
  overloadReturnTypeMismatch: 'A sobrecarga {prevIndex} para "{name}" sobrep\xF5e a sobrecarga {newIndex} e retorna um tipo incompat\xEDvel',
25588
25436
  overloadStaticMethodInconsistent: 'Sobrecargas para "{name}" usam @staticmethod inconsistentemente',
25589
25437
  overloadWithoutImplementation: '"{name}" est\xE1 marcado como overload, mas nenhuma implementa\xE7\xE3o foi fornecida',
@@ -25779,14 +25627,14 @@ var require_package_nls_pt_br = __commonJS({
25779
25627
  typedDictBadVar: "As classes TypedDict podem conter apenas anota\xE7\xF5es de tipo",
25780
25628
  typedDictBaseClass: "Todas as classes base para classes TypedDict tamb\xE9m devem ser classes TypedDict",
25781
25629
  typedDictBoolParam: 'Esperava-se que o par\xE2metro "{name}" tivesse um valor True ou False',
25782
- typedDictClosedExtras: 'A classe base "{name}" \xE9 um TypedDict closed; itens extras devem ser do tipo "{type}"',
25630
+ typedDictClosedExtras: 'A classe "{name}" \xE9 um TypedDict que limita o tipo de itens extras a serem digitados "{type}"',
25783
25631
  typedDictClosedNoExtras: 'A classe base "{name}" \xE9 um TypedDict closed; itens extras n\xE3o s\xE3o permitidos',
25784
25632
  typedDictDelete: "N\xE3o foi poss\xEDvel excluir o item em TypedDict",
25785
25633
  typedDictEmptyName: "Os nomes dentro de um TypedDict n\xE3o podem estar vazios",
25786
25634
  typedDictEntryName: "Literal de cadeia de caracteres esperado para o nome da entrada do dicion\xE1rio",
25787
25635
  typedDictEntryUnique: "Os nomes dentro de um dicion\xE1rio devem ser exclusivos",
25788
25636
  typedDictExtraArgs: "Argumentos TypedDict extras s\xE3o incompat\xEDveis",
25789
- typedDictExtraItemsClosed: "Um TypedDict n\xE3o pode ser closed se\xA0der suporte a itens extras",
25637
+ typedDictExtraItemsClosed: 'TypedDict pode usar "closed" ou "extra_items" mas n\xE3o ambos',
25790
25638
  typedDictFieldNotRequiredRedefinition: 'O item TypedDict "{name}" n\xE3o pode ser redefinido como NotRequired',
25791
25639
  typedDictFieldReadOnlyRedefinition: 'O item TypedDict "{name}" n\xE3o pode ser redefinido como ReadOnly',
25792
25640
  typedDictFieldRequiredRedefinition: 'O item TypedDict "{name}" n\xE3o pode ser redefinido como Required',
@@ -26028,7 +25876,6 @@ var require_package_nls_pt_br = __commonJS({
26028
25876
  typedDictFieldRequired: '"{name}" \xE9 necess\xE1rio em "{type}"',
26029
25877
  typedDictFieldTypeMismatch: 'O tipo "{type}" n\xE3o \xE9 atribu\xEDvel ao item "{name}"',
26030
25878
  typedDictFieldUndefined: '"{name}" \xE9 um item indefinido no tipo "{type}"',
26031
- typedDictFinalMismatch: '"{sourceType}" \xE9 incompat\xEDvel com "{destType}" devido a uma @final incompat\xEDvel',
26032
25879
  typedDictKeyAccess: 'Usar ["{name}"] para fazer refer\xEAncia ao item em TypedDict',
26033
25880
  typedDictNotAllowed: "TypedDict n\xE3o pode ser usado para verifica\xE7\xF5es de inst\xE2ncia ou de classe",
26034
25881
  unhashableType: 'O tipo "{type}" n\xE3o \xE9 pode fazer hash',
@@ -26400,6 +26247,7 @@ var require_package_nls_qps_ploc = __commonJS({
26400
26247
  noneNotUsableWithAsync: '[2p5GE][\u0E19\u0E31\u0E49\xD8\xFEj\xEB\xE7t \xF8f t\xFFp\xEB "\xD1\xF8\xF1\xEB" \xE7\xE6\xF1\xF1\xF8t \xFE\xEB \xB5s\xEB\xF0 w\xEFth "\xE6s\xFF\xF1\xE7 w\xEFth"\u1EA4\u011F\u502A\u0130\u0402\u04B0\u0915\u094D\u0930\u094D\u0924\u093F\u0943\u307E\u1EA4\u011F\u502A\u0130\u0402\u04B0\u0915\u094D\u0E19\u0E31\u0E49\u0922\u0942\u0901]',
26401
26248
  noneOperator: '[3U0d3][\u0E19\u0E31\u0E49\xD8p\xEBr\xE6t\xF8r "{\xF8p\xEBr\xE6t\xF8r}" \xF1\xF8t s\xB5pp\xF8rt\xEB\xF0 f\xF8r "None"\u1EA4\u011F\u502A\u0130\u0402\u04B0\u0915\u094D\u0930\u094D\u0924\u093F\u0943\u307E\u1EA4\u011F\u502A\u0130\u0E19\u0E31\u0E49\u0922\u0942\u0901]',
26402
26249
  noneUnknownMember: '[4KvEX][\u0E19\u0E31\u0E49"{\xF1\xE6m\xEB}" \xEFs \xF1\xF8t \xE6 k\xF1\xF8w\xF1 \xE6ttr\xEF\xFE\xB5t\xEB \xF8f "None"\u1EA4\u011F\u502A\u0130\u0402\u04B0\u0915\u094D\u0930\u094D\u0924\u093F\u0943\u307E\u1EA4\u011F\u502A\u0E19\u0E31\u0E49\u0922\u0942\u0901]',
26250
+ nonlocalTypeParam: '[S78yW][\u0E19\u0E31\u0E49Nonlocal \xFE\xEF\xF1\xF0\xEF\xF1g \xEFs \xF1\xF8t \xE6ll\xF8w\xEB\xF0 f\xF8r t\xFFp\xEB p\xE6r\xE6m\xEBt\xEBr "{\xF1\xE6m\xEB}"\u1EA4\u011F\u502A\u0130\u0402\u04B0\u0915\u094D\u0930\u094D\u0924\u093F\u0943\u307E\u1EA4\u011F\u502A\u0130\u0402\u04B0\u0915\u094D\u0930\u094D\u0E19\u0E31\u0E49\u0922\u0942\u0901]',
26403
26251
  notRequiredArgCount: '[uOeAb][\u0E19\u0E31\u0E49\xCBxp\xEB\xE7t\xEB\xF0 \xE6 s\xEF\xF1gl\xEB t\xFFp\xEB \xE6rg\xB5m\xEB\xF1t \xE6ft\xEBr "NotRequired"\u1EA4\u011F\u502A\u0130\u0402\u04B0\u0915\u094D\u0930\u094D\u0924\u093F\u0943\u307E\u1EA4\u011F\u502A\u0130\u0402\u04B0\u0E19\u0E31\u0E49\u0922\u0942\u0901]',
26404
26252
  notRequiredNotInTypedDict: '[Vl6XL][\u0E19\u0E31\u0E49"NotRequired" \xEFs \xF1\xF8t \xE6ll\xF8w\xEB\xF0 \xEF\xF1 th\xEFs \xE7\xF8\xF1t\xEBxt\u1EA4\u011F\u502A\u0130\u0402\u04B0\u0915\u094D\u0930\u094D\u0924\u093F\u0943\u307E\u1EA4\u011F\u502A\u0130\u0E19\u0E31\u0E49\u0922\u0942\u0901]',
26405
26253
  objectNotCallable: '[bzlKk][\u0E19\u0E31\u0E49\xD8\xFEj\xEB\xE7t \xF8f t\xFFp\xEB "{t\xFFp\xEB}" \xEFs \xF1\xF8t \xE7\xE6ll\xE6\xFEl\xEB\u1EA4\u011F\u502A\u0130\u0402\u04B0\u0915\u094D\u0930\u094D\u0924\u093F\u0943\u307E\u1EA4\u011F\u0E19\u0E31\u0E49\u0922\u0942\u0901]',
@@ -26618,14 +26466,14 @@ var require_package_nls_qps_ploc = __commonJS({
26618
26466
  typedDictBadVar: "[OL8Ox][\u0E19\u0E31\u0E49TypedDict \xE7l\xE6ss\xEBs \xE7\xE6\xF1 \xE7\xF8\xF1t\xE6\xEF\xF1 \xF8\xF1l\xFF t\xFFp\xEB \xE6\xF1\xF1\xF8t\xE6t\xEF\xF8\xF1s\u1EA4\u011F\u502A\u0130\u0402\u04B0\u0915\u094D\u0930\u094D\u0924\u093F\u0943\u307E\u1EA4\u011F\u502A\u0130\u0402\u04B0\u0E19\u0E31\u0E49\u0922\u0942\u0901]",
26619
26467
  typedDictBaseClass: "[HxyA2][\u0E19\u0E31\u0E49\xC6ll \xFE\xE6s\xEB \xE7l\xE6ss\xEBs f\xF8r TypedDict \xE7l\xE6ss\xEBs m\xB5st \xE6ls\xF8 \xFE\xEB TypedDict \xE7l\xE6ss\xEBs\u1EA4\u011F\u502A\u0130\u0402\u04B0\u0915\u094D\u0930\u094D\u0924\u093F\u0943\u307E\u1EA4\u011F\u502A\u0130\u0402\u04B0\u0915\u094D\u0930\u094D\u0924\u093F\u0943\u307E\u0E19\u0E31\u0E49\u0922\u0942\u0901]",
26620
26468
  typedDictBoolParam: '[GALOD][\u0E19\u0E31\u0E49\xCBxp\xEB\xE7t\xEB\xF0 "{\xF1\xE6m\xEB}" p\xE6r\xE6m\xEBt\xEBr t\xF8 h\xE6v\xEB \xE6 v\xE6l\xB5\xEB \xF8f True \xF8r False\u1EA4\u011F\u502A\u0130\u0402\u04B0\u0915\u094D\u0930\u094D\u0924\u093F\u0943\u307E\u1EA4\u011F\u502A\u0130\u0402\u04B0\u0915\u094D\u0930\u094D\u0E19\u0E31\u0E49\u0922\u0942\u0901]',
26621
- typedDictClosedExtras: '[mlkJO][\u0E19\u0E31\u0E49\xDF\xE6s\xEB \xE7l\xE6ss "{\xF1\xE6m\xEB}" \xEFs \xE6 closed TypedDict; \xEBxtr\xE6 \xEFt\xEBms m\xB5st \xFE\xEB t\xFFp\xEB "{t\xFFp\xEB}"\u1EA4\u011F\u502A\u0130\u0402\u04B0\u0915\u094D\u0930\u094D\u0924\u093F\u0943\u307E\u1EA4\u011F\u502A\u0130\u0402\u04B0\u0915\u094D\u0930\u094D\u0924\u093F\u0943\u307E\u1EA4\u011F\u0E19\u0E31\u0E49\u0922\u0942\u0901]',
26469
+ typedDictClosedExtras: '[mlkJO][\u0E19\u0E31\u0E49\xDF\xE6s\xEB \xE7l\xE6ss "{\xF1\xE6m\xEB}" \xEFs \xE6 TypedDict th\xE6t l\xEFm\xEFts th\xEB t\xFFp\xEB \xF8f \xEBxtr\xE6 \xEFt\xEBms t\xF8 t\xFFp\xEB "{t\xFFp\xEB}"\u1EA4\u011F\u502A\u0130\u0402\u04B0\u0915\u094D\u0930\u094D\u0924\u093F\u0943\u307E\u1EA4\u011F\u502A\u0130\u0402\u04B0\u0915\u094D\u0930\u094D\u0924\u093F\u0943\u307E\u1EA4\u011F\u502A\u0130\u0402\u04B0\u0915\u094D\u0E19\u0E31\u0E49\u0922\u0942\u0901]',
26622
26470
  typedDictClosedNoExtras: '[BCyXd][\u0E19\u0E31\u0E49\xDF\xE6s\xEB \xE7l\xE6ss "{\xF1\xE6m\xEB}" \xEFs \xE6 closed TypedDict; \xEBxtr\xE6 \xEFt\xEBms \xE6r\xEB \xF1\xF8t \xE6ll\xF8w\xEB\xF0\u1EA4\u011F\u502A\u0130\u0402\u04B0\u0915\u094D\u0930\u094D\u0924\u093F\u0943\u307E\u1EA4\u011F\u502A\u0130\u0402\u04B0\u0915\u094D\u0930\u094D\u0924\u093F\u0943\u307E\u0E19\u0E31\u0E49\u0922\u0942\u0901]',
26623
26471
  typedDictDelete: "[bdBu7][\u0E19\u0E31\u0E49\xC7\xF8\xB5l\xF0 \xF1\xF8t \xF0\xEBl\xEBt\xEB \xEFt\xEBm \xEF\xF1 TypedDict\u1EA4\u011F\u502A\u0130\u0402\u04B0\u0915\u094D\u0930\u094D\u0924\u093F\u0943\u307E\u0E19\u0E31\u0E49\u0922\u0942\u0901]",
26624
26472
  typedDictEmptyName: "[h45e7][\u0E19\u0E31\u0E49\xD1\xE6m\xEBs w\xEFth\xEF\xF1 \xE6 TypedDict \xE7\xE6\xF1\xF1\xF8t \xFE\xEB \xEBmpt\xFF\u1EA4\u011F\u502A\u0130\u0402\u04B0\u0915\u094D\u0930\u094D\u0924\u093F\u0943\u307E\u1EA4\u011F\u0E19\u0E31\u0E49\u0922\u0942\u0901]",
26625
26473
  typedDictEntryName: "[NT4np][\u0E19\u0E31\u0E49\xCBxp\xEB\xE7t\xEB\xF0 str\xEF\xF1g l\xEFt\xEBr\xE6l f\xF8r \xF0\xEF\xE7t\xEF\xF8\xF1\xE6r\xFF \xEB\xF1tr\xFF \xF1\xE6m\xEB\u1EA4\u011F\u502A\u0130\u0402\u04B0\u0915\u094D\u0930\u094D\u0924\u093F\u0943\u307E\u1EA4\u011F\u502A\u0130\u0402\u04B0\u0E19\u0E31\u0E49\u0922\u0942\u0901]",
26626
26474
  typedDictEntryUnique: "[nWy0L][\u0E19\u0E31\u0E49\xD1\xE6m\xEBs w\xEFth\xEF\xF1 \xE6 \xF0\xEF\xE7t\xEF\xF8\xF1\xE6r\xFF m\xB5st \xFE\xEB \xB5\xF1\xEFq\xB5\xEB\u1EA4\u011F\u502A\u0130\u0402\u04B0\u0915\u094D\u0930\u094D\u0924\u093F\u0943\u307E\u1EA4\u011F\u0E19\u0E31\u0E49\u0922\u0942\u0901]",
26627
26475
  typedDictExtraArgs: "[0gX32][\u0E19\u0E31\u0E49\xCBxtr\xE6 TypedDict \xE6rg\xB5m\xEB\xF1ts \xF1\xF8t s\xB5pp\xF8rt\xEB\xF0\u1EA4\u011F\u502A\u0130\u0402\u04B0\u0915\u094D\u0930\u094D\u0924\u093F\u0943\u307E\u1EA4\u011F\u0E19\u0E31\u0E49\u0922\u0942\u0901]",
26628
- typedDictExtraItemsClosed: "[5BDXE][\u0E19\u0E31\u0E49\xC6 TypedDict \xE7\xE6\xF1\xF1\xF8t \xFE\xEB closed \xEFf \xEFt s\xB5pp\xF8rts \xEBxtr\xE6 \xEFt\xEBms\u1EA4\u011F\u502A\u0130\u0402\u04B0\u0915\u094D\u0930\u094D\u0924\u093F\u0943\u307E\u1EA4\u011F\u502A\u0130\u0402\u04B0\u0915\u094D\u0E19\u0E31\u0E49\u0922\u0942\u0901]",
26476
+ typedDictExtraItemsClosed: '[5BDXE][\u0E19\u0E31\u0E49TypedDict \xE7\xE6\xF1 \xB5s\xEB \xEB\xEFth\xEBr "closed" \xF8r "extra_items" \xFE\xB5t \xF1\xF8t \xFE\xF8th\u1EA4\u011F\u502A\u0130\u0402\u04B0\u0915\u094D\u0930\u094D\u0924\u093F\u0943\u307E\u1EA4\u011F\u502A\u0130\u0402\u04B0\u0915\u094D\u0930\u094D\u0924\u093F\u0943\u0E19\u0E31\u0E49\u0922\u0942\u0901]',
26629
26477
  typedDictFieldNotRequiredRedefinition: '[rNYD1][\u0E19\u0E31\u0E49TypedDict \xEFt\xEBm "{\xF1\xE6m\xEB}" \xE7\xE6\xF1\xF1\xF8t \xFE\xEB r\xEB\xF0\xEBf\xEF\xF1\xEB\xF0 \xE6s NotRequired\u1EA4\u011F\u502A\u0130\u0402\u04B0\u0915\u094D\u0930\u094D\u0924\u093F\u0943\u307E\u1EA4\u011F\u502A\u0130\u0402\u04B0\u0915\u094D\u0930\u094D\u0E19\u0E31\u0E49\u0922\u0942\u0901]',
26630
26478
  typedDictFieldReadOnlyRedefinition: '[8IFAz][\u0E19\u0E31\u0E49TypedDict \xEFt\xEBm "{\xF1\xE6m\xEB}" \xE7\xE6\xF1\xF1\xF8t \xFE\xEB r\xEB\xF0\xEBf\xEF\xF1\xEB\xF0 \xE6s ReadOnly\u1EA4\u011F\u502A\u0130\u0402\u04B0\u0915\u094D\u0930\u094D\u0924\u093F\u0943\u307E\u1EA4\u011F\u502A\u0130\u0402\u04B0\u0915\u094D\u0E19\u0E31\u0E49\u0922\u0942\u0901]',
26631
26479
  typedDictFieldRequiredRedefinition: '[lpw97][\u0E19\u0E31\u0E49TypedDict \xEFt\xEBm "{\xF1\xE6m\xEB}" \xE7\xE6\xF1\xF1\xF8t \xFE\xEB r\xEB\xF0\xEBf\xEF\xF1\xEB\xF0 \xE6s Required\u1EA4\u011F\u502A\u0130\u0402\u04B0\u0915\u094D\u0930\u094D\u0924\u093F\u0943\u307E\u1EA4\u011F\u502A\u0130\u0402\u04B0\u0915\u094D\u0E19\u0E31\u0E49\u0922\u0942\u0901]',
@@ -26867,7 +26715,6 @@ var require_package_nls_qps_ploc = __commonJS({
26867
26715
  typedDictFieldRequired: '[ckyH4][\u0E19\u0E31\u0E49"{\xF1\xE6m\xEB}" \xEFs r\xEBq\xB5\xEFr\xEB\xF0 \xEF\xF1 "{t\xFFp\xEB}"\u1EA4\u011F\u502A\u0130\u0402\u04B0\u0915\u094D\u0930\u094D\u0924\u093F\u0943\u0E19\u0E31\u0E49\u0922\u0942\u0901]',
26868
26716
  typedDictFieldTypeMismatch: '[XYIBH][\u0E19\u0E31\u0E49T\xFFp\xEB "{t\xFFp\xEB}" \xEFs \xF1\xF8t \xE6ss\xEFg\xF1\xE6\xFEl\xEB t\xF8 \xEFt\xEBm "{\xF1\xE6m\xEB}"\u1EA4\u011F\u502A\u0130\u0402\u04B0\u0915\u094D\u0930\u094D\u0924\u093F\u0943\u307E\u1EA4\u011F\u502A\u0130\u0402\u0E19\u0E31\u0E49\u0922\u0942\u0901]',
26869
26717
  typedDictFieldUndefined: '[UsDC9][\u0E19\u0E31\u0E49"{\xF1\xE6m\xEB}" \xEFs \xE6\xF1 \xB5\xF1\xF0\xEBf\xEF\xF1\xEB\xF0 \xEFt\xEBm \xEF\xF1 t\xFFp\xEB "{t\xFFp\xEB}"\u1EA4\u011F\u502A\u0130\u0402\u04B0\u0915\u094D\u0930\u094D\u0924\u093F\u0943\u307E\u1EA4\u011F\u502A\u0130\u0E19\u0E31\u0E49\u0922\u0942\u0901]',
26870
- typedDictFinalMismatch: '[tFb04][\u0E19\u0E31\u0E49"{s\xF8\xB5r\xE7\xEBT\xFFp\xEB}" \xEFs \xEF\xF1\xE7\xF8mp\xE6t\xEF\xFEl\xEB w\xEFth "{\xF0\xEBstT\xFFp\xEB}" \xFE\xEB\xE7\xE6\xB5s\xEB \xF8f \xE6 @final m\xEFsm\xE6t\xE7h\u1EA4\u011F\u502A\u0130\u0402\u04B0\u0915\u094D\u0930\u094D\u0924\u093F\u0943\u307E\u1EA4\u011F\u502A\u0130\u0402\u04B0\u0915\u094D\u0930\u094D\u0924\u093F\u0943\u307E\u1EA4\u011F\u502A\u0E19\u0E31\u0E49\u0922\u0942\u0901]',
26871
26718
  typedDictKeyAccess: '[67DLq][\u0E19\u0E31\u0E49\xDCs\xEB ["{\xF1\xE6m\xEB}"] t\xF8 r\xEBf\xEBr\xEB\xF1\xE7\xEB \xEFt\xEBm \xEF\xF1 TypedDict\u1EA4\u011F\u502A\u0130\u0402\u04B0\u0915\u094D\u0930\u094D\u0924\u093F\u0943\u307E\u1EA4\u011F\u502A\u0130\u0E19\u0E31\u0E49\u0922\u0942\u0901]',
26872
26719
  typedDictNotAllowed: "[eTsPP][\u0E19\u0E31\u0E49TypedDict \xE7\xE6\xF1\xF1\xF8t \xFE\xEB \xB5s\xEB\xF0 f\xF8r \xEF\xF1st\xE6\xF1\xE7\xEB \xF8r \xE7l\xE6ss \xE7h\xEB\xE7ks\u1EA4\u011F\u502A\u0130\u0402\u04B0\u0915\u094D\u0930\u094D\u0924\u093F\u0943\u307E\u1EA4\u011F\u502A\u0130\u0402\u04B0\u0915\u094D\u0E19\u0E31\u0E49\u0922\u0942\u0901]",
26873
26720
  unhashableType: '[IJEeq][\u0E19\u0E31\u0E49T\xFFp\xEB "{t\xFFp\xEB}" \xEFs \xF1\xF8t h\xE6sh\xE6\xFEl\xEB\u1EA4\u011F\u502A\u0130\u0402\u04B0\u0915\u094D\u0930\u094D\u0924\u093F\u0943\u0E19\u0E31\u0E49\u0922\u0942\u0901]',
@@ -27239,6 +27086,7 @@ var require_package_nls_ru = __commonJS({
27239
27086
  noneNotUsableWithAsync: '\u041E\u0431\u044A\u0435\u043A\u0442 \u0442\u0438\u043F\u0430 "None" \u043D\u0435\u043B\u044C\u0437\u044F \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C \u0441 "async with"',
27240
27087
  noneOperator: '\u041E\u043F\u0435\u0440\u0430\u0442\u043E\u0440 "{operator}" \u043D\u0435 \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044F \u0434\u043B\u044F "None"',
27241
27088
  noneUnknownMember: '"{name}" \u043D\u0435 \u044F\u0432\u043B\u044F\u0435\u0442\u0441\u044F \u0438\u0437\u0432\u0435\u0441\u0442\u043D\u044B\u043C \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u043E\u043C "None"',
27089
+ nonlocalTypeParam: '\u041F\u0440\u0438\u0432\u044F\u0437\u043A\u0430 nonlocal \u043D\u0435 \u0434\u043E\u043F\u0443\u0441\u043A\u0430\u0435\u0442\u0441\u044F \u0434\u043B\u044F \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u0430 \u0442\u0438\u043F\u0430 "{name}"',
27242
27090
  notRequiredArgCount: '\u041F\u043E\u0441\u043B\u0435 "NotRequired" \u043E\u0436\u0438\u0434\u0430\u0435\u0442\u0441\u044F \u043E\u0434\u0438\u043D \u0430\u0440\u0433\u0443\u043C\u0435\u043D\u0442 \u0442\u0438\u043F\u0430',
27243
27091
  notRequiredNotInTypedDict: '\u0418\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u0438\u0435 "NotRequired" \u0432 \u044D\u0442\u043E\u043C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u0435 \u043D\u0435 \u0434\u043E\u043F\u0443\u0441\u043A\u0430\u0435\u0442\u0441\u044F',
27244
27092
  objectNotCallable: '\u041E\u0431\u044A\u0435\u043A\u0442 \u0442\u0438\u043F\u0430 "{type}" \u043D\u0435 \u044F\u0432\u043B\u044F\u0435\u0442\u0441\u044F \u0432\u044B\u0437\u044B\u0432\u0430\u0435\u043C\u044B\u043C',
@@ -27257,11 +27105,11 @@ var require_package_nls_ru = __commonJS({
27257
27105
  overloadAbstractImplMismatch: "\u041F\u0435\u0440\u0435\u0433\u0440\u0443\u0437\u043A\u0438 \u0434\u043E\u043B\u0436\u043D\u044B \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043E\u0432\u0430\u0442\u044C \u0430\u0431\u0441\u0442\u0440\u0430\u043A\u0442\u043D\u043E\u043C\u0443 \u0441\u0442\u0430\u0442\u0443\u0441\u0443 \u0440\u0435\u0430\u043B\u0438\u0437\u0430\u0446\u0438\u0438",
27258
27106
  overloadAbstractMismatch: "\u0412\u0441\u0435 \u043F\u0435\u0440\u0435\u0433\u0440\u0443\u0437\u043A\u0438 \u0434\u043E\u043B\u0436\u043D\u044B \u0431\u044B\u0442\u044C \u0430\u0431\u0441\u0442\u0440\u0430\u043A\u0442\u043D\u044B\u043C\u0438 \u0438\u043B\u0438 \u043D\u0435 \u0430\u0431\u0441\u0442\u0440\u0430\u043A\u0442\u043D\u044B\u043C\u0438",
27259
27107
  overloadClassMethodInconsistent: '\u041F\u0435\u0440\u0435\u0433\u0440\u0443\u0437\u043A\u0438 \u0434\u043B\u044F "{name}" \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u044E\u0442 @classmethod \u043D\u0435\u0441\u043E\u0433\u043B\u0430\u0441\u043E\u0432\u0430\u043D\u043D\u043E',
27260
- overloadFinalImpl: "@final decorator should be applied only to the implementation",
27261
- overloadFinalNoImpl: "Only the first overload should be marked @final",
27108
+ overloadFinalImpl: "@final \u0434\u0435\u043A\u043E\u0440\u0430\u0442\u043E\u0440 \u0434\u043E\u043B\u0436\u0435\u043D \u043F\u0440\u0438\u043C\u0435\u043D\u044F\u0442\u044C\u0441\u044F \u0442\u043E\u043B\u044C\u043A\u043E \u043A \u0440\u0435\u0430\u043B\u0438\u0437\u0430\u0446\u0438\u0438",
27109
+ overloadFinalNoImpl: "\u0422\u043E\u043B\u044C\u043A\u043E \u043F\u0435\u0440\u0432\u0430\u044F \u043F\u0435\u0440\u0435\u0433\u0440\u0443\u0437\u043A\u0430 \u0434\u043E\u043B\u0436\u043D\u0430 \u0431\u044B\u0442\u044C \u043F\u043E\u043C\u0435\u0447\u0435\u043D\u0430 @final",
27262
27110
  overloadImplementationMismatch: "\u041F\u0435\u0440\u0435\u0433\u0440\u0443\u0436\u0435\u043D\u043D\u0430\u044F \u0440\u0435\u0430\u043B\u0438\u0437\u0430\u0446\u0438\u044F \u043D\u0435 \u0441\u043E\u0433\u043B\u0430\u0441\u043E\u0432\u0430\u043D\u0430 \u0441 \u0441\u0438\u0433\u043D\u0430\u0442\u0443\u0440\u043E\u0439 \u043F\u0435\u0440\u0435\u0433\u0440\u0443\u0437\u043A\u0438 {index}",
27263
- overloadOverrideImpl: "@override decorator should be applied only to the implementation",
27264
- overloadOverrideNoImpl: "Only the first overload should be marked @override",
27111
+ overloadOverrideImpl: "@override \u0434\u0435\u043A\u043E\u0440\u0430\u0442\u043E\u0440 \u0434\u043E\u043B\u0436\u0435\u043D \u043F\u0440\u0438\u043C\u0435\u043D\u044F\u0442\u044C\u0441\u044F \u0442\u043E\u043B\u044C\u043A\u043E \u043A \u0440\u0435\u0430\u043B\u0438\u0437\u0430\u0446\u0438\u0438",
27112
+ overloadOverrideNoImpl: "\u0422\u043E\u043B\u044C\u043A\u043E \u043F\u0435\u0440\u0432\u0430\u044F \u043F\u0435\u0440\u0435\u0433\u0440\u0443\u0437\u043A\u0430 \u0434\u043E\u043B\u0436\u043D\u0430 \u0431\u044B\u0442\u044C \u043F\u043E\u043C\u0435\u0447\u0435\u043D\u0430 @override",
27265
27113
  overloadReturnTypeMismatch: '\u041F\u0435\u0440\u0435\u0433\u0440\u0443\u0437\u043A\u0430 {prevIndex} \u0434\u043B\u044F "{name}" \u043F\u0435\u0440\u0435\u043A\u0440\u044B\u0432\u0430\u0435\u0442 \u043F\u0435\u0440\u0435\u0433\u0440\u0443\u0437\u043A\u0443 {newIndex} \u0438 \u0432\u043E\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043D\u0435\u0441\u043E\u0432\u043C\u0435\u0441\u0442\u0438\u043C\u044B\u0439 \u0442\u0438\u043F',
27266
27114
  overloadStaticMethodInconsistent: '\u041F\u0435\u0440\u0435\u0433\u0440\u0443\u0437\u043A\u0438 \u0434\u043B\u044F "{name}" \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u044E\u0442 @staticmethod \u043D\u0435\u0441\u043E\u0433\u043B\u0430\u0441\u043E\u0432\u0430\u043D\u043D\u043E',
27267
27115
  overloadWithoutImplementation: '"{name}" \u043F\u043E\u043C\u0435\u0447\u0435\u043D \u043A\u0430\u043A overload, \u043D\u043E \u0440\u0435\u0430\u043B\u0438\u0437\u0430\u0446\u0438\u044F \u043D\u0435 \u043F\u0440\u0435\u0434\u043E\u0441\u0442\u0430\u0432\u043B\u0435\u043D\u0430',
@@ -27457,14 +27305,14 @@ var require_package_nls_ru = __commonJS({
27457
27305
  typedDictBadVar: "\u041A\u043B\u0430\u0441\u0441\u044B TypedDict \u043C\u043E\u0433\u0443\u0442 \u0441\u043E\u0434\u0435\u0440\u0436\u0430\u0442\u044C \u0442\u043E\u043B\u044C\u043A\u043E \u0437\u0430\u043C\u0435\u0442\u043A\u0438 \u0441 \u0442\u0438\u043F\u043E\u043C",
27458
27306
  typedDictBaseClass: "\u0412\u0441\u0435 \u0431\u0430\u0437\u043E\u0432\u044B\u0435 \u043A\u043B\u0430\u0441\u0441\u044B \u0434\u043B\u044F \u043A\u043B\u0430\u0441\u0441\u043E\u0432 TypedDict \u0442\u0430\u043A\u0436\u0435 \u0434\u043E\u043B\u0436\u043D\u044B \u0431\u044B\u0442\u044C \u043A\u043B\u0430\u0441\u0441\u0430\u043C\u0438 TypedDict",
27459
27307
  typedDictBoolParam: '\u041E\u0442 \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u0430 "{name}" \u043E\u0436\u0438\u0434\u0430\u0435\u0442\u0441\u044F \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 True \u0438\u043B\u0438 False',
27460
- typedDictClosedExtras: '\u0411\u0430\u0437\u043E\u0432\u044B\u0439 \u043A\u043B\u0430\u0441\u0441 "{name}" \u043F\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043B\u044F\u0435\u0442 \u0441\u043E\u0431\u043E\u0439 closed TypedDict; \u0434\u043E\u043F\u043E\u043B\u043D\u0438\u0442\u0435\u043B\u044C\u043D\u044B\u0435 \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B \u0434\u043E\u043B\u0436\u043D\u044B \u0438\u043C\u0435\u0442\u044C \u0442\u0438\u043F "{type}"',
27308
+ typedDictClosedExtras: '\u0411\u0430\u0437\u043E\u0432\u044B\u0439 \u043A\u043B\u0430\u0441\u0441 "{name}" \u044F\u0432\u043B\u044F\u0435\u0442\u0441\u044F TypedDict, \u043A\u043E\u0442\u043E\u0440\u044B\u0439 \u043E\u0433\u0440\u0430\u043D\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u0442\u0438\u043F \u0434\u043E\u043F\u043E\u043B\u043D\u0438\u0442\u0435\u043B\u044C\u043D\u044B\u0445 \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432 \u0442\u0438\u043F\u043E\u043C "{type}"',
27461
27309
  typedDictClosedNoExtras: '\u0411\u0430\u0437\u043E\u0432\u044B\u0439 \u043A\u043B\u0430\u0441\u0441 "{name}" \u043F\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043B\u044F\u0435\u0442 \u0441\u043E\u0431\u043E\u0439 closed TypedDict; \u0434\u043E\u043F\u043E\u043B\u043D\u0438\u0442\u0435\u043B\u044C\u043D\u044B\u0435 \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B \u043D\u0435 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043D\u044B',
27462
27310
  typedDictDelete: "\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0443\u0434\u0430\u043B\u0438\u0442\u044C \u044D\u043B\u0435\u043C\u0435\u043D\u0442 \u0432 TypedDict",
27463
27311
  typedDictEmptyName: "\u0418\u043C\u0435\u043D\u0430 \u0432 TypedDict \u043D\u0435 \u043C\u043E\u0433\u0443\u0442 \u0431\u044B\u0442\u044C \u043F\u0443\u0441\u0442\u044B\u043C\u0438",
27464
27312
  typedDictEntryName: "\u0414\u043B\u044F \u0438\u043C\u0435\u043D\u0438 \u0437\u0430\u043F\u0438\u0441\u0438 \u0441\u043B\u043E\u0432\u0430\u0440\u044F \u043E\u0436\u0438\u0434\u0430\u0435\u0442\u0441\u044F \u0441\u0442\u0440\u043E\u043A\u043E\u0432\u044B\u0439 \u043B\u0438\u0442\u0435\u0440\u0430\u043B",
27465
27313
  typedDictEntryUnique: "\u0418\u043C\u0435\u043D\u0430 \u0432 \u0441\u043B\u043E\u0432\u0430\u0440\u0435 \u0434\u043E\u043B\u0436\u043D\u044B \u0431\u044B\u0442\u044C \u0443\u043D\u0438\u043A\u0430\u043B\u044C\u043D\u044B\u043C\u0438",
27466
27314
  typedDictExtraArgs: "\u0414\u043E\u043F\u043E\u043B\u043D\u0438\u0442\u0435\u043B\u044C\u043D\u044B\u0435 \u0430\u0440\u0433\u0443\u043C\u0435\u043D\u0442\u044B TypedDict \u043D\u0435 \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u044E\u0442\u0441\u044F",
27467
- typedDictExtraItemsClosed: 'TypedDict \u043D\u0435 \u043C\u043E\u0436\u0435\u0442 \u0431\u044B\u0442\u044C "closed", \u0435\u0441\u043B\u0438 \u043E\u043D \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u0434\u043E\u043F\u043E\u043B\u043D\u0438\u0442\u0435\u043B\u044C\u043D\u044B\u0435 \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B',
27315
+ typedDictExtraItemsClosed: 'TypedDict \u043C\u043E\u0436\u0435\u0442 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C "closed" \u0438\u043B\u0438 "extra_items", \u043D\u043E \u043D\u0435 \u043E\u0431\u0430',
27468
27316
  typedDictFieldNotRequiredRedefinition: '\u042D\u043B\u0435\u043C\u0435\u043D\u0442 TypedDict "{name}" \u043D\u0435\u043B\u044C\u0437\u044F \u043F\u0435\u0440\u0435\u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0438\u0442\u044C \u043A\u0430\u043A NotRequired',
27469
27317
  typedDictFieldReadOnlyRedefinition: '\u042D\u043B\u0435\u043C\u0435\u043D\u0442 TypedDict "{name}" \u043D\u0435\u043B\u044C\u0437\u044F \u043F\u0435\u0440\u0435\u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0438\u0442\u044C \u043A\u0430\u043A \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u0439 ReadOnly',
27470
27318
  typedDictFieldRequiredRedefinition: '\u042D\u043B\u0435\u043C\u0435\u043D\u0442 TypedDict "{name}" \u043D\u0435\u043B\u044C\u0437\u044F \u043F\u0435\u0440\u0435\u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0438\u0442\u044C \u043A\u0430\u043A Required',
@@ -27706,7 +27554,6 @@ var require_package_nls_ru = __commonJS({
27706
27554
  typedDictFieldRequired: '"{name}" \u044F\u0432\u043B\u044F\u0435\u0442\u0441\u044F \u043E\u0431\u044F\u0437\u0430\u0442\u0435\u043B\u044C\u043D\u044B\u043C \u0432 "{type}"',
27707
27555
  typedDictFieldTypeMismatch: '\u0422\u0438\u043F "{type}" \u043D\u0435\u043B\u044C\u0437\u044F \u043F\u0440\u0438\u0441\u0432\u043E\u0438\u0442\u044C \u043F\u043E\u043B\u044E "{name}"',
27708
27556
  typedDictFieldUndefined: '\u042D\u043B\u0435\u043C\u0435\u043D\u0442 "{name}" \u043D\u0435 \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0435\u043D \u0432 \u0442\u0438\u043F\u0435 "{type}"',
27709
- typedDictFinalMismatch: '"{sourceType}" \u043D\u0435\u0441\u043E\u0432\u043C\u0435\u0441\u0442\u0438\u043C \u0441 "{destType}" \u0438\u0437-\u0437\u0430 \u043D\u0435\u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u044F @final',
27710
27557
  typedDictKeyAccess: '\u0418\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C ["{name}"] \u0434\u043B\u044F \u0441\u0441\u044B\u043B\u043A\u0438 \u043D\u0430 \u044D\u043B\u0435\u043C\u0435\u043D\u0442 \u0432 TypedDict',
27711
27558
  typedDictNotAllowed: "TypedDict \u043D\u0435 \u043C\u043E\u0436\u0435\u0442 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C\u0441\u044F \u0434\u043B\u044F \u043F\u0440\u043E\u0432\u0435\u0440\u043E\u043A \u044D\u043A\u0437\u0435\u043C\u043F\u043B\u044F\u0440\u043E\u0432 \u0438\u043B\u0438 \u043A\u043B\u0430\u0441\u0441\u043E\u0432",
27712
27559
  unhashableType: '\u0422\u0438\u043F "{type}" \u043D\u0435 \u044F\u0432\u043B\u044F\u0435\u0442\u0441\u044F \u0445\u044D\u0448\u0438\u0440\u0443\u0435\u043C\u044B\u043C',
@@ -28078,6 +27925,7 @@ var require_package_nls_tr = __commonJS({
28078
27925
  noneNotUsableWithAsync: '"None" t\xFCr\xFCndeki nesne "async" ile kullan\u0131lamaz',
28079
27926
  noneOperator: '"{operator}" i\u015Fleci "None" i\xE7in desteklenmiyor',
28080
27927
  noneUnknownMember: '"{name}" bilinen bir "None" \xF6zniteli\u011Fi de\u011Fil',
27928
+ nonlocalTypeParam: '"{name}" t\xFCr parametresi i\xE7in nonlocal ba\u011Flamaya izin verilmez',
28081
27929
  notRequiredArgCount: '"NotRequired" sonras\u0131nda tek bir t\xFCr ba\u011F\u0131ms\u0131z de\u011Fi\u015Fken bekleniyordu',
28082
27930
  notRequiredNotInTypedDict: 'Bu ba\u011Flamda "NotRequired" kullan\u0131m\u0131na izin verilmiyor',
28083
27931
  objectNotCallable: '"{type}" t\xFCr\xFCndeki nesne \xE7a\u011Fr\u0131lamaz',
@@ -28096,11 +27944,11 @@ var require_package_nls_tr = __commonJS({
28096
27944
  overloadAbstractImplMismatch: "A\u015F\u0131r\u0131 y\xFCklemeler uygulaman\u0131n \xF6zet durumuyla e\u015Fle\u015Fmelidir",
28097
27945
  overloadAbstractMismatch: "A\u015F\u0131r\u0131 y\xFCklemelerin t\xFCm\xFC soyut olmal\u0131 veya t\xFCm\xFC olmamal\u0131d\u0131r",
28098
27946
  overloadClassMethodInconsistent: '"{name}" i\xE7in a\u015F\u0131r\u0131 y\xFCklemeler, @classmethod y\xF6ntemini tutarl\u0131 kullan\u0131yor',
28099
- overloadFinalImpl: "@final decorator should be applied only to the implementation",
28100
- overloadFinalNoImpl: "Only the first overload should be marked @final",
27947
+ overloadFinalImpl: "@final dekorat\xF6r yaln\u0131zca uygulamaya uygulanamaz",
27948
+ overloadFinalNoImpl: "Yaln\u0131zca ilk a\u015F\u0131r\u0131 y\xFCkleme @final",
28101
27949
  overloadImplementationMismatch: "A\u015F\u0131r\u0131 y\xFCklenmi\u015F uygulama, {index} a\u015F\u0131r\u0131 y\xFCkleme imzas\u0131 ile tutarl\u0131 de\u011Fil",
28102
- overloadOverrideImpl: "@override decorator should be applied only to the implementation",
28103
- overloadOverrideNoImpl: "Only the first overload should be marked @override",
27950
+ overloadOverrideImpl: "@override dekorat\xF6r yaln\u0131zca uygulamaya uygulanamaz",
27951
+ overloadOverrideNoImpl: "Yaln\u0131zca ilk a\u015F\u0131r\u0131 y\xFCkleme @override",
28104
27952
  overloadReturnTypeMismatch: '"{name}" i\xE7in {prevIndex} a\u015F\u0131r\u0131 y\xFCklemesi {newIndex} a\u015F\u0131r\u0131 y\xFCklemesi ile \xE7ak\u0131\u015F\u0131yor ve uyumsuz bir t\xFCr d\xF6nd\xFCr\xFCyor',
28105
27953
  overloadStaticMethodInconsistent: '"{name}" i\xE7in a\u015F\u0131r\u0131 y\xFCklemeler, @staticmethod y\xF6ntemini tutars\u0131z kullan\u0131yor',
28106
27954
  overloadWithoutImplementation: '"{name}" is marked as overload, but no implementation is provided',
@@ -28296,14 +28144,14 @@ var require_package_nls_tr = __commonJS({
28296
28144
  typedDictBadVar: "TypedDict s\u0131n\u0131flar\u0131 yaln\u0131zca t\xFCr ek a\xE7\u0131klamalar\u0131 i\xE7erebilir",
28297
28145
  typedDictBaseClass: "TypedDict s\u0131n\u0131flar\u0131 i\xE7in t\xFCm temel s\u0131n\u0131flar da TypedDict s\u0131n\u0131flar\u0131 olmal\u0131d\u0131r",
28298
28146
  typedDictBoolParam: 'True veya False de\u011Feri olmas\u0131 i\xE7in "{name}" parametresi bekleniyordu',
28299
- typedDictClosedExtras: '"{name}" temel s\u0131n\u0131f\u0131 closed bir TypedDict \xF6\u011Fesidir; ek \xF6\u011Feler "{type}" t\xFCr\xFCnde olmal\u0131d\u0131r',
28147
+ typedDictClosedExtras: 'Temel s\u0131n\u0131f "{name}", TypedDict \xF6\u011Fe t\xFCr\xFCn\xFC t\xFCrle s\u0131n\u0131rlanm\u0131\u015F bir "{type}"',
28300
28148
  typedDictClosedNoExtras: '"{name}" temel s\u0131n\u0131f\u0131 closed bir TypedDict \xF6\u011Fesidir; ek \xF6\u011Felere izin verilmiyor',
28301
28149
  typedDictDelete: "TypedDict'da \xF6\u011Fe silinemedi",
28302
28150
  typedDictEmptyName: "TypedDict i\xE7indeki adlar bo\u015F olamaz",
28303
28151
  typedDictEntryName: "S\xF6zl\xFCk girdisi ad\u0131 i\xE7in sabit de\u011Ferli dize bekleniyordu",
28304
28152
  typedDictEntryUnique: "S\xF6zl\xFCk i\xE7indeki adlar benzersiz olmal\u0131d\u0131r",
28305
28153
  typedDictExtraArgs: "Ekstra TypedDict ba\u011F\u0131ms\u0131z de\u011Fi\u015Fkenleri desteklenmiyor",
28306
- typedDictExtraItemsClosed: "Bir TypedDict ek \xF6\u011Feleri destekliyorsa closed olamaz",
28154
+ typedDictExtraItemsClosed: 'TypedDict her ikisini birden "closed" veya "extra_items" ya da her ikisini birden kullanamaz',
28307
28155
  typedDictFieldNotRequiredRedefinition: '"{name}" TypedDict \xF6\u011Fesi NotRequired olarak yeniden tan\u0131mlanamaz',
28308
28156
  typedDictFieldReadOnlyRedefinition: '"{name}" TypedDict \xF6\u011Fesi ReadOnly olarak yeniden tan\u0131mlanamaz',
28309
28157
  typedDictFieldRequiredRedefinition: '"{name}" TypedDict \xF6\u011Fesi Required olarak yeniden tan\u0131mlanamaz',
@@ -28545,7 +28393,6 @@ var require_package_nls_tr = __commonJS({
28545
28393
  typedDictFieldRequired: '"{type}" i\xE7inde "{name}" gerekiyor',
28546
28394
  typedDictFieldTypeMismatch: '"{type}" t\xFCr\xFC "{name}" \xF6\u011Fesine atanamaz',
28547
28395
  typedDictFieldUndefined: '"{name}", "{type}" t\xFCr\xFCndeki tan\u0131ms\u0131z bir \xF6\u011Fedir',
28548
- typedDictFinalMismatch: '"{sourceType}" @final uyumsuzlu\u011Fu nedeniyle "{destType}" ile uyumsuz',
28549
28396
  typedDictKeyAccess: 'TypedDict\u2019te \xF6\u011Feye ba\u015Fvurmak i\xE7in ["{name}"] de\u011Ferini kullan\u0131n',
28550
28397
  typedDictNotAllowed: "TypedDict \xF6rnek veya s\u0131n\u0131f kontrolleri i\xE7in kullan\u0131lamaz",
28551
28398
  unhashableType: '"{type}" t\xFCr\xFC karmalanabilir de\u011Fil',
@@ -28917,6 +28764,7 @@ var require_package_nls_zh_cn = __commonJS({
28917
28764
  noneNotUsableWithAsync: '\u7C7B\u578B\u4E3A "None" \u7684\u5BF9\u8C61\u4E0D\u80FD\u4E0E "async with" \u4E00\u8D77\u4F7F\u7528',
28918
28765
  noneOperator: '\u201CNone\u201D\u4E0D\u652F\u6301\u8FD0\u7B97\u7B26"{operator}"',
28919
28766
  noneUnknownMember: '\u201C{name}\u201D\u4E0D\u662F "None" \u7684\u5DF2\u77E5\u5C5E\u6027',
28767
+ nonlocalTypeParam: '\u7C7B\u578B\u53C2\u6570 "{name}" \u4E0D\u5141\u8BB8\u8FDB\u884C nonlocal \u7ED1\u5B9A',
28920
28768
  notRequiredArgCount: "\u201CNotRequired\u201D \u4E4B\u540E\u5E94\u4E3A\u5355\u4E2A\u7C7B\u578B\u53C2\u6570",
28921
28769
  notRequiredNotInTypedDict: "\u6B64\u4E0A\u4E0B\u6587\u4E2D\u4E0D\u5141\u8BB8\u4F7F\u7528\u201CNotRequired\u201D",
28922
28770
  objectNotCallable: "\u7C7B\u578B\u4E3A\u201C{type}\u201D\u7684\u5BF9\u8C61\u4E0D\u53EF\u8C03\u7528",
@@ -28935,11 +28783,11 @@ var require_package_nls_zh_cn = __commonJS({
28935
28783
  overloadAbstractImplMismatch: "\u91CD\u8F7D\u5FC5\u987B\u4E0E\u5B9E\u73B0\u7684\u62BD\u8C61\u72B6\u6001\u5339\u914D",
28936
28784
  overloadAbstractMismatch: "\u91CD\u8F7D\u5FC5\u987B\u5168\u662F\u62BD\u8C61\u91CD\u8F7D\uFF0C\u6216\u8005\u5168\u90FD\u4E0D\u662F\u62BD\u8C61\u91CD\u8F7D",
28937
28785
  overloadClassMethodInconsistent: "\u201C{name}\u201D\u7684\u91CD\u8F7D\u4F7F\u7528 @classmethod \u7684\u65B9\u5F0F\u4E0D\u4E00\u81F4",
28938
- overloadFinalImpl: "@final decorator should be applied only to the implementation",
28939
- overloadFinalNoImpl: "Only the first overload should be marked @final",
28786
+ overloadFinalImpl: "@final \u4FEE\u9970\u5668\u5E94\u4EC5\u5E94\u7528\u4E8E\u5B9E\u73B0",
28787
+ overloadFinalNoImpl: "\u53EA\u5E94\u5C06\u7B2C\u4E00\u4E2A\u91CD\u8F7D\u6807\u8BB0\u4E3A @final",
28940
28788
  overloadImplementationMismatch: "\u91CD\u8F7D\u5B9E\u73B0\u4E0E\u91CD\u8F7D {index} \u7684\u7B7E\u540D\u4E0D\u4E00\u81F4",
28941
- overloadOverrideImpl: "@override decorator should be applied only to the implementation",
28942
- overloadOverrideNoImpl: "Only the first overload should be marked @override",
28789
+ overloadOverrideImpl: "@override \u4FEE\u9970\u5668\u5E94\u4EC5\u5E94\u7528\u4E8E\u5B9E\u73B0",
28790
+ overloadOverrideNoImpl: "\u53EA\u5E94\u5C06\u7B2C\u4E00\u4E2A\u91CD\u8F7D\u6807\u8BB0\u4E3A @override",
28943
28791
  overloadReturnTypeMismatch: "\u201C{name}\u201D\u7684\u91CD\u8F7D {prevIndex} \u4E0E\u91CD\u8F7D {newIndex} \u91CD\u53E0\uFF0C\u5E76\u8FD4\u56DE\u4E0D\u517C\u5BB9\u7684\u7C7B\u578B",
28944
28792
  overloadStaticMethodInconsistent: "\u201C{name}\u201D\u7684\u91CD\u8F7D\u4F7F\u7528 @staticmethod \u7684\u65B9\u5F0F\u4E0D\u4E00\u81F4",
28945
28793
  overloadWithoutImplementation: '"{name}" \u88AB\u6807\u8BB0\u4E3A overload\uFF0C\u4F46\u672A\u63D0\u4F9B\u5B9E\u73B0',
@@ -29135,14 +28983,14 @@ var require_package_nls_zh_cn = __commonJS({
29135
28983
  typedDictBadVar: "TypedDict \u7C7B\u53EA\u80FD\u5305\u542B\u7C7B\u578B\u6279\u6CE8",
29136
28984
  typedDictBaseClass: "TypedDict \u7C7B\u7684\u6240\u6709\u57FA\u7C7B\u4E5F\u5FC5\u987B\u662F TypedDict \u7C7B",
29137
28985
  typedDictBoolParam: "\u9884\u671F\u201C{name}\u201D\u53C2\u6570\u7684\u503C\u4E3A True \u6216 False",
29138
- typedDictClosedExtras: '\u57FA\u7C7B "{name}" \u662F closed TypedDict; \u989D\u5916\u7684\u9879\u5FC5\u987B\u662F\u7C7B\u578B "{type}"',
28986
+ typedDictClosedExtras: '\u57FA\u7C7B "{name}" \u662F\u9650\u5236\u989D\u5916\u9879\u7C7B\u578B "{type}" \u7684 TypedDict',
29139
28987
  typedDictClosedNoExtras: '\u57FA\u7C7B "{name}" \u662F closed TypedDict; \u4E0D\u5141\u8BB8\u4F7F\u7528\u989D\u5916\u7684\u9879',
29140
28988
  typedDictDelete: "\u65E0\u6CD5\u5220\u9664 TypedDict \u4E2D\u7684\u9879",
29141
28989
  typedDictEmptyName: "TypedDict \u4E2D\u7684\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",
29142
28990
  typedDictEntryName: "\u5B57\u5178\u6761\u76EE\u540D\u79F0\u7684\u9884\u671F\u5B57\u7B26\u4E32\u6587\u672C",
29143
28991
  typedDictEntryUnique: "\u5B57\u5178\u4E2D\u7684\u540D\u79F0\u5FC5\u987B\u552F\u4E00",
29144
28992
  typedDictExtraArgs: "\u4E0D\u652F\u6301\u989D\u5916\u7684 TypedDict \u53C2\u6570",
29145
- typedDictExtraItemsClosed: "\u5982\u679C TypedDict \u652F\u6301\u989D\u5916\u9879\u76EE\uFF0C\u5219\u65E0\u6CD5\u5C06\u5176 closed",
28993
+ typedDictExtraItemsClosed: 'TypedDict \u53EF\u4EE5\u4F7F\u7528 "closed" \u6216 "extra_items"\uFF0C\u4F46\u4E0D\u80FD\u540C\u65F6\u4F7F\u7528',
29146
28994
  typedDictFieldNotRequiredRedefinition: "\u65E0\u6CD5\u5C06 TypedDict \u9879\u201C{name}\u201D\u91CD\u65B0\u5B9A\u4E49\u4E3A NotRequired",
29147
28995
  typedDictFieldReadOnlyRedefinition: "\u65E0\u6CD5\u5C06 TypedDict \u9879\u201C{name}\u201D\u91CD\u65B0\u5B9A\u4E49\u4E3A ReadOnly",
29148
28996
  typedDictFieldRequiredRedefinition: "\u65E0\u6CD5\u5C06 TypedDict \u9879\u201C{name}\u201D\u91CD\u65B0\u5B9A\u4E49\u4E3A Required",
@@ -29384,7 +29232,6 @@ var require_package_nls_zh_cn = __commonJS({
29384
29232
  typedDictFieldRequired: '"{type}"\u4E2D\u9700\u8981"{name}"',
29385
29233
  typedDictFieldTypeMismatch: "\u7C7B\u578B\u201C{type}\u201D\u4E0D\u53EF\u5206\u914D\u7ED9\u9879\u201C{name}\u201D",
29386
29234
  typedDictFieldUndefined: "\u201C{name}\u201D\u662F\u7C7B\u578B\u201C{type}\u201D\u4E2D\u7684\u672A\u5B9A\u4E49\u9879",
29387
- typedDictFinalMismatch: '"{sourceType}"\u4E0E"{destType}"\u4E0D\u517C\u5BB9\uFF0C\u56E0\u4E3A@final\u4E0D\u5339\u914D',
29388
29235
  typedDictKeyAccess: '\u4F7F\u7528 ["{name}"] \u5F15\u7528 TypedDict \u4E2D\u7684\u9879',
29389
29236
  typedDictNotAllowed: "\u4E0D\u80FD\u5BF9\u5B9E\u4F8B\u6216\u7C7B\u68C0\u67E5\u4F7F\u7528 TypedDict",
29390
29237
  unhashableType: "\u7C7B\u578B\u201C{type}\u201D\u4E0D\u53EF\u54C8\u5E0C",
@@ -29756,6 +29603,7 @@ var require_package_nls_zh_tw = __commonJS({
29756
29603
  noneNotUsableWithAsync: '\u985E\u578B "None" \u7684\u7269\u4EF6\u4E0D\u80FD\u8207 "async with" \u642D\u914D\u4F7F\u7528',
29757
29604
  noneOperator: '"None" \u4E0D\u652F\u63F4\u904B\u7B97\u5B50 "{operator}"',
29758
29605
  noneUnknownMember: '"{name}" \u4E0D\u662F "None" \u7684\u5DF2\u77E5\u5C6C\u6027',
29606
+ nonlocalTypeParam: '\u985E\u578B\u53C3\u6578 "{name}" \u4E0D\u5141\u8A31\u4F7F\u7528\u975E Nonlocal \u7E6B\u7D50',
29759
29607
  notRequiredArgCount: '\u9810\u671F "NotRequired" \u4E4B\u5F8C\u70BA\u55AE\u4E00\u985E\u578B\u5F15\u6578',
29760
29608
  notRequiredNotInTypedDict: '\u6B64\u5167\u5BB9\u4E2D\u4E0D\u5141\u8A31 "NotRequired"',
29761
29609
  objectNotCallable: '\u985E\u578B "{type}" \u7684\u7269\u4EF6\u7121\u6CD5\u547C\u53EB',
@@ -29774,11 +29622,11 @@ var require_package_nls_zh_tw = __commonJS({
29774
29622
  overloadAbstractImplMismatch: "\u591A\u8F09\u5FC5\u9808\u7B26\u5408\u5BE6\u4F5C\u7684\u62BD\u8C61\u72C0\u614B",
29775
29623
  overloadAbstractMismatch: "\u591A\u8F09\u5FC5\u9808\u5168\u70BA\u62BD\u8C61\u6216\u4E0D\u62BD\u8C61",
29776
29624
  overloadClassMethodInconsistent: '"{name}" \u7684\u591A\u8F09\u4E0D\u4E00\u81F4\u5730\u4F7F\u7528 @classmethod',
29777
- overloadFinalImpl: "@final decorator should be applied only to the implementation",
29778
- overloadFinalNoImpl: "Only the first overload should be marked @final",
29625
+ overloadFinalImpl: "@final \u88DD\u98FE\u61C9\u8A72\u53EA\u5957\u7528\u5230\u5BE6\u4F5C",
29626
+ overloadFinalNoImpl: "\u53EA\u61C9\u5C07\u7B2C\u4E00\u500B\u591A\u8F09\u6A19\u793A\u70BA @final",
29779
29627
  overloadImplementationMismatch: "\u591A\u8F09\u7684\u5BE6\u4F5C\u8207\u591A\u8F09 {index} \u7684\u7C3D\u7AE0\u4E0D\u4E00\u81F4",
29780
- overloadOverrideImpl: "@override decorator should be applied only to the implementation",
29781
- overloadOverrideNoImpl: "Only the first overload should be marked @override",
29628
+ overloadOverrideImpl: "@override \u88DD\u98FE\u61C9\u8A72\u53EA\u5957\u7528\u5230\u5BE6\u4F5C",
29629
+ overloadOverrideNoImpl: "\u53EA\u61C9\u5C07\u7B2C\u4E00\u500B\u591A\u8F09\u6A19\u793A\u70BA @override",
29782
29630
  overloadReturnTypeMismatch: '"{name}" \u7684\u591A\u8F09 {prevIndex} \u8207\u591A\u8F09 {newIndex} \u91CD\u758A\uFF0C\u4E26\u50B3\u56DE\u4E0D\u76F8\u5BB9\u7684\u985E\u578B',
29783
29631
  overloadStaticMethodInconsistent: '"{name}" \u7684\u591A\u8F09\u4E0D\u4E00\u81F4\u5730\u4F7F\u7528 @staticmethod',
29784
29632
  overloadWithoutImplementation: '"{name}" \u6A19\u793A\u70BA overload\uFF0C\u4F46\u672A\u63D0\u4F9B\u5BE6\u4F5C',
@@ -29974,14 +29822,14 @@ var require_package_nls_zh_tw = __commonJS({
29974
29822
  typedDictBadVar: "TypedDict \u985E\u5225\u53EA\u80FD\u5305\u542B\u578B\u5225\u8A3B\u91CB",
29975
29823
  typedDictBaseClass: "TypedDict \u985E\u5225\u7684\u6240\u6709\u57FA\u5E95\u985E\u5225\u4E5F\u5FC5\u9808\u662F TypedDict \u985E\u5225",
29976
29824
  typedDictBoolParam: '\u9810\u671F "{name}" \u53C3\u6578\u7684\u503C\u70BA True \u6216 False',
29977
- typedDictClosedExtras: '\u57FA\u5E95\u985E\u5225 "{name}" \u662F closed \u7684 TypedDict; \u984D\u5916\u9805\u76EE\u5FC5\u9808\u70BA\u578B\u5225 "{type}"',
29825
+ typedDictClosedExtras: '\u57FA\u985E "{name}" \u662F\u9650\u5236\u984D\u5916\u5C08\u6848\u985E\u578B\u7684 TypedDict "{type}"',
29978
29826
  typedDictClosedNoExtras: '\u57FA\u5E95\u985E\u5225 "{name}" \u662F closed \u7684 TypedDict; \u4E0D\u5141\u8A31\u984D\u5916\u9805\u76EE',
29979
29827
  typedDictDelete: "\u7121\u6CD5\u522A\u9664 TypedDict \u4E2D\u7684\u9805\u76EE",
29980
29828
  typedDictEmptyName: "TypedDict \u5167\u7684\u540D\u7A31\u4E0D\u53EF\u70BA\u7A7A\u767D",
29981
29829
  typedDictEntryName: "\u5B57\u5178\u9805\u76EE\u540D\u7A31\u9810\u671F\u70BA\u5B57\u4E32\u5E38\u503C",
29982
29830
  typedDictEntryUnique: "\u5B57\u5178\u5167\u7684\u540D\u7A31\u5FC5\u9808\u662F\u552F\u4E00\u7684",
29983
29831
  typedDictExtraArgs: "\u4E0D\u652F\u63F4\u984D\u5916\u7684 TypedDict \u5F15\u6578",
29984
- typedDictExtraItemsClosed: "\u5982\u679C TypedDict \u652F\u63F4\u984D\u5916\u9805\u76EE\uFF0C\u5C31\u4E0D\u80FD\u662F closed",
29832
+ typedDictExtraItemsClosed: 'TypedDict \u53EF\u4EE5\u4F7F\u7528 "closed" \u6216 "extra_items"\uFF0C\u4F46\u4E0D\u80FD\u540C\u6642\u4F7F\u7528\u5169\u8005',
29985
29833
  typedDictFieldNotRequiredRedefinition: 'TypedDict \u9805\u76EE "{name}" \u4E0D\u80FD\u91CD\u65B0\u5B9A\u7FA9\u70BA NotRequired',
29986
29834
  typedDictFieldReadOnlyRedefinition: 'TypedDict \u9805\u76EE "{name}" \u4E0D\u80FD\u91CD\u65B0\u5B9A\u7FA9\u70BA ReadOnly',
29987
29835
  typedDictFieldRequiredRedefinition: 'TypedDict \u9805\u76EE "{name}" \u4E0D\u80FD\u91CD\u65B0\u5B9A\u7FA9\u70BA Required',
@@ -30223,7 +30071,6 @@ var require_package_nls_zh_tw = __commonJS({
30223
30071
  typedDictFieldRequired: '"{type}" \u4E2D\u9700\u8981 "{name}"',
30224
30072
  typedDictFieldTypeMismatch: '\u578B\u5225 "{type}" \u7121\u6CD5\u6307\u6D3E\u7D66\u9805\u76EE "{name}"',
30225
30073
  typedDictFieldUndefined: '"{name}" \u662F\u578B\u5225 "{type}" \u4E2D\u672A\u5B9A\u7FA9\u7684\u9805\u76EE',
30226
- typedDictFinalMismatch: '"{sourceType}" \u8207 "{destType}" \u4E0D\u76F8\u5BB9\uFF0C\u56E0\u70BA@final \u4E0D\u7B26',
30227
30074
  typedDictKeyAccess: '\u4F7F\u7528 ["{name}"] \u53C3\u8003 TypedDict \u4E2D\u7684\u9805\u76EE',
30228
30075
  typedDictNotAllowed: "\u57F7\u884C\u500B\u9AD4\u6216\u985E\u5225\u6AA2\u67E5\u7121\u6CD5\u4F7F\u7528 TypedDict",
30229
30076
  unhashableType: '\u578B\u5225 "{type}" \u7121\u6CD5\u96DC\u6E4A',
@@ -30447,6 +30294,7 @@ var require_localize = __commonJS({
30447
30294
  Diagnostic4.baseClassVariableTypeIncompatible = () => new ParameterizedString(getRawString("Diagnostic.baseClassVariableTypeIncompatible"));
30448
30295
  Diagnostic4.baseClassUnknown = () => getRawString("Diagnostic.baseClassUnknown");
30449
30296
  Diagnostic4.binaryOperationNotAllowed = () => getRawString("Diagnostic.binaryOperationNotAllowed");
30297
+ Diagnostic4.bindParamMissing = () => new ParameterizedString(getRawString("Diagnostic.bindParamMissing"));
30450
30298
  Diagnostic4.bindTypeMismatch = () => new ParameterizedString(getRawString("Diagnostic.bindTypeMismatch"));
30451
30299
  Diagnostic4.breakInExceptionGroup = () => getRawString("Diagnostic.breakInExceptionGroup");
30452
30300
  Diagnostic4.breakOutsideLoop = () => getRawString("Diagnostic.breakOutsideLoop");
@@ -30877,6 +30725,7 @@ var require_localize = __commonJS({
30877
30725
  Diagnostic4.typeAliasRedeclared = () => new ParameterizedString(getRawString("Diagnostic.typeAliasRedeclared"));
30878
30726
  Diagnostic4.typeAliasStatementIllegal = () => getRawString("Diagnostic.typeAliasStatementIllegal");
30879
30727
  Diagnostic4.typeAliasStatementBadScope = () => getRawString("Diagnostic.typeAliasStatementBadScope");
30728
+ Diagnostic4.typeAliasTypeBadScope = () => getRawString("Diagnostic.typeAliasTypeBadScope");
30880
30729
  Diagnostic4.typeAliasTypeBaseClass = () => getRawString("Diagnostic.typeAliasTypeBaseClass");
30881
30730
  Diagnostic4.typeAliasTypeMustBeAssigned = () => getRawString("Diagnostic.typeAliasTypeMustBeAssigned");
30882
30731
  Diagnostic4.typeAliasTypeNameArg = () => getRawString("Diagnostic.typeAliasTypeNameArg");
@@ -31189,7 +31038,6 @@ var require_localize = __commonJS({
31189
31038
  DiagnosticAddendum2.typedDictFieldRequired = () => new ParameterizedString(getRawString("DiagnosticAddendum.typedDictFieldRequired"));
31190
31039
  DiagnosticAddendum2.typedDictFieldTypeMismatch = () => new ParameterizedString(getRawString("DiagnosticAddendum.typedDictFieldTypeMismatch"));
31191
31040
  DiagnosticAddendum2.typedDictFieldUndefined = () => new ParameterizedString(getRawString("DiagnosticAddendum.typedDictFieldUndefined"));
31192
- DiagnosticAddendum2.typedDictFinalMismatch = () => new ParameterizedString(getRawString("DiagnosticAddendum.typedDictFinalMismatch"));
31193
31041
  DiagnosticAddendum2.typedDictKeyAccess = () => new ParameterizedString(getRawString("DiagnosticAddendum.typedDictKeyAccess"));
31194
31042
  DiagnosticAddendum2.typedDictNotAllowed = () => getRawString("DiagnosticAddendum.typedDictNotAllowed");
31195
31043
  DiagnosticAddendum2.typeIncompatible = () => new ParameterizedString(getRawString("DiagnosticAddendum.typeIncompatible"));
@@ -34144,6 +33992,7 @@ var require_parseTreeUtils = __commonJS({
34144
33992
  exports2.getTypeVarScopesForNode = getTypeVarScopesForNode;
34145
33993
  exports2.checkDecorator = checkDecorator;
34146
33994
  exports2.isSimpleDefault = isSimpleDefault;
33995
+ exports2.getPreviousNonWhitespaceToken = getPreviousNonWhitespaceToken;
34147
33996
  var AnalyzerNodeInfo = __importStar(require_analyzerNodeInfo());
34148
33997
  var core_1 = require_core();
34149
33998
  var debug_1 = require_debug();
@@ -36266,6 +36115,17 @@ var require_parseTreeUtils = __commonJS({
36266
36115
  return false;
36267
36116
  }
36268
36117
  }
36118
+ function getPreviousNonWhitespaceToken(tokens, offset) {
36119
+ let tokenIndex = tokens.getItemAtPosition(offset);
36120
+ while (tokenIndex >= 0) {
36121
+ const token = tokens.getItemAt(tokenIndex);
36122
+ if (!isWhitespace(token)) {
36123
+ return token;
36124
+ }
36125
+ tokenIndex -= 1;
36126
+ }
36127
+ return void 0;
36128
+ }
36269
36129
  }
36270
36130
  });
36271
36131
 
@@ -46752,6 +46612,7 @@ var require_sourceFileInfoUtils = __commonJS({
46752
46612
  Object.defineProperty(exports2, "__esModule", { value: true });
46753
46613
  exports2.isUserCode = isUserCode;
46754
46614
  exports2.collectImportedByCells = collectImportedByCells;
46615
+ exports2.collectImportedByRecursively = collectImportedByRecursively;
46755
46616
  exports2.verifyNoCyclesInChainedFiles = verifyNoCyclesInChainedFiles;
46756
46617
  exports2.createChainedByList = createChainedByList;
46757
46618
  var debug_1 = require_debug();
@@ -46763,9 +46624,18 @@ var require_sourceFileInfoUtils = __commonJS({
46763
46624
  function collectImportedByCells(program, fileInfo) {
46764
46625
  _parseAllOpenCells(program);
46765
46626
  const importedByCells = /* @__PURE__ */ new Set();
46766
- _collectImportedByCells(fileInfo, importedByCells);
46627
+ collectImportedByRecursively(fileInfo, importedByCells);
46767
46628
  return importedByCells;
46768
46629
  }
46630
+ function collectImportedByRecursively(fileInfo, importedBy) {
46631
+ fileInfo.importedBy.forEach((dep) => {
46632
+ if (importedBy.has(dep)) {
46633
+ return;
46634
+ }
46635
+ importedBy.add(dep);
46636
+ collectImportedByRecursively(dep, importedBy);
46637
+ });
46638
+ }
46769
46639
  function verifyNoCyclesInChainedFiles(program, fileInfo) {
46770
46640
  var _a;
46771
46641
  let nextChainedFile = fileInfo.chainedSourceFile;
@@ -46815,15 +46685,6 @@ var require_sourceFileInfoUtils = __commonJS({
46815
46685
  program.handleMemoryHighUsage();
46816
46686
  }
46817
46687
  }
46818
- function _collectImportedByCells(fileInfo, importedByCells) {
46819
- fileInfo.importedBy.forEach((dep) => {
46820
- if (importedByCells.has(dep)) {
46821
- return;
46822
- }
46823
- importedByCells.add(dep);
46824
- _collectImportedByCells(dep, importedByCells);
46825
- });
46826
- }
46827
46688
  }
46828
46689
  });
46829
46690
 
@@ -47906,13 +47767,19 @@ var require_types = __commonJS({
47906
47767
  }
47907
47768
  FunctionType2.cloneAsInstantiable = cloneAsInstantiable;
47908
47769
  function specialize(type, specializedTypes, specializedInferredReturnType) {
47770
+ var _a;
47909
47771
  const newFunction = TypeBase.cloneType(type);
47910
47772
  (0, debug_1.assert)(specializedTypes.parameterTypes.length === type.shared.parameters.length);
47911
47773
  if (specializedTypes.parameterDefaultTypes) {
47912
47774
  (0, debug_1.assert)(specializedTypes.parameterDefaultTypes.length === type.shared.parameters.length);
47913
47775
  }
47914
47776
  newFunction.priv.specializedTypes = specializedTypes;
47915
- newFunction.priv.inferredReturnType = specializedInferredReturnType;
47777
+ if (specializedInferredReturnType) {
47778
+ newFunction.priv.inferredReturnType = {
47779
+ type: specializedInferredReturnType,
47780
+ isIncomplete: (_a = type.priv.inferredReturnType) == null ? void 0 : _a.isIncomplete
47781
+ };
47782
+ }
47916
47783
  return newFunction;
47917
47784
  }
47918
47785
  FunctionType2.specialize = specialize;
@@ -48220,7 +48087,7 @@ var require_types = __commonJS({
48220
48087
  }
48221
48088
  FunctionType2.addKeywordOnlyParamSeparator = addKeywordOnlyParamSeparator;
48222
48089
  function getEffectiveReturnType(type, includeInferred = true) {
48223
- var _a;
48090
+ var _a, _b;
48224
48091
  if ((_a = type.priv.specializedTypes) == null ? void 0 : _a.returnType) {
48225
48092
  return type.priv.specializedTypes.returnType;
48226
48093
  }
@@ -48228,7 +48095,7 @@ var require_types = __commonJS({
48228
48095
  return type.shared.declaredReturnType;
48229
48096
  }
48230
48097
  if (includeInferred) {
48231
- return type.priv.inferredReturnType;
48098
+ return (_b = type.priv.inferredReturnType) == null ? void 0 : _b.type;
48232
48099
  }
48233
48100
  return void 0;
48234
48101
  }
@@ -48878,7 +48745,7 @@ var require_types = __commonJS({
48878
48745
  return void 0;
48879
48746
  }
48880
48747
  function isTypeSame(type1, type2, options = {}, recursionCount = 0) {
48881
- var _a, _b, _c, _d, _e, _f, _g, _h;
48748
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
48882
48749
  if (type1 === type2) {
48883
48750
  return true;
48884
48751
  }
@@ -49015,14 +48882,14 @@ var require_types = __commonJS({
49015
48882
  return1Type = type1.priv.specializedTypes.returnType;
49016
48883
  }
49017
48884
  if (!return1Type && type1.priv.inferredReturnType) {
49018
- return1Type = type1.priv.inferredReturnType;
48885
+ return1Type = (_e = type1.priv.inferredReturnType) == null ? void 0 : _e.type;
49019
48886
  }
49020
48887
  let return2Type = functionType2.shared.declaredReturnType;
49021
48888
  if (functionType2.priv.specializedTypes && functionType2.priv.specializedTypes.returnType) {
49022
48889
  return2Type = functionType2.priv.specializedTypes.returnType;
49023
48890
  }
49024
48891
  if (!return2Type && functionType2.priv.inferredReturnType) {
49025
- return2Type = functionType2.priv.inferredReturnType;
48892
+ return2Type = (_f = functionType2.priv.inferredReturnType) == null ? void 0 : _f.type;
49026
48893
  }
49027
48894
  if (return1Type || return2Type) {
49028
48895
  if (!return1Type || !return2Type || !isTypeSame(return1Type, return2Type, { ...options, ignoreTypeFlags: false }, recursionCount)) {
@@ -49062,8 +48929,8 @@ var require_types = __commonJS({
49062
48929
  return false;
49063
48930
  }
49064
48931
  if (type1.shared.recursiveAlias && type2TypeVar.shared.recursiveAlias) {
49065
- const type1TypeArgs = ((_f = (_e = type1 == null ? void 0 : type1.props) == null ? void 0 : _e.typeAliasInfo) == null ? void 0 : _f.typeArgs) || [];
49066
- const type2TypeArgs = ((_h = (_g = type2 == null ? void 0 : type2.props) == null ? void 0 : _g.typeAliasInfo) == null ? void 0 : _h.typeArgs) || [];
48932
+ const type1TypeArgs = ((_h = (_g = type1 == null ? void 0 : type1.props) == null ? void 0 : _g.typeAliasInfo) == null ? void 0 : _h.typeArgs) || [];
48933
+ const type2TypeArgs = ((_j = (_i = type2 == null ? void 0 : type2.props) == null ? void 0 : _i.typeAliasInfo) == null ? void 0 : _j.typeArgs) || [];
49067
48934
  const typeArgCount = Math.max(type1TypeArgs.length, type2TypeArgs.length);
49068
48935
  for (let i = 0; i < typeArgCount; i++) {
49069
48936
  const typeArg1 = i < type1TypeArgs.length ? type1TypeArgs[i] : AnyType.create();
@@ -49544,6 +49411,7 @@ var require_typeWalker = __commonJS({
49544
49411
  visitNever(type) {
49545
49412
  }
49546
49413
  visitFunction(type) {
49414
+ var _a;
49547
49415
  for (let i = 0; i < type.shared.parameters.length; i++) {
49548
49416
  if (type.shared.parameters[i].name) {
49549
49417
  const paramType = types_1.FunctionType.getParamType(type, i);
@@ -49554,7 +49422,7 @@ var require_typeWalker = __commonJS({
49554
49422
  }
49555
49423
  }
49556
49424
  if (!this._isWalkCanceled && !types_1.FunctionType.isParamSpecValue(type) && !types_1.FunctionType.isParamSpecValue(type)) {
49557
- const returnType = type.shared.declaredReturnType ?? type.priv.inferredReturnType;
49425
+ const returnType = type.shared.declaredReturnType ?? ((_a = type.priv.inferredReturnType) == null ? void 0 : _a.type);
49558
49426
  if (returnType) {
49559
49427
  this.walk(returnType);
49560
49428
  }
@@ -51630,7 +51498,7 @@ var require_typeUtils = __commonJS({
51630
51498
  return result;
51631
51499
  }
51632
51500
  function _requiresSpecialization(type, options, recursionCount = 0) {
51633
- var _a, _b;
51501
+ var _a, _b, _c;
51634
51502
  if ((_a = type.props) == null ? void 0 : _a.condition) {
51635
51503
  return true;
51636
51504
  }
@@ -51664,7 +51532,7 @@ var require_typeUtils = __commonJS({
51664
51532
  return true;
51665
51533
  }
51666
51534
  } else if (type.priv.inferredReturnType) {
51667
- if (requiresSpecialization(type.priv.inferredReturnType, options, recursionCount)) {
51535
+ if (requiresSpecialization((_b = type.priv.inferredReturnType) == null ? void 0 : _b.type, options, recursionCount)) {
51668
51536
  return true;
51669
51537
  }
51670
51538
  }
@@ -51691,7 +51559,7 @@ var require_typeUtils = __commonJS({
51691
51559
  }
51692
51560
  return true;
51693
51561
  }
51694
- const aliasInfo = (_b = type.props) == null ? void 0 : _b.typeAliasInfo;
51562
+ const aliasInfo = (_c = type.props) == null ? void 0 : _c.typeAliasInfo;
51695
51563
  if (aliasInfo == null ? void 0 : aliasInfo.typeArgs) {
51696
51564
  return aliasInfo.typeArgs.some((typeArg) => requiresSpecialization(typeArg, options, recursionCount));
51697
51565
  }
@@ -52198,6 +52066,7 @@ var require_typeUtils = __commonJS({
52198
52066
  }
52199
52067
  transformTypeVarsInFunctionType(sourceType, recursionCount) {
52200
52068
  return this.doForEachConstraintSet(() => {
52069
+ var _a, _b;
52201
52070
  let functionType = sourceType;
52202
52071
  const declaredReturnType = types_1.FunctionType.getEffectiveReturnType(functionType);
52203
52072
  const specializedReturnType = declaredReturnType ? this.apply(declaredReturnType, recursionCount) : void 0;
@@ -52246,8 +52115,8 @@ var require_typeUtils = __commonJS({
52246
52115
  }
52247
52116
  let specializedInferredReturnType;
52248
52117
  if (functionType.priv.inferredReturnType) {
52249
- specializedInferredReturnType = this.apply(functionType.priv.inferredReturnType, recursionCount);
52250
- if (specializedInferredReturnType !== functionType.priv.inferredReturnType) {
52118
+ specializedInferredReturnType = this.apply((_a = functionType.priv.inferredReturnType) == null ? void 0 : _a.type, recursionCount);
52119
+ if (specializedInferredReturnType !== ((_b = functionType.priv.inferredReturnType) == null ? void 0 : _b.type)) {
52251
52120
  typesRequiredSpecialization = true;
52252
52121
  }
52253
52122
  }
@@ -53962,7 +53831,7 @@ var require_constraintTracker = __commonJS({
53962
53831
  return this._scopeIds.has(scopeId);
53963
53832
  }
53964
53833
  getScopeIds() {
53965
- return new Set(this._scopeIds);
53834
+ return this._scopeIds ? [...this._scopeIds] : [];
53966
53835
  }
53967
53836
  hasUnificationVars() {
53968
53837
  for (const entry of this._typeVarMap.values()) {
@@ -53983,15 +53852,18 @@ var require_constraintTracker = __commonJS({
53983
53852
  newTypeVarMap._constraintSets = this._constraintSets.map((set) => set.clone());
53984
53853
  return newTypeVarMap;
53985
53854
  }
53986
- cloneWithSignature(scopeId) {
53855
+ cloneWithSignature(scopeIds) {
53987
53856
  const cloned = this.clone();
53988
- if (scopeId) {
53989
- const filteredSets = this._constraintSets.filter((context) => context.hasScopeId(scopeId));
53857
+ const nonEmptyScopeIds = scopeIds.filter((scopeId) => !!scopeId);
53858
+ if (nonEmptyScopeIds.length > 0) {
53859
+ const filteredSets = this._constraintSets.filter((context) => nonEmptyScopeIds.every((scopeId) => context.hasScopeId(scopeId)));
53990
53860
  if (filteredSets.length > 0) {
53991
53861
  cloned._constraintSets = filteredSets;
53992
53862
  } else {
53993
53863
  cloned._constraintSets.forEach((context) => {
53994
- context.addScopeId(scopeId);
53864
+ nonEmptyScopeIds.forEach((scopeId) => {
53865
+ context.addScopeId(scopeId);
53866
+ });
53995
53867
  });
53996
53868
  }
53997
53869
  }
@@ -55356,18 +55228,16 @@ var require_typedDicts = __commonJS({
55356
55228
  evaluator.addDiagnostic(diagnosticRules_1.DiagnosticRule.reportGeneralTypeIssues, localize_1.LocMessage.typedDictBoolParam().format({ name: arg.name.d.value }), arg.valueExpression || errorNode);
55357
55229
  } else if (arg.name.d.value === "total" && arg.valueExpression.d.constType === 15) {
55358
55230
  classType.shared.flags |= 32;
55359
- } else if (arg.name.d.value === "closed") {
55231
+ } else if (arg.name.d.value === "closed" && AnalyzerNodeInfo.getFileInfo(errorNode).diagnosticRuleSet.enableExperimentalFeatures) {
55360
55232
  if (arg.valueExpression.d.constType === 33) {
55361
- if (AnalyzerNodeInfo.getFileInfo(errorNode).diagnosticRuleSet.enableExperimentalFeatures) {
55362
- classType.shared.flags |= 8 | 16;
55363
- }
55233
+ classType.shared.flags |= 8 | 16;
55364
55234
  }
55365
55235
  if (sawClosedOrExtraItems) {
55366
55236
  evaluator.addDiagnostic(diagnosticRules_1.DiagnosticRule.reportGeneralTypeIssues, localize_1.LocMessage.typedDictExtraItemsClosed(), arg.valueExpression || errorNode);
55367
55237
  }
55368
55238
  sawClosedOrExtraItems = true;
55369
55239
  }
55370
- } else if (((_c = arg.name) == null ? void 0 : _c.d.value) === "extra_items") {
55240
+ } else if (((_c = arg.name) == null ? void 0 : _c.d.value) === "extra_items" && AnalyzerNodeInfo.getFileInfo(errorNode).diagnosticRuleSet.enableExperimentalFeatures) {
55371
55241
  classType.shared.typedDictExtraItemsExpr = arg.valueExpression;
55372
55242
  classType.shared.flags |= 16;
55373
55243
  if (sawClosedOrExtraItems) {
@@ -56469,6 +56339,7 @@ var require_constructorTransform = __commonJS({
56469
56339
  return void 0;
56470
56340
  }
56471
56341
  function applyPartialTransformToFunction(evaluator, errorNode, argList, partialCallMemberType, origFunctionType) {
56342
+ var _a;
56472
56343
  const paramMap = /* @__PURE__ */ new Map();
56473
56344
  const paramListDetails = (0, parameterUtils_1.getParamListDetails)(origFunctionType);
56474
56345
  let argumentErrors = false;
@@ -56537,8 +56408,8 @@ var require_constructorTransform = __commonJS({
56537
56408
  }
56538
56409
  } else {
56539
56410
  const matchingParam = paramListDetails.params.find((paramInfo) => {
56540
- var _a;
56541
- return paramInfo.param.name === ((_a = arg.name) == null ? void 0 : _a.d.value) && paramInfo.kind !== parameterUtils_1.ParamKind.Positional;
56411
+ var _a2;
56412
+ return paramInfo.param.name === ((_a2 = arg.name) == null ? void 0 : _a2.d.value) && paramInfo.kind !== parameterUtils_1.ParamKind.Positional;
56542
56413
  });
56543
56414
  if (!matchingParam) {
56544
56415
  if (paramListDetails.kwargsIndex === void 0) {
@@ -56650,7 +56521,7 @@ var require_constructorTransform = __commonJS({
56650
56521
  newParamList.forEach((param) => {
56651
56522
  types_1.FunctionType.addParam(newCallMemberType, param);
56652
56523
  });
56653
- newCallMemberType.shared.declaredReturnType = specializedFunctionType.shared.declaredReturnType ? types_1.FunctionType.getEffectiveReturnType(specializedFunctionType) : specializedFunctionType.priv.inferredReturnType;
56524
+ newCallMemberType.shared.declaredReturnType = specializedFunctionType.shared.declaredReturnType ? types_1.FunctionType.getEffectiveReturnType(specializedFunctionType) : (_a = specializedFunctionType.priv.inferredReturnType) == null ? void 0 : _a.type;
56654
56525
  newCallMemberType.shared.declaration = partialCallMemberType.shared.declaration;
56655
56526
  newCallMemberType.shared.typeVarScopeId = specializedFunctionType.shared.typeVarScopeId;
56656
56527
  return { returnType: newCallMemberType, isTypeIncomplete: false, argumentErrors };
@@ -56806,7 +56677,7 @@ var require_constructors = __commonJS({
56806
56677
  }
56807
56678
  if (!newMethodReturnType || isDefaultNewMethod(newMethodTypeResult == null ? void 0 : newMethodTypeResult.type)) {
56808
56679
  newMethodReturnType = types_1.ClassType.cloneAsInstance(type);
56809
- } else if ((0, types_1.isAnyOrUnknown)(newMethodReturnType)) {
56680
+ } else if ((0, types_1.isUnknown)(newMethodReturnType) || newMethodTypeResult && (0, types_1.isAny)(newMethodTypeResult.type)) {
56810
56681
  newMethodReturnType = (0, typeUtils_1.applySolvedTypeVars)(types_1.ClassType.cloneAsInstance(type), new constraintSolution_1.ConstraintSolution(), {
56811
56682
  replaceUnsolved: {
56812
56683
  scopeIds: (0, typeUtils_1.getTypeVarScopeIds)(type),
@@ -57314,6 +57185,7 @@ var require_constructors = __commonJS({
57314
57185
  return skipInitCheck;
57315
57186
  }
57316
57187
  function isDefaultNewMethod(newMethod) {
57188
+ var _a;
57317
57189
  if (!newMethod || !(0, types_1.isFunction)(newMethod)) {
57318
57190
  return false;
57319
57191
  }
@@ -57324,7 +57196,7 @@ var require_constructors = __commonJS({
57324
57196
  if (params[0].category !== 1 || params[1].category !== 2) {
57325
57197
  return false;
57326
57198
  }
57327
- const returnType = newMethod.shared.declaredReturnType ?? newMethod.priv.inferredReturnType;
57199
+ const returnType = newMethod.shared.declaredReturnType ?? ((_a = newMethod.priv.inferredReturnType) == null ? void 0 : _a.type);
57328
57200
  if (!returnType || !(0, types_1.isTypeVar)(returnType) || !types_1.TypeVarType.isSelf(returnType)) {
57329
57201
  return false;
57330
57202
  }
@@ -60257,17 +60129,23 @@ var require_typeGuards = __commonJS({
60257
60129
  void 0,
60258
60130
  (referenceSubtype) => {
60259
60131
  return (0, typeUtils_1.mapSubtypes)(elementType, (elementSubtype) => {
60260
- var _a, _b;
60132
+ var _a, _b, _c;
60261
60133
  if ((0, types_1.isAnyOrUnknown)(elementSubtype)) {
60262
60134
  return referenceSubtype;
60263
60135
  }
60264
- if (evaluator.assignType(referenceSubtype, elementSubtype)) {
60136
+ if (!evaluator.isTypeComparable(elementSubtype, referenceSubtype)) {
60137
+ return void 0;
60138
+ }
60139
+ if ((0, types_1.isClassInstance)(elementSubtype) && ((0, typeUtils_1.isLiteralType)(elementSubtype) || (0, typeUtils_1.isNoneInstance)(elementSubtype)) && evaluator.assignType(referenceSubtype, elementSubtype)) {
60265
60140
  return (0, typeUtils_1.stripTypeForm)((0, typeUtils_1.addConditionToType)(elementSubtype, (_a = referenceSubtype.props) == null ? void 0 : _a.condition));
60266
60141
  }
60267
- if (evaluator.assignType(elementSubtype, referenceSubtype)) {
60142
+ if ((0, types_1.isClassInstance)(referenceSubtype) && ((0, typeUtils_1.isLiteralType)(referenceSubtype) || (0, typeUtils_1.isNoneInstance)(referenceSubtype)) && evaluator.assignType(elementSubtype, referenceSubtype)) {
60268
60143
  return (0, typeUtils_1.stripTypeForm)((0, typeUtils_1.addConditionToType)(referenceSubtype, (_b = elementSubtype.props) == null ? void 0 : _b.condition));
60269
60144
  }
60270
- return void 0;
60145
+ if ((0, types_1.isInstantiableClass)(elementSubtype) && !elementSubtype.priv.includeSubclasses && evaluator.assignType(referenceSubtype, elementSubtype)) {
60146
+ return (0, typeUtils_1.stripTypeForm)((0, typeUtils_1.addConditionToType)(elementSubtype, (_c = referenceSubtype.props) == null ? void 0 : _c.condition));
60147
+ }
60148
+ return referenceSubtype;
60271
60149
  });
60272
60150
  }
60273
60151
  );
@@ -65779,19 +65657,31 @@ var require_protocols = __commonJS({
65779
65657
  });
65780
65658
  if (typesAreConsistent && destType.shared.typeParams.length > 0) {
65781
65659
  const genericProtocolType = types_1.ClassType.specialize(destType, void 0);
65782
- const specializedProtocolType = evaluator.solveAndApplyConstraints(genericProtocolType, protocolConstraints);
65783
- if (destType.priv.typeArgs) {
65784
- if (!evaluator.assignTypeArgs(destType, specializedProtocolType, diag, constraints, flags, recursionCount)) {
65785
- typesAreConsistent = false;
65786
- }
65787
- } else if (constraints) {
65788
- for (const typeParam of destType.shared.typeParams) {
65789
- const typeArgEntry = protocolConstraints.getMainConstraintSet().getTypeVar(typeParam);
65790
- if (typeArgEntry) {
65791
- constraints.copyBounds(typeArgEntry);
65660
+ const constraintSets = protocolConstraints.getConstraintSets();
65661
+ let srcConstraints = protocolConstraints;
65662
+ let destConstraints = constraints;
65663
+ constraintSets.forEach((constraintSet) => {
65664
+ if (constraintSets.length > 1) {
65665
+ srcConstraints = protocolConstraints.cloneWithSignature(constraintSet.getScopeIds());
65666
+ destConstraints = constraints == null ? void 0 : constraints.cloneWithSignature(constraintSet.getScopeIds());
65667
+ }
65668
+ const specializedProtocolType = evaluator.solveAndApplyConstraints(genericProtocolType, srcConstraints);
65669
+ if (destType.priv.typeArgs) {
65670
+ if (!evaluator.assignTypeArgs(destType, specializedProtocolType, diag, destConstraints, flags, recursionCount)) {
65671
+ typesAreConsistent = false;
65672
+ }
65673
+ } else if (destConstraints) {
65674
+ for (const typeParam of destType.shared.typeParams) {
65675
+ const typeArgEntry = constraintSet.getTypeVar(typeParam);
65676
+ if (typeArgEntry) {
65677
+ destConstraints.copyBounds(typeArgEntry);
65678
+ }
65792
65679
  }
65793
65680
  }
65794
- }
65681
+ if (constraintSets.length > 1 && destConstraints) {
65682
+ constraints == null ? void 0 : constraints.addConstraintSets(destConstraints.getConstraintSets());
65683
+ }
65684
+ });
65795
65685
  }
65796
65686
  return typesAreConsistent;
65797
65687
  }
@@ -69594,6 +69484,7 @@ var require_typePrinter = __commonJS({
69594
69484
  exports2.isLiteralValueTruncated = isLiteralValueTruncated;
69595
69485
  exports2.printLiteralValueTruncated = printLiteralValueTruncated;
69596
69486
  exports2.printLiteralValue = printLiteralValue;
69487
+ exports2.getPrintTypeFlags = getPrintTypeFlags;
69597
69488
  var collectionUtils_1 = require_collectionUtils();
69598
69489
  var debug_1 = require_debug();
69599
69490
  var parameterUtils_1 = require_parameterUtils();
@@ -70441,6 +70332,25 @@ var require_typePrinter = __commonJS({
70441
70332
  return false;
70442
70333
  }
70443
70334
  };
70335
+ function getPrintTypeFlags(configOptions) {
70336
+ let flags = 0;
70337
+ if (configOptions.diagnosticRuleSet.printUnknownAsAny) {
70338
+ flags |= 1;
70339
+ }
70340
+ if (configOptions.diagnosticRuleSet.omitConditionalConstraint) {
70341
+ flags |= 64;
70342
+ }
70343
+ if (configOptions.diagnosticRuleSet.omitTypeArgsIfUnknown) {
70344
+ flags |= 2;
70345
+ }
70346
+ if (configOptions.diagnosticRuleSet.omitUnannotatedParamType) {
70347
+ flags |= 4;
70348
+ }
70349
+ if (configOptions.diagnosticRuleSet.pep604Printing) {
70350
+ flags |= 8;
70351
+ }
70352
+ return flags;
70353
+ }
70444
70354
  }
70445
70355
  });
70446
70356
 
@@ -70524,6 +70434,7 @@ var require_typeEvaluator = __commonJS({
70524
70434
  var TypePrinter = __importStar(require_typePrinter());
70525
70435
  var types_1 = require_types();
70526
70436
  var typeUtils_1 = require_typeUtils();
70437
+ var core_1 = require_core();
70527
70438
  var nonSubscriptableBuiltinTypes = /* @__PURE__ */ new Map([
70528
70439
  ["asyncio.futures.Future", pythonVersion_1.pythonVersion3_9],
70529
70440
  ["asyncio.tasks.Task", pythonVersion_1.pythonVersion3_9],
@@ -70582,11 +70493,21 @@ var require_typeEvaluator = __commonJS({
70582
70493
  const signatureTrackerStack = [];
70583
70494
  let prefetched;
70584
70495
  function runWithCancellationToken(token, callback) {
70496
+ const oldToken = cancellationToken;
70497
+ let result = void 0;
70585
70498
  try {
70586
70499
  cancellationToken = token;
70587
- return callback();
70500
+ result = callback();
70501
+ if (!(0, core_1.isThenable)(result)) {
70502
+ return result;
70503
+ }
70504
+ return result.finally(() => {
70505
+ cancellationToken = oldToken;
70506
+ });
70588
70507
  } finally {
70589
- cancellationToken = void 0;
70508
+ if (!(0, core_1.isThenable)(result)) {
70509
+ cancellationToken = oldToken;
70510
+ }
70590
70511
  }
70591
70512
  }
70592
70513
  function checkForCancellation() {
@@ -70922,7 +70843,7 @@ var require_typeEvaluator = __commonJS({
70922
70843
  0
70923
70844
  /* AssignTypeFlags.Default */
70924
70845
  )) {
70925
- typeResult.typeErrors = true;
70846
+ typeResult = { ...typeResult, typeErrors: true };
70926
70847
  typeResult.expectedTypeDiagAddendum = diag;
70927
70848
  diag.addTextRange(node);
70928
70849
  }
@@ -72837,6 +72758,9 @@ var require_typeEvaluator = __commonJS({
72837
72758
  sourceEntryTypes.splice(unboundedIndex, 0, typeToReplicate);
72838
72759
  }
72839
72760
  }
72761
+ if (sourceEntryTypes.length > targetTypes.length) {
72762
+ sourceEntryTypes.splice(unboundedIndex, 1);
72763
+ }
72840
72764
  }
72841
72765
  if (targetUnpackIndex >= 0) {
72842
72766
  if (sourceEntryTypes.length > targetTypes.length) {
@@ -77422,7 +77346,7 @@ var require_typeEvaluator = __commonJS({
77422
77346
  }
77423
77347
  } else {
77424
77348
  let tooManyPositionals = false;
77425
- if (foundUnpackedListArg && argList[argIndex].argCategory === 1) {
77349
+ if (argList[argIndex].argCategory === 1) {
77426
77350
  const argType = getTypeOfArg(
77427
77351
  argList[argIndex],
77428
77352
  /* inferenceContext */
@@ -77430,8 +77354,6 @@ var require_typeEvaluator = __commonJS({
77430
77354
  ).type;
77431
77355
  if ((0, types_1.isClassInstance)(argType) && (0, typeUtils_1.isTupleClass)(argType) && !(0, typeUtils_1.isUnboundedTupleClass)(argType) && argType.priv.tupleTypeArgs !== void 0 && argType.priv.tupleTypeArgs.length > 0) {
77432
77356
  tooManyPositionals = true;
77433
- } else {
77434
- matchedUnpackedListOfUnknownLength = true;
77435
77357
  }
77436
77358
  } else {
77437
77359
  tooManyPositionals = true;
@@ -77503,6 +77425,9 @@ var require_typeEvaluator = __commonJS({
77503
77425
  /* emitNotIterableError */
77504
77426
  false
77505
77427
  )) == null ? void 0 : _a.type;
77428
+ if (paramInfo.param.category === 1) {
77429
+ matchedUnpackedListOfUnknownLength = true;
77430
+ }
77506
77431
  }
77507
77432
  const funcArg = listElementType ? {
77508
77433
  argCategory: 0,
@@ -77916,23 +77841,20 @@ var require_typeEvaluator = __commonJS({
77916
77841
  const param = paramInfo.param;
77917
77842
  if (param.category === 0 && param.name) {
77918
77843
  const entry = paramMap.get(param.name);
77919
- if (entry && entry.argsNeeded === 0 && entry.argsReceived === 0) {
77920
- const defaultArgType = paramInfo.defaultType;
77921
- if (defaultArgType && !(0, typeUtils_1.isEllipsisType)(defaultArgType) && (0, typeUtils_1.requiresSpecialization)(paramInfo.declaredType)) {
77922
- validateArgTypeParams.push({
77923
- paramCategory: param.category,
77924
- paramType: paramInfo.type,
77925
- requiresTypeVarMatching: true,
77926
- argument: {
77927
- argCategory: 0,
77928
- typeResult: { type: defaultArgType }
77929
- },
77930
- isDefaultArg: true,
77931
- errorNode,
77932
- paramName: param.name,
77933
- isParamNameSynthesized: types_1.FunctionParam.isNameSynthesized(param)
77934
- });
77935
- }
77844
+ if (entry && entry.argsNeeded === 0 && entry.argsReceived === 0 && paramInfo.defaultType) {
77845
+ validateArgTypeParams.push({
77846
+ paramCategory: param.category,
77847
+ paramType: paramInfo.type,
77848
+ requiresTypeVarMatching: true,
77849
+ argument: {
77850
+ argCategory: 0,
77851
+ typeResult: { type: paramInfo.defaultType }
77852
+ },
77853
+ isDefaultArg: true,
77854
+ errorNode,
77855
+ paramName: param.name,
77856
+ isParamNameSynthesized: types_1.FunctionParam.isNameSynthesized(param)
77857
+ });
77936
77858
  }
77937
77859
  }
77938
77860
  });
@@ -77999,7 +77921,7 @@ var require_typeEvaluator = __commonJS({
77999
77921
  }
78000
77922
  let relevance = 0;
78001
77923
  if (matchedUnpackedListOfUnknownLength) {
78002
- relevance--;
77924
+ relevance++;
78003
77925
  }
78004
77926
  if (types_1.FunctionType.isBuiltIn(overload, ["isinstance", "issubclass"]) && validateArgTypeParams.length === 2) {
78005
77927
  validateArgTypeParams[1].isinstanceParam = true;
@@ -78935,6 +78857,12 @@ var require_typeEvaluator = __commonJS({
78935
78857
  addDiagnostic(diagnosticRules_1.DiagnosticRule.reportGeneralTypeIssues, localize_1.LocMessage.typeAliasTypeMustBeAssigned(), errorNode);
78936
78858
  return void 0;
78937
78859
  }
78860
+ const scope = ScopeUtils.getScopeForNode(errorNode);
78861
+ if (scope) {
78862
+ if (scope.type !== 3 && scope.type !== 4 && scope.type !== 5) {
78863
+ addDiagnostic(diagnosticRules_1.DiagnosticRule.reportGeneralTypeIssues, localize_1.LocMessage.typeAliasTypeBadScope(), errorNode.parent.d.leftExpr);
78864
+ }
78865
+ }
78938
78866
  const nameNode = errorNode.parent.d.leftExpr;
78939
78867
  const firstArg = argList[0];
78940
78868
  if (firstArg.valueExpression && firstArg.valueExpression.nodeType === 48) {
@@ -80136,7 +80064,9 @@ var require_typeEvaluator = __commonJS({
80136
80064
  void 0,
80137
80065
  (0, typeUtils_1.makeInferenceContext)(expectedReturnType)
80138
80066
  );
80139
- functionType.priv.inferredReturnType = returnTypeResult.type;
80067
+ functionType.priv.inferredReturnType = {
80068
+ type: returnTypeResult.type
80069
+ };
80140
80070
  if (returnTypeResult.isIncomplete) {
80141
80071
  isIncomplete = true;
80142
80072
  }
@@ -81926,13 +81856,11 @@ var require_typeEvaluator = __commonJS({
81926
81856
  addDiagnostic(diagnosticRules_1.DiagnosticRule.reportGeneralTypeIssues, localize_1.LocMessage.typedDictBoolParam().format({ name: arg.d.name.d.value }), arg.d.valueExpr);
81927
81857
  } else if (arg.d.name.d.value === "total" && !constArgValue) {
81928
81858
  classType.shared.flags |= 32;
81929
- } else if (arg.d.name.d.value === "closed") {
81859
+ } else if (arg.d.name.d.value === "closed" && AnalyzerNodeInfo.getFileInfo(node).diagnosticRuleSet.enableExperimentalFeatures) {
81930
81860
  if (constArgValue) {
81931
- if (AnalyzerNodeInfo.getFileInfo(node).diagnosticRuleSet.enableExperimentalFeatures) {
81932
- classType.shared.flags |= 8 | 16;
81933
- if (classType.shared.typedDictExtraItemsExpr) {
81934
- addDiagnostic(diagnosticRules_1.DiagnosticRule.reportGeneralTypeIssues, localize_1.LocMessage.typedDictExtraItemsClosed(), classType.shared.typedDictExtraItemsExpr);
81935
- }
81861
+ classType.shared.flags |= 8 | 16;
81862
+ if (classType.shared.typedDictExtraItemsExpr) {
81863
+ addDiagnostic(diagnosticRules_1.DiagnosticRule.reportGeneralTypeIssues, localize_1.LocMessage.typedDictExtraItemsClosed(), classType.shared.typedDictExtraItemsExpr);
81936
81864
  }
81937
81865
  }
81938
81866
  if (sawClosedOrExtraItems) {
@@ -81940,13 +81868,11 @@ var require_typeEvaluator = __commonJS({
81940
81868
  }
81941
81869
  sawClosedOrExtraItems = true;
81942
81870
  }
81943
- } else if (arg.d.name.d.value === "extra_items") {
81944
- if (AnalyzerNodeInfo.getFileInfo(node).diagnosticRuleSet.enableExperimentalFeatures) {
81945
- classType.shared.typedDictExtraItemsExpr = arg.d.valueExpr;
81946
- classType.shared.flags |= 16;
81947
- if (types_1.ClassType.isTypedDictMarkedClosed(classType)) {
81948
- addDiagnostic(diagnosticRules_1.DiagnosticRule.reportGeneralTypeIssues, localize_1.LocMessage.typedDictExtraItemsClosed(), classType.shared.typedDictExtraItemsExpr);
81949
- }
81871
+ } else if (arg.d.name.d.value === "extra_items" && AnalyzerNodeInfo.getFileInfo(node).diagnosticRuleSet.enableExperimentalFeatures) {
81872
+ classType.shared.typedDictExtraItemsExpr = arg.d.valueExpr;
81873
+ classType.shared.flags |= 16;
81874
+ if (types_1.ClassType.isTypedDictMarkedClosed(classType)) {
81875
+ addDiagnostic(diagnosticRules_1.DiagnosticRule.reportGeneralTypeIssues, localize_1.LocMessage.typedDictExtraItemsClosed(), classType.shared.typedDictExtraItemsExpr);
81950
81876
  }
81951
81877
  if (sawClosedOrExtraItems) {
81952
81878
  addDiagnostic(diagnosticRules_1.DiagnosticRule.reportGeneralTypeIssues, localize_1.LocMessage.typedDictExtraItemsClosed(), arg.d.valueExpr);
@@ -83035,7 +82961,9 @@ var require_typeEvaluator = __commonJS({
83035
82961
  if (functionType.shared.declaredReturnType) {
83036
82962
  awaitableFunctionType.shared.declaredReturnType = createAwaitableReturnType(node, functionType.shared.declaredReturnType, types_1.FunctionType.isGenerator(functionType));
83037
82963
  } else {
83038
- awaitableFunctionType.priv.inferredReturnType = createAwaitableReturnType(node, getInferredReturnType(functionType), types_1.FunctionType.isGenerator(functionType));
82964
+ awaitableFunctionType.priv.inferredReturnType = {
82965
+ type: createAwaitableReturnType(node, getInferredReturnType(functionType), types_1.FunctionType.isGenerator(functionType))
82966
+ };
83039
82967
  }
83040
82968
  return awaitableFunctionType;
83041
82969
  }
@@ -85899,8 +85827,8 @@ var require_typeEvaluator = __commonJS({
85899
85827
  if (types_1.FunctionType.isOverloaded(type) && !types_1.FunctionType.isSynthesizedMethod(type)) {
85900
85828
  return types_1.UnknownType.create();
85901
85829
  }
85902
- if (type.priv.inferredReturnType) {
85903
- returnType = type.priv.inferredReturnType;
85830
+ if (type.priv.inferredReturnType && !type.priv.inferredReturnType.isIncomplete) {
85831
+ returnType = type.priv.inferredReturnType.type;
85904
85832
  } else {
85905
85833
  if (types_1.FunctionType.isInstanceMethod(type) && type.shared.name === "__init__") {
85906
85834
  returnType = getNoneType();
@@ -85933,9 +85861,7 @@ var require_typeEvaluator = __commonJS({
85933
85861
  typeVarScopes.push(type.shared.methodClass.shared.typeVarScopeId);
85934
85862
  }
85935
85863
  returnType = (0, typeUtils_1.makeTypeVarsFree)(returnType, typeVarScopes);
85936
- if (!isIncomplete) {
85937
- type.priv.inferredReturnType = returnType;
85938
- }
85864
+ type.priv.inferredReturnType = { type: returnType, isIncomplete };
85939
85865
  }
85940
85866
  if (!isIncomplete && analyzeUnannotatedFunctions && (0, typeUtils_1.isPartlyUnknown)(returnType) && types_1.FunctionType.hasUnannotatedParams(type) && !types_1.FunctionType.isStubDefinition(type) && !types_1.FunctionType.isPyTypedDefinition(type) && callSiteInfo) {
85941
85867
  let hasDecorators = false;
@@ -86140,13 +86066,6 @@ var require_typeEvaluator = __commonJS({
86140
86066
  if (!(0, typedDicts_1.assignTypedDictToTypedDict)(evaluatorInterface, destType, srcType, diag, constraints, flags, recursionCount)) {
86141
86067
  return false;
86142
86068
  }
86143
- if (types_1.ClassType.isFinal(destType) !== types_1.ClassType.isFinal(srcType)) {
86144
- diag == null ? void 0 : diag.addMessage(localize_1.LocAddendum.typedDictFinalMismatch().format({
86145
- sourceType: printType((0, typeUtils_1.convertToInstance)(srcType)),
86146
- destType: printType((0, typeUtils_1.convertToInstance)(destType))
86147
- }));
86148
- return false;
86149
- }
86150
86069
  if ((flags & 1) !== 0) {
86151
86070
  return (0, typedDicts_1.assignTypedDictToTypedDict)(
86152
86071
  evaluatorInterface,
@@ -86765,6 +86684,18 @@ var require_typeEvaluator = __commonJS({
86765
86684
  }
86766
86685
  }
86767
86686
  let concreteSrcType = makeTopLevelTypeVarsConcrete(srcType);
86687
+ if (types_1.ClassType.isBuiltIn(destType, "TypeForm")) {
86688
+ const destTypeArg = destType.priv.typeArgs && destType.priv.typeArgs.length > 0 ? destType.priv.typeArgs[0] : types_1.UnknownType.create();
86689
+ let srcTypeArg;
86690
+ if ((0, types_1.isClassInstance)(concreteSrcType) && types_1.ClassType.isBuiltIn(concreteSrcType, "type")) {
86691
+ srcTypeArg = concreteSrcType;
86692
+ } else if ((0, types_1.isInstantiableClass)(concreteSrcType)) {
86693
+ srcTypeArg = (0, typeUtils_1.convertToInstance)(concreteSrcType);
86694
+ }
86695
+ if (srcTypeArg) {
86696
+ return assignType(destTypeArg, srcTypeArg, diag, constraints, flags, recursionCount);
86697
+ }
86698
+ }
86768
86699
  if ((0, types_1.isClass)(concreteSrcType) && types_1.TypeBase.isInstance(concreteSrcType)) {
86769
86700
  if (!destType.priv.isUnpacked && concreteSrcType.priv.isUnpacked && concreteSrcType.priv.tupleTypeArgs) {
86770
86701
  return assignType(destType, (0, typeUtils_1.combineTupleTypeArgs)(concreteSrcType.priv.tupleTypeArgs), diag, constraints, flags, recursionCount);
@@ -86891,7 +86822,7 @@ var require_typeEvaluator = __commonJS({
86891
86822
  const typeVarSignatures = [];
86892
86823
  overloads.forEach((overload) => {
86893
86824
  const overloadScopeId = (0, typeUtils_1.getTypeVarScopeId)(overload) ?? "";
86894
- const constraintsClone = constraints == null ? void 0 : constraints.cloneWithSignature(overloadScopeId);
86825
+ const constraintsClone = constraints == null ? void 0 : constraints.cloneWithSignature([overloadScopeId]);
86895
86826
  if (assignType(
86896
86827
  destType,
86897
86828
  overload,
@@ -87041,6 +86972,9 @@ var require_typeEvaluator = __commonJS({
87041
86972
  if ((0, types_1.isTypeSame)(srcType, destType, {}, recursionCount)) {
87042
86973
  return true;
87043
86974
  }
86975
+ if ((flags & 16) !== 0 && srcType.priv.subtypes.some((subtype) => (0, types_1.isAnyOrUnknown)(subtype))) {
86976
+ return false;
86977
+ }
87044
86978
  let sortedSrcTypes = (0, typeUtils_1.sortTypes)(srcType.priv.subtypes);
87045
86979
  let matchedSomeSubtypes = false;
87046
86980
  if ((0, types_1.isUnion)(destType)) {
@@ -87291,6 +87225,109 @@ var require_typeEvaluator = __commonJS({
87291
87225
  recursionCount
87292
87226
  );
87293
87227
  }
87228
+ function isTypeComparable(leftType, rightType) {
87229
+ var _a, _b;
87230
+ if ((0, types_1.isAnyOrUnknown)(leftType) || (0, types_1.isAnyOrUnknown)(rightType)) {
87231
+ return true;
87232
+ }
87233
+ if ((0, types_1.isNever)(leftType) || (0, types_1.isNever)(rightType)) {
87234
+ return false;
87235
+ }
87236
+ if ((0, types_1.isModule)(leftType) || (0, types_1.isModule)(rightType)) {
87237
+ return (0, types_1.isTypeSame)(leftType, rightType, { ignoreConditions: true });
87238
+ }
87239
+ const isLeftCallable = (0, types_1.isFunction)(leftType) || (0, types_1.isOverloaded)(leftType);
87240
+ const isRightCallable = (0, types_1.isFunction)(rightType) || (0, types_1.isOverloaded)(rightType);
87241
+ if (isLeftCallable !== isRightCallable) {
87242
+ return false;
87243
+ }
87244
+ if ((0, types_1.isInstantiableClass)(leftType) || (0, types_1.isClassInstance)(leftType) && types_1.ClassType.isBuiltIn(leftType, "type")) {
87245
+ if ((0, types_1.isInstantiableClass)(rightType) || (0, types_1.isClassInstance)(rightType) && types_1.ClassType.isBuiltIn(rightType, "type")) {
87246
+ const genericLeftType = types_1.ClassType.specialize(
87247
+ leftType,
87248
+ /* typeArgs */
87249
+ void 0
87250
+ );
87251
+ const genericRightType = types_1.ClassType.specialize(
87252
+ rightType,
87253
+ /* typeArgs */
87254
+ void 0
87255
+ );
87256
+ if (assignType(genericLeftType, genericRightType) || assignType(genericRightType, genericLeftType)) {
87257
+ return true;
87258
+ }
87259
+ }
87260
+ const metaclass = leftType.shared.effectiveMetaclass;
87261
+ if (metaclass && (0, types_1.isClass)(metaclass)) {
87262
+ if ((0, typeUtils_1.lookUpClassMember)(
87263
+ metaclass,
87264
+ "__eq__",
87265
+ 4
87266
+ /* MemberAccessFlags.SkipObjectBaseClass */
87267
+ )) {
87268
+ return true;
87269
+ }
87270
+ }
87271
+ return false;
87272
+ }
87273
+ if ((0, types_1.isClassInstance)(leftType)) {
87274
+ if ((0, types_1.isClass)(rightType)) {
87275
+ const genericLeftType = types_1.ClassType.specialize(
87276
+ leftType,
87277
+ /* typeArgs */
87278
+ void 0
87279
+ );
87280
+ const genericRightType = types_1.ClassType.specialize(
87281
+ rightType,
87282
+ /* typeArgs */
87283
+ void 0
87284
+ );
87285
+ if (assignType(genericLeftType, genericRightType) || assignType(genericRightType, genericLeftType)) {
87286
+ return true;
87287
+ }
87288
+ if (types_1.ClassType.isBuiltIn(leftType) && types_1.ClassType.isBuiltIn(rightType) && types_1.TypeBase.isInstance(rightType)) {
87289
+ let boolType;
87290
+ let intType;
87291
+ if (types_1.ClassType.isBuiltIn(leftType, "bool") && types_1.ClassType.isBuiltIn(rightType, "int")) {
87292
+ boolType = leftType;
87293
+ intType = rightType;
87294
+ } else if (types_1.ClassType.isBuiltIn(rightType, "bool") && types_1.ClassType.isBuiltIn(leftType, "int")) {
87295
+ boolType = rightType;
87296
+ intType = leftType;
87297
+ }
87298
+ if (boolType && intType) {
87299
+ const intVal = (_a = intType.priv) == null ? void 0 : _a.literalValue;
87300
+ if (intVal === void 0) {
87301
+ return true;
87302
+ }
87303
+ if (intVal !== 0 && intVal !== 1) {
87304
+ return false;
87305
+ }
87306
+ const boolVal = (_b = boolType.priv) == null ? void 0 : _b.literalValue;
87307
+ if (boolVal === void 0) {
87308
+ return true;
87309
+ }
87310
+ return boolVal === (intVal === 1);
87311
+ }
87312
+ return false;
87313
+ }
87314
+ }
87315
+ const eqMethod = (0, typeUtils_1.lookUpClassMember)(
87316
+ types_1.ClassType.cloneAsInstantiable(leftType),
87317
+ "__eq__",
87318
+ 4
87319
+ /* MemberAccessFlags.SkipObjectBaseClass */
87320
+ );
87321
+ if (eqMethod) {
87322
+ if (types_1.ClassType.isDataClass(leftType) && eqMethod.symbol.getSynthesizedType()) {
87323
+ return false;
87324
+ }
87325
+ return true;
87326
+ }
87327
+ return false;
87328
+ }
87329
+ return true;
87330
+ }
87294
87331
  function assignToUnionType(destType, srcType, diag, constraints, flags, recursionCount) {
87295
87332
  if (flags & 1) {
87296
87333
  let isIncompatible = false;
@@ -87466,17 +87503,23 @@ var require_typeEvaluator = __commonJS({
87466
87503
  for (const mroClass of objType.shared.mro) {
87467
87504
  if ((0, types_1.isClass)(mroClass) && types_1.ClassType.isProtocolClass(mroClass)) {
87468
87505
  for (const field of types_1.ClassType.getSymbolTable(mroClass)) {
87469
- if (field[0] !== "__call__" && !field[1].isIgnoredForProtocolMatch()) {
87470
- let fieldIsPartOfFunction = false;
87471
- if ((prefetched == null ? void 0 : prefetched.functionClass) && (0, types_1.isClass)(prefetched.functionClass)) {
87472
- if (types_1.ClassType.getSymbolTable(prefetched.functionClass).has(field[0])) {
87473
- fieldIsPartOfFunction = true;
87474
- }
87475
- }
87476
- if (!fieldIsPartOfFunction) {
87477
- return void 0;
87506
+ const fieldName = field[0];
87507
+ const fieldSymbol = field[1];
87508
+ if (fieldName === "__call__" || fieldName === "__slots__") {
87509
+ continue;
87510
+ }
87511
+ if (fieldSymbol.isIgnoredForProtocolMatch()) {
87512
+ continue;
87513
+ }
87514
+ let fieldIsPartOfFunction = false;
87515
+ if ((prefetched == null ? void 0 : prefetched.functionClass) && (0, types_1.isClass)(prefetched.functionClass)) {
87516
+ if (types_1.ClassType.getSymbolTable(prefetched.functionClass).has(field[0])) {
87517
+ fieldIsPartOfFunction = true;
87478
87518
  }
87479
87519
  }
87520
+ if (!fieldIsPartOfFunction) {
87521
+ return void 0;
87522
+ }
87480
87523
  }
87481
87524
  }
87482
87525
  }
@@ -87646,6 +87689,7 @@ var require_typeEvaluator = __commonJS({
87646
87689
  const destPositionalCount = destParamDetails.firstKeywordOnlyIndex ?? destParamDetails.params.length;
87647
87690
  const srcPositionalCount = srcParamDetails.firstKeywordOnlyIndex ?? srcParamDetails.params.length;
87648
87691
  const positionalsToMatch = Math.min(destPositionalCount, srcPositionalCount);
87692
+ const skippedPosParamIndices = [];
87649
87693
  for (let paramIndex = 0; paramIndex < positionalsToMatch; paramIndex++) {
87650
87694
  if (paramIndex === 0 && destType.shared.methodClass && (flags & 32768) !== 0) {
87651
87695
  if (types_1.FunctionType.isInstanceMethod(destType) || types_1.FunctionType.isClassMethod(destType)) {
@@ -87653,6 +87697,9 @@ var require_typeEvaluator = __commonJS({
87653
87697
  }
87654
87698
  }
87655
87699
  if (paramIndex === destParamDetails.argsIndex) {
87700
+ if (!(0, types_1.isUnpackedTypeVarTuple)(destParamDetails.params[destParamDetails.argsIndex].type)) {
87701
+ skippedPosParamIndices.push(paramIndex);
87702
+ }
87656
87703
  continue;
87657
87704
  }
87658
87705
  const destParam = destParamDetails.params[paramIndex];
@@ -87716,6 +87763,9 @@ var require_typeEvaluator = __commonJS({
87716
87763
  }
87717
87764
  if (destPositionalCount < srcPositionalCount && !targetIncludesParamSpec) {
87718
87765
  for (let i = destPositionalCount; i < srcPositionalCount; i++) {
87766
+ skippedPosParamIndices.push(i);
87767
+ }
87768
+ for (const i of skippedPosParamIndices) {
87719
87769
  if (destParamDetails.argsIndex !== void 0) {
87720
87770
  const destArgsType = destParamDetails.params[destParamDetails.argsIndex].type;
87721
87771
  const srcParamType = srcParamDetails.params[i].type;
@@ -88663,25 +88713,35 @@ var require_typeEvaluator = __commonJS({
88663
88713
  }
88664
88714
  function partiallySpecializeBoundMethod(baseType, memberType, diag, recursionCount, firstParamType, stripFirstParam = true) {
88665
88715
  const constraints = new constraintTracker_1.ConstraintTracker();
88666
- if (firstParamType && memberType.shared.parameters.length > 0) {
88667
- const memberTypeFirstParam = memberType.shared.parameters[0];
88668
- const memberTypeFirstParamType = types_1.FunctionType.getParamType(memberType, 0);
88669
- if ((0, types_1.isTypeVar)(memberTypeFirstParamType) && memberTypeFirstParamType.shared.boundType && (0, types_1.isClassInstance)(memberTypeFirstParamType.shared.boundType) && types_1.ClassType.isProtocolClass(memberTypeFirstParamType.shared.boundType)) {
88670
- constraints.setBounds(memberTypeFirstParamType, types_1.TypeBase.isInstantiable(memberTypeFirstParamType) ? (0, typeUtils_1.convertToInstance)(firstParamType) : firstParamType);
88671
- } else {
88672
- const subDiag = diag == null ? void 0 : diag.createAddendum();
88673
- if (!assignType(memberTypeFirstParamType, firstParamType, subDiag == null ? void 0 : subDiag.createAddendum(), constraints, 8192, recursionCount)) {
88674
- if (memberTypeFirstParam.name && !types_1.FunctionParam.isNameSynthesized(memberTypeFirstParam) && types_1.FunctionParam.isTypeDeclared(memberTypeFirstParam)) {
88675
- if (subDiag) {
88676
- subDiag.addMessage(localize_1.LocMessage.bindTypeMismatch().format({
88677
- type: printType(firstParamType),
88678
- methodName: memberType.shared.name || "<anonymous>",
88679
- paramName: memberTypeFirstParam.name
88680
- }));
88716
+ if (firstParamType) {
88717
+ if (memberType.shared.parameters.length > 0) {
88718
+ const memberTypeFirstParam = memberType.shared.parameters[0];
88719
+ const memberTypeFirstParamType = types_1.FunctionType.getParamType(memberType, 0);
88720
+ if ((0, types_1.isTypeVar)(memberTypeFirstParamType) && memberTypeFirstParamType.shared.boundType && (0, types_1.isClassInstance)(memberTypeFirstParamType.shared.boundType) && types_1.ClassType.isProtocolClass(memberTypeFirstParamType.shared.boundType)) {
88721
+ constraints.setBounds(memberTypeFirstParamType, types_1.TypeBase.isInstantiable(memberTypeFirstParamType) ? (0, typeUtils_1.convertToInstance)(firstParamType) : firstParamType);
88722
+ } else {
88723
+ const subDiag = diag == null ? void 0 : diag.createAddendum();
88724
+ if (!assignType(memberTypeFirstParamType, firstParamType, subDiag == null ? void 0 : subDiag.createAddendum(), constraints, 8192, recursionCount)) {
88725
+ if (memberTypeFirstParam.name && !types_1.FunctionParam.isNameSynthesized(memberTypeFirstParam) && types_1.FunctionParam.isTypeDeclared(memberTypeFirstParam)) {
88726
+ if (subDiag) {
88727
+ subDiag.addMessage(localize_1.LocMessage.bindTypeMismatch().format({
88728
+ type: printType(firstParamType),
88729
+ methodName: memberType.shared.name || "<anonymous>",
88730
+ paramName: memberTypeFirstParam.name
88731
+ }));
88732
+ }
88733
+ return void 0;
88681
88734
  }
88682
- return void 0;
88683
88735
  }
88684
88736
  }
88737
+ } else {
88738
+ const subDiag = diag == null ? void 0 : diag.createAddendum();
88739
+ if (subDiag) {
88740
+ subDiag.addMessage(localize_1.LocMessage.bindParamMissing().format({
88741
+ methodName: memberType.shared.name || "<anonymous>"
88742
+ }));
88743
+ }
88744
+ return void 0;
88685
88745
  }
88686
88746
  }
88687
88747
  getEffectiveReturnType(memberType);
@@ -88985,6 +89045,7 @@ var require_typeEvaluator = __commonJS({
88985
89045
  getCallSignatureInfo,
88986
89046
  getAbstractSymbols,
88987
89047
  narrowConstrainedTypeVar,
89048
+ isTypeComparable,
88988
89049
  assignType,
88989
89050
  validateOverrideMethod,
88990
89051
  validateCallArgs,
@@ -90300,7 +90361,7 @@ var require_checker = __commonJS({
90300
90361
  if (isComparable) {
90301
90362
  return;
90302
90363
  }
90303
- if (this._isTypeComparable(leftSubtype, rightSubtype)) {
90364
+ if (this._evaluator.isTypeComparable(leftSubtype, rightSubtype)) {
90304
90365
  isComparable = true;
90305
90366
  }
90306
90367
  return rightSubtype;
@@ -90317,88 +90378,6 @@ var require_checker = __commonJS({
90317
90378
  }
90318
90379
  }
90319
90380
  }
90320
- // Determines whether the two types are potentially comparable -- i.e.
90321
- // their types overlap in such a way that it makes sense for them to
90322
- // be compared with an == or != operator.
90323
- _isTypeComparable(leftType, rightType) {
90324
- if ((0, types_1.isAnyOrUnknown)(leftType) || (0, types_1.isAnyOrUnknown)(rightType)) {
90325
- return true;
90326
- }
90327
- if ((0, types_1.isNever)(leftType) || (0, types_1.isNever)(rightType)) {
90328
- return false;
90329
- }
90330
- if ((0, types_1.isModule)(leftType) || (0, types_1.isModule)(rightType)) {
90331
- return (0, types_1.isTypeSame)(leftType, rightType, { ignoreConditions: true });
90332
- }
90333
- const isLeftCallable = (0, types_1.isFunction)(leftType) || (0, types_1.isOverloaded)(leftType);
90334
- const isRightCallable = (0, types_1.isFunction)(rightType) || (0, types_1.isOverloaded)(rightType);
90335
- if (isLeftCallable !== isRightCallable) {
90336
- return false;
90337
- }
90338
- if ((0, types_1.isInstantiableClass)(leftType) || (0, types_1.isClassInstance)(leftType) && types_1.ClassType.isBuiltIn(leftType, "type")) {
90339
- if ((0, types_1.isInstantiableClass)(rightType) || (0, types_1.isClassInstance)(rightType) && types_1.ClassType.isBuiltIn(rightType, "type")) {
90340
- const genericLeftType = types_1.ClassType.specialize(
90341
- leftType,
90342
- /* typeArgs */
90343
- void 0
90344
- );
90345
- const genericRightType = types_1.ClassType.specialize(
90346
- rightType,
90347
- /* typeArgs */
90348
- void 0
90349
- );
90350
- if (this._evaluator.assignType(genericLeftType, genericRightType) || this._evaluator.assignType(genericRightType, genericLeftType)) {
90351
- return true;
90352
- }
90353
- }
90354
- const metaclass = leftType.shared.effectiveMetaclass;
90355
- if (metaclass && (0, types_1.isClass)(metaclass)) {
90356
- if ((0, typeUtils_1.lookUpClassMember)(
90357
- metaclass,
90358
- "__eq__",
90359
- 4
90360
- /* MemberAccessFlags.SkipObjectBaseClass */
90361
- )) {
90362
- return true;
90363
- }
90364
- }
90365
- return false;
90366
- }
90367
- if ((0, types_1.isClassInstance)(leftType)) {
90368
- if ((0, types_1.isClass)(rightType)) {
90369
- const genericLeftType = types_1.ClassType.specialize(
90370
- leftType,
90371
- /* typeArgs */
90372
- void 0
90373
- );
90374
- const genericRightType = types_1.ClassType.specialize(
90375
- rightType,
90376
- /* typeArgs */
90377
- void 0
90378
- );
90379
- if (this._evaluator.assignType(genericLeftType, genericRightType) || this._evaluator.assignType(genericRightType, genericLeftType)) {
90380
- return true;
90381
- }
90382
- if (types_1.ClassType.isBuiltIn(leftType) && types_1.ClassType.isBuiltIn(rightType) && types_1.TypeBase.isInstance(rightType)) {
90383
- return false;
90384
- }
90385
- }
90386
- const eqMethod = (0, typeUtils_1.lookUpClassMember)(
90387
- types_1.ClassType.cloneAsInstantiable(leftType),
90388
- "__eq__",
90389
- 4
90390
- /* MemberAccessFlags.SkipObjectBaseClass */
90391
- );
90392
- if (eqMethod) {
90393
- if (types_1.ClassType.isDataClass(leftType) && eqMethod.symbol.getSynthesizedType()) {
90394
- return false;
90395
- }
90396
- return true;
90397
- }
90398
- return false;
90399
- }
90400
- return true;
90401
- }
90402
90381
  // If the function is a generator, validates that its annotated return type
90403
90382
  // is appropriate for a generator.
90404
90383
  _validateGeneratorReturnType(node, functionType) {
@@ -93283,22 +93262,7 @@ var require_checker = __commonJS({
93283
93262
  }
93284
93263
  if ((0, types_1.isFunction)(baseType) || (0, types_1.isOverloaded)(baseType)) {
93285
93264
  const diagAddendum = new diagnostic_1.DiagnosticAddendum();
93286
- let reportFinalMethodOverride = false;
93287
- if (!SymbolNameUtils.isPrivateName(memberName)) {
93288
- if ((0, types_1.isFunction)(baseType) && types_1.FunctionType.isFinal(baseType)) {
93289
- reportFinalMethodOverride = true;
93290
- } else if ((0, types_1.isOverloaded)(baseType)) {
93291
- const overloads = types_1.OverloadedType.getOverloads(baseType);
93292
- const impl = types_1.OverloadedType.getImplementation(baseType);
93293
- if (overloads.some((overload) => types_1.FunctionType.isFinal(overload))) {
93294
- reportFinalMethodOverride = true;
93295
- }
93296
- if (impl && (0, types_1.isFunction)(impl) && types_1.FunctionType.isFinal(impl)) {
93297
- reportFinalMethodOverride = true;
93298
- }
93299
- }
93300
- }
93301
- if (reportFinalMethodOverride) {
93265
+ if (this._isFinalFunction(memberName, baseType)) {
93302
93266
  const decl = (0, symbolUtils_1.getLastTypedDeclarationForSymbol)(overrideSymbol);
93303
93267
  if (decl && decl.type === 5) {
93304
93268
  const diag = this._evaluator.addDiagnostic(diagnosticRules_1.DiagnosticRule.reportIncompatibleMethodOverride, localize_1.LocMessage.finalMethodOverride().format({
@@ -93311,41 +93275,50 @@ var require_checker = __commonJS({
93311
93275
  }
93312
93276
  }
93313
93277
  }
93278
+ if (this._isMethodExemptFromLsp(memberName) || SymbolNameUtils.isPrivateName(memberName) || types_1.ClassType.isTypedDictClass(childClassType)) {
93279
+ return;
93280
+ }
93314
93281
  if ((0, types_1.isFunction)(overrideType) || (0, types_1.isOverloaded)(overrideType)) {
93315
93282
  const enforceParamNameMatch = !SymbolNameUtils.isDunderName(memberName);
93316
- if (!this._isMethodExemptFromLsp(memberName) && !SymbolNameUtils.isPrivateName(memberName) && !types_1.ClassType.isTypedDictClass(childClassType)) {
93317
- if (!this._evaluator.validateOverrideMethod(baseType, overrideType, childClassType, diagAddendum, enforceParamNameMatch)) {
93318
- const decl = (0, symbolUtils_1.getLastTypedDeclarationForSymbol)(overrideSymbol);
93319
- if (decl) {
93320
- const diag = this._evaluator.addDiagnostic(diagnosticRules_1.DiagnosticRule.reportIncompatibleMethodOverride, localize_1.LocMessage.incompatibleMethodOverride().format({
93321
- name: memberName,
93322
- className: baseClass.shared.name
93323
- }) + diagAddendum.getString(), (0, declarationUtils_1.getNameNodeForDeclaration)(decl) ?? decl.node);
93324
- const origDecl = (0, symbolUtils_1.getLastTypedDeclarationForSymbol)(baseClassAndSymbol.symbol);
93325
- if (diag && origDecl) {
93326
- diag.addRelatedInfo(localize_1.LocAddendum.overriddenMethod(), origDecl.uri, origDecl.range);
93327
- }
93328
- }
93329
- }
93283
+ if (this._evaluator.validateOverrideMethod(baseType, overrideType, childClassType, diagAddendum, enforceParamNameMatch)) {
93284
+ return;
93330
93285
  }
93331
- } else if (!(0, types_1.isAnyOrUnknown)(overrideType)) {
93332
- if (!types_1.ClassType.isBuiltIn(baseClass, "_TypedDict")) {
93333
- const decls = overrideSymbol.getDeclarations();
93334
- if (decls.length > 0) {
93335
- const lastDecl = decls[decls.length - 1];
93336
- const diag = this._evaluator.addDiagnostic(diagnosticRules_1.DiagnosticRule.reportIncompatibleMethodOverride, localize_1.LocMessage.methodOverridden().format({
93337
- name: memberName,
93338
- className: baseClass.shared.name,
93339
- type: this._evaluator.printType(overrideType)
93340
- }), (0, declarationUtils_1.getNameNodeForDeclaration)(lastDecl) ?? lastDecl.node);
93341
- const origDecl = (0, symbolUtils_1.getLastTypedDeclarationForSymbol)(baseClassAndSymbol.symbol);
93342
- if (diag && origDecl) {
93343
- diag.addRelatedInfo(localize_1.LocAddendum.overriddenMethod(), origDecl.uri, origDecl.range);
93344
- }
93345
- }
93286
+ const decl = (0, symbolUtils_1.getLastTypedDeclarationForSymbol)(overrideSymbol);
93287
+ if (!decl) {
93288
+ return;
93289
+ }
93290
+ const diag = this._evaluator.addDiagnostic(diagnosticRules_1.DiagnosticRule.reportIncompatibleMethodOverride, localize_1.LocMessage.incompatibleMethodOverride().format({
93291
+ name: memberName,
93292
+ className: baseClass.shared.name
93293
+ }) + diagAddendum.getString(), (0, declarationUtils_1.getNameNodeForDeclaration)(decl) ?? decl.node);
93294
+ const origDecl = (0, symbolUtils_1.getLastTypedDeclarationForSymbol)(baseClassAndSymbol.symbol);
93295
+ if (diag && origDecl) {
93296
+ diag.addRelatedInfo(localize_1.LocAddendum.overriddenMethod(), origDecl.uri, origDecl.range);
93297
+ }
93298
+ return;
93299
+ }
93300
+ if (!(0, types_1.isAnyOrUnknown)(overrideType)) {
93301
+ if (types_1.ClassType.isBuiltIn(baseClass, "_TypedDict")) {
93302
+ return;
93303
+ }
93304
+ const decls = overrideSymbol.getDeclarations();
93305
+ if (decls.length === 0) {
93306
+ return;
93307
+ }
93308
+ const lastDecl = decls[decls.length - 1];
93309
+ const diag = this._evaluator.addDiagnostic(diagnosticRules_1.DiagnosticRule.reportIncompatibleMethodOverride, localize_1.LocMessage.methodOverridden().format({
93310
+ name: memberName,
93311
+ className: baseClass.shared.name,
93312
+ type: this._evaluator.printType(overrideType)
93313
+ }), (0, declarationUtils_1.getNameNodeForDeclaration)(lastDecl) ?? lastDecl.node);
93314
+ const origDecl = (0, symbolUtils_1.getLastTypedDeclarationForSymbol)(baseClassAndSymbol.symbol);
93315
+ if (diag && origDecl) {
93316
+ diag.addRelatedInfo(localize_1.LocAddendum.overriddenMethod(), origDecl.uri, origDecl.range);
93346
93317
  }
93347
93318
  }
93348
- } else if ((0, typeUtils_1.isProperty)(baseType)) {
93319
+ return;
93320
+ }
93321
+ if ((0, typeUtils_1.isProperty)(baseType)) {
93349
93322
  if (!(0, typeUtils_1.isProperty)(overrideType)) {
93350
93323
  const decls = overrideSymbol.getDeclarations();
93351
93324
  if (decls.length > 0 && overrideSymbol.isClassMember()) {
@@ -93358,114 +93331,134 @@ var require_checker = __commonJS({
93358
93331
  } else {
93359
93332
  this._validatePropertyOverride(baseClass, childClassType, baseType, overrideType, overrideSymbol, memberName);
93360
93333
  }
93361
- } else {
93362
- if (this._fileInfo.diagnosticRuleSet.reportIncompatibleVariableOverride !== "none") {
93363
- const decls = overrideSymbol.getDeclarations();
93364
- if (decls.length > 0) {
93365
- const lastDecl = decls[decls.length - 1];
93366
- const primaryDecl = decls[0];
93367
- let isInvariant = (primaryDecl == null ? void 0 : primaryDecl.type) === 1 && !primaryDecl.isFinal;
93368
- if (types_1.ClassType.isDataClassFrozen(baseClass) && baseClass.shared.dataClassEntries) {
93369
- const dataclassEntry = baseClass.shared.dataClassEntries.find((entry) => entry.name === memberName);
93370
- if (dataclassEntry) {
93371
- isInvariant = false;
93372
- }
93373
- }
93374
- let overriddenTDEntry;
93375
- let overrideTDEntry;
93376
- if (!overrideSymbol.isIgnoredForProtocolMatch()) {
93377
- if (baseClass.shared.typedDictEntries) {
93378
- overriddenTDEntry = baseClass.shared.typedDictEntries.knownItems.get(memberName) ?? baseClass.shared.typedDictEntries.extraItems ?? (0, typedDicts_1.getEffectiveExtraItemsEntryType)(this._evaluator, baseClass);
93379
- if (overriddenTDEntry == null ? void 0 : overriddenTDEntry.isReadOnly) {
93380
- isInvariant = false;
93381
- }
93382
- }
93383
- if (childClassType.shared.typedDictEntries) {
93384
- overrideTDEntry = childClassType.shared.typedDictEntries.knownItems.get(memberName) ?? childClassType.shared.typedDictEntries.extraItems ?? (0, typedDicts_1.getEffectiveExtraItemsEntryType)(this._evaluator, childClassType);
93385
- }
93386
- }
93387
- let diagAddendum = new diagnostic_1.DiagnosticAddendum();
93388
- if (!this._evaluator.assignType(
93389
- baseType,
93390
- overrideType,
93391
- diagAddendum,
93392
- /* constraints */
93393
- void 0,
93394
- isInvariant ? 1 : 0
93395
- /* AssignTypeFlags.Default */
93396
- )) {
93397
- if (isInvariant) {
93398
- diagAddendum = new diagnostic_1.DiagnosticAddendum();
93399
- diagAddendum.addMessage(localize_1.LocAddendum.overrideIsInvariant());
93400
- diagAddendum.createAddendum().addMessage(localize_1.LocAddendum.overrideInvariantMismatch().format({
93401
- overrideType: this._evaluator.printType(overrideType),
93402
- baseType: this._evaluator.printType(baseType)
93403
- }));
93404
- }
93405
- const diag = this._evaluator.addDiagnostic(diagnosticRules_1.DiagnosticRule.reportIncompatibleVariableOverride, localize_1.LocMessage.symbolOverridden().format({
93406
- name: memberName,
93407
- className: baseClass.shared.name
93408
- }) + diagAddendum.getString(), (0, declarationUtils_1.getNameNodeForDeclaration)(lastDecl) ?? lastDecl.node);
93409
- const origDecl = (0, symbolUtils_1.getLastTypedDeclarationForSymbol)(baseClassAndSymbol.symbol);
93410
- if (diag && origDecl) {
93411
- diag.addRelatedInfo(localize_1.LocAddendum.overriddenSymbol(), origDecl.uri, origDecl.range);
93412
- }
93413
- } else if (overriddenTDEntry && overrideTDEntry) {
93414
- let isRequiredCompatible = true;
93415
- if (overriddenTDEntry.isReadOnly) {
93416
- isRequiredCompatible = overrideTDEntry.isRequired || !overriddenTDEntry.isRequired;
93417
- } else {
93418
- isRequiredCompatible = overrideTDEntry.isRequired === overriddenTDEntry.isRequired;
93419
- }
93420
- if (!isRequiredCompatible) {
93421
- const message = overrideTDEntry.isRequired ? localize_1.LocMessage.typedDictFieldRequiredRedefinition : localize_1.LocMessage.typedDictFieldNotRequiredRedefinition;
93422
- this._evaluator.addDiagnostic(diagnosticRules_1.DiagnosticRule.reportGeneralTypeIssues, message().format({ name: memberName }), (0, declarationUtils_1.getNameNodeForDeclaration)(lastDecl) ?? lastDecl.node);
93423
- }
93424
- if (!overriddenTDEntry.isReadOnly && overrideTDEntry.isReadOnly) {
93425
- this._evaluator.addDiagnostic(diagnosticRules_1.DiagnosticRule.reportGeneralTypeIssues, localize_1.LocMessage.typedDictFieldReadOnlyRedefinition().format({
93426
- name: memberName
93427
- }), (0, declarationUtils_1.getNameNodeForDeclaration)(lastDecl) ?? lastDecl.node);
93428
- }
93429
- }
93430
- const isBaseVarFinal = this._evaluator.isFinalVariable(baseClassAndSymbol.symbol);
93431
- const overrideFinalVarDecl = decls.find((d) => this._evaluator.isFinalVariableDeclaration(d));
93432
- if (!isBaseVarFinal && overrideFinalVarDecl) {
93433
- const diag = this._evaluator.addDiagnostic(diagnosticRules_1.DiagnosticRule.reportIncompatibleVariableOverride, localize_1.LocMessage.variableFinalOverride().format({
93434
- name: memberName,
93435
- className: baseClass.shared.name
93436
- }), (0, declarationUtils_1.getNameNodeForDeclaration)(lastDecl) ?? lastDecl.node);
93437
- if (diag) {
93438
- diag.addRelatedInfo(localize_1.LocAddendum.overriddenSymbol(), overrideFinalVarDecl.uri, overrideFinalVarDecl.range);
93439
- }
93440
- }
93441
- const isBaseClassVar = baseClassAndSymbol.symbol.isClassVar();
93442
- let isClassVar = overrideSymbol.isClassVar();
93443
- if (isBaseClassVar && !isClassVar) {
93444
- if (!overrideSymbol.hasTypedDeclarations()) {
93445
- isClassVar = true;
93446
- }
93447
- if (overrideSymbol.getTypedDeclarations().every(
93448
- (decl) => decl.type === 6
93449
- /* DeclarationType.Class */
93450
- )) {
93451
- isClassVar = true;
93452
- }
93453
- }
93454
- const ignoreTypedDictOverride = types_1.ClassType.isTypedDictClass(childClassType) && !isClassVar;
93455
- if (isBaseClassVar !== isClassVar && !ignoreTypedDictOverride) {
93456
- const unformattedMessage = overrideSymbol.isClassVar() ? localize_1.LocMessage.classVarOverridesInstanceVar() : localize_1.LocMessage.instanceVarOverridesClassVar();
93457
- const diag = this._evaluator.addDiagnostic(diagnosticRules_1.DiagnosticRule.reportIncompatibleVariableOverride, unformattedMessage.format({
93458
- name: memberName,
93459
- className: baseClass.shared.name
93460
- }), (0, declarationUtils_1.getNameNodeForDeclaration)(lastDecl) ?? lastDecl.node);
93461
- const origDecl = (0, symbolUtils_1.getLastTypedDeclarationForSymbol)(baseClassAndSymbol.symbol);
93462
- if (diag && origDecl) {
93463
- diag.addRelatedInfo(localize_1.LocAddendum.overriddenSymbol(), origDecl.uri, origDecl.range);
93464
- }
93334
+ return;
93335
+ }
93336
+ if (this._fileInfo.diagnosticRuleSet.reportIncompatibleVariableOverride !== "none") {
93337
+ const decls = overrideSymbol.getDeclarations();
93338
+ if (decls.length === 0) {
93339
+ return;
93340
+ }
93341
+ const lastDecl = decls[decls.length - 1];
93342
+ const primaryDecl = decls[0];
93343
+ let isInvariant = (primaryDecl == null ? void 0 : primaryDecl.type) === 1 && !primaryDecl.isFinal;
93344
+ if (types_1.ClassType.isDataClassFrozen(baseClass) && baseClass.shared.dataClassEntries) {
93345
+ const dataclassEntry = baseClass.shared.dataClassEntries.find((entry) => entry.name === memberName);
93346
+ if (dataclassEntry) {
93347
+ isInvariant = false;
93348
+ }
93349
+ }
93350
+ let overriddenTDEntry;
93351
+ let overrideTDEntry;
93352
+ if (!overrideSymbol.isIgnoredForProtocolMatch()) {
93353
+ if (baseClass.shared.typedDictEntries) {
93354
+ overriddenTDEntry = baseClass.shared.typedDictEntries.knownItems.get(memberName) ?? baseClass.shared.typedDictEntries.extraItems ?? (0, typedDicts_1.getEffectiveExtraItemsEntryType)(this._evaluator, baseClass);
93355
+ if (overriddenTDEntry == null ? void 0 : overriddenTDEntry.isReadOnly) {
93356
+ isInvariant = false;
93465
93357
  }
93466
93358
  }
93359
+ if (childClassType.shared.typedDictEntries) {
93360
+ overrideTDEntry = childClassType.shared.typedDictEntries.knownItems.get(memberName) ?? childClassType.shared.typedDictEntries.extraItems ?? (0, typedDicts_1.getEffectiveExtraItemsEntryType)(this._evaluator, childClassType);
93361
+ }
93362
+ }
93363
+ let diagAddendum = new diagnostic_1.DiagnosticAddendum();
93364
+ if (!this._evaluator.assignType(
93365
+ baseType,
93366
+ overrideType,
93367
+ diagAddendum,
93368
+ /* constraints */
93369
+ void 0,
93370
+ isInvariant ? 1 : 0
93371
+ /* AssignTypeFlags.Default */
93372
+ )) {
93373
+ if (isInvariant) {
93374
+ diagAddendum = new diagnostic_1.DiagnosticAddendum();
93375
+ diagAddendum.addMessage(localize_1.LocAddendum.overrideIsInvariant());
93376
+ diagAddendum.createAddendum().addMessage(localize_1.LocAddendum.overrideInvariantMismatch().format({
93377
+ overrideType: this._evaluator.printType(overrideType),
93378
+ baseType: this._evaluator.printType(baseType)
93379
+ }));
93380
+ }
93381
+ const diag = this._evaluator.addDiagnostic(diagnosticRules_1.DiagnosticRule.reportIncompatibleVariableOverride, localize_1.LocMessage.symbolOverridden().format({
93382
+ name: memberName,
93383
+ className: baseClass.shared.name
93384
+ }) + diagAddendum.getString(), (0, declarationUtils_1.getNameNodeForDeclaration)(lastDecl) ?? lastDecl.node);
93385
+ const origDecl = (0, symbolUtils_1.getLastTypedDeclarationForSymbol)(baseClassAndSymbol.symbol);
93386
+ if (diag && origDecl) {
93387
+ diag.addRelatedInfo(localize_1.LocAddendum.overriddenSymbol(), origDecl.uri, origDecl.range);
93388
+ }
93389
+ } else if (overriddenTDEntry && overrideTDEntry) {
93390
+ let isRequiredCompatible = true;
93391
+ if (overriddenTDEntry.isReadOnly) {
93392
+ isRequiredCompatible = overrideTDEntry.isRequired || !overriddenTDEntry.isRequired;
93393
+ } else {
93394
+ isRequiredCompatible = overrideTDEntry.isRequired === overriddenTDEntry.isRequired;
93395
+ }
93396
+ if (!isRequiredCompatible) {
93397
+ const message = overrideTDEntry.isRequired ? localize_1.LocMessage.typedDictFieldRequiredRedefinition : localize_1.LocMessage.typedDictFieldNotRequiredRedefinition;
93398
+ this._evaluator.addDiagnostic(diagnosticRules_1.DiagnosticRule.reportGeneralTypeIssues, message().format({ name: memberName }), (0, declarationUtils_1.getNameNodeForDeclaration)(lastDecl) ?? lastDecl.node);
93399
+ }
93400
+ if (!overriddenTDEntry.isReadOnly && overrideTDEntry.isReadOnly) {
93401
+ this._evaluator.addDiagnostic(diagnosticRules_1.DiagnosticRule.reportGeneralTypeIssues, localize_1.LocMessage.typedDictFieldReadOnlyRedefinition().format({
93402
+ name: memberName
93403
+ }), (0, declarationUtils_1.getNameNodeForDeclaration)(lastDecl) ?? lastDecl.node);
93404
+ }
93405
+ }
93406
+ const isBaseVarFinal = this._evaluator.isFinalVariable(baseClassAndSymbol.symbol);
93407
+ const overrideFinalVarDecl = decls.find((d) => this._evaluator.isFinalVariableDeclaration(d));
93408
+ if (!isBaseVarFinal && overrideFinalVarDecl) {
93409
+ const diag = this._evaluator.addDiagnostic(diagnosticRules_1.DiagnosticRule.reportIncompatibleVariableOverride, localize_1.LocMessage.variableFinalOverride().format({
93410
+ name: memberName,
93411
+ className: baseClass.shared.name
93412
+ }), (0, declarationUtils_1.getNameNodeForDeclaration)(lastDecl) ?? lastDecl.node);
93413
+ if (diag) {
93414
+ diag.addRelatedInfo(localize_1.LocAddendum.overriddenSymbol(), overrideFinalVarDecl.uri, overrideFinalVarDecl.range);
93415
+ }
93416
+ }
93417
+ const isBaseClassVar = baseClassAndSymbol.symbol.isClassVar();
93418
+ let isClassVar = overrideSymbol.isClassVar();
93419
+ if (isBaseClassVar && !isClassVar) {
93420
+ if (!overrideSymbol.hasTypedDeclarations()) {
93421
+ isClassVar = true;
93422
+ }
93423
+ if (overrideSymbol.getTypedDeclarations().every(
93424
+ (decl) => decl.type === 6
93425
+ /* DeclarationType.Class */
93426
+ )) {
93427
+ isClassVar = true;
93428
+ }
93429
+ }
93430
+ const ignoreTypedDictOverride = types_1.ClassType.isTypedDictClass(childClassType) && !isClassVar;
93431
+ if (isBaseClassVar !== isClassVar && !ignoreTypedDictOverride) {
93432
+ const unformattedMessage = overrideSymbol.isClassVar() ? localize_1.LocMessage.classVarOverridesInstanceVar() : localize_1.LocMessage.instanceVarOverridesClassVar();
93433
+ const diag = this._evaluator.addDiagnostic(diagnosticRules_1.DiagnosticRule.reportIncompatibleVariableOverride, unformattedMessage.format({
93434
+ name: memberName,
93435
+ className: baseClass.shared.name
93436
+ }), (0, declarationUtils_1.getNameNodeForDeclaration)(lastDecl) ?? lastDecl.node);
93437
+ const origDecl = (0, symbolUtils_1.getLastTypedDeclarationForSymbol)(baseClassAndSymbol.symbol);
93438
+ if (diag && origDecl) {
93439
+ diag.addRelatedInfo(localize_1.LocAddendum.overriddenSymbol(), origDecl.uri, origDecl.range);
93440
+ }
93441
+ }
93442
+ }
93443
+ }
93444
+ _isFinalFunction(name, type) {
93445
+ if (SymbolNameUtils.isPrivateName(name)) {
93446
+ return false;
93447
+ }
93448
+ if ((0, types_1.isFunction)(type) && types_1.FunctionType.isFinal(type)) {
93449
+ return true;
93450
+ }
93451
+ if ((0, types_1.isOverloaded)(type)) {
93452
+ const overloads = types_1.OverloadedType.getOverloads(type);
93453
+ const impl = types_1.OverloadedType.getImplementation(type);
93454
+ if (overloads.some((overload) => types_1.FunctionType.isFinal(overload))) {
93455
+ return true;
93456
+ }
93457
+ if (impl && (0, types_1.isFunction)(impl) && types_1.FunctionType.isFinal(impl)) {
93458
+ return true;
93467
93459
  }
93468
93460
  }
93461
+ return false;
93469
93462
  }
93470
93463
  _validatePropertyOverride(baseClassType, childClassType, baseType, childType, overrideSymbol, memberName) {
93471
93464
  const propMethodInfo = [
@@ -93509,6 +93502,14 @@ var require_checker = __commonJS({
93509
93502
  }
93510
93503
  }
93511
93504
  return;
93505
+ } else if (this._isFinalFunction(methodName, baseClassPropMethod)) {
93506
+ const decl2 = (0, symbolUtils_1.getLastTypedDeclarationForSymbol)(overrideSymbol);
93507
+ if (decl2 && decl2.type === 5) {
93508
+ this._evaluator.addDiagnostic(diagnosticRules_1.DiagnosticRule.reportIncompatibleMethodOverride, localize_1.LocMessage.finalMethodOverride().format({
93509
+ name: memberName,
93510
+ className: baseClassType.shared.name
93511
+ }), decl2.node.d.name);
93512
+ }
93512
93513
  }
93513
93514
  const subclassMethodType = (0, typeUtils_1.partiallySpecializeType)(subclassPropMethod, childClassType, this._evaluator.getTypeClassType());
93514
93515
  if (!(0, types_1.isFunction)(subclassMethodType)) {
@@ -94506,6 +94507,7 @@ var require_sourceFile = __commonJS({
94506
94507
  this._writableData.isCheckingNeeded = true;
94507
94508
  this._writableData.isBindingNeeded = true;
94508
94509
  this._writableData.moduleSymbolTable = void 0;
94510
+ this._writableData.lineCount = void 0;
94509
94511
  this._fireFileDirtyEvent();
94510
94512
  }
94511
94513
  markReanalysisRequired(forceRebinding) {
@@ -94525,6 +94527,9 @@ var require_sourceFile = __commonJS({
94525
94527
  getClientVersion() {
94526
94528
  return this._writableData.clientDocumentVersion;
94527
94529
  }
94530
+ getRange() {
94531
+ return { start: { line: 0, character: 0 }, end: { line: this._writableData.lineCount ?? 0, character: 0 } };
94532
+ }
94528
94533
  getOpenFileContents() {
94529
94534
  return this._writableData.clientDocumentContents;
94530
94535
  }
@@ -94665,6 +94670,7 @@ var require_sourceFile = __commonJS({
94665
94670
  this._writableData.typeIgnoreLines = parseFileResults.tokenizerOutput.typeIgnoreLines;
94666
94671
  this._writableData.typeIgnoreAll = parseFileResults.tokenizerOutput.typeIgnoreAll;
94667
94672
  this._writableData.pyrightIgnoreLines = parseFileResults.tokenizerOutput.pyrightIgnoreLines;
94673
+ this._writableData.lineCount = parseFileResults.tokenizerOutput.lines.length;
94668
94674
  if (this._writableData.clientDocumentContents !== void 0) {
94669
94675
  this._writableData.tokenizerOutput = parseFileResults.tokenizerOutput;
94670
94676
  }
@@ -94772,7 +94778,7 @@ var require_sourceFile = __commonJS({
94772
94778
  this._recomputeDiagnostics(configOptions);
94773
94779
  });
94774
94780
  }
94775
- check(configOptions, importResolver, evaluator, sourceMapper, dependentFiles) {
94781
+ check(configOptions, importLookup, importResolver, evaluator, sourceMapper, dependentFiles) {
94776
94782
  (0, debug_1.assert)(!this.isParseRequired(), `Check called before parsing: state=${this._writableData.debugPrint()}`);
94777
94783
  (0, debug_1.assert)(!this.isBindingRequired(), `Check called before binding: state=${this._writableData.debugPrint()}`);
94778
94784
  (0, debug_1.assert)(!this._writableData.isBindingInProgress, "Check called while binding in progress");
@@ -115632,11 +115638,12 @@ var TestFrameworkWalker = class extends import_parseTreeWalker3.ParseTreeWalker
115632
115638
  this.testFramework = testFramework;
115633
115639
  }
115634
115640
  visitFunction(node) {
115641
+ var _a;
115635
115642
  if (node.d.name.d.value.startsWith("test_")) {
115636
115643
  if (node.parent && (0, import_parseTreeUtils2.printParseNodeType)(node.parent.nodeType) === "Suite") {
115637
115644
  let fullyQualifiedTestName = "";
115638
115645
  let currentNode = node;
115639
- let parentSuiteNode = currentNode.parent;
115646
+ let parentSuiteNode = currentNode == null ? void 0 : currentNode.parent;
115640
115647
  while (parentSuiteNode.parent && (0, import_parseTreeUtils2.printParseNodeType)(parentSuiteNode.parent.nodeType) === "Class") {
115641
115648
  const classNode = parentSuiteNode.parent;
115642
115649
  let combineString = void 0;
@@ -115646,8 +115653,8 @@ var TestFrameworkWalker = class extends import_parseTreeWalker3.ParseTreeWalker
115646
115653
  combineString = "::";
115647
115654
  }
115648
115655
  fullyQualifiedTestName = classNode.d.name.d.value + combineString + fullyQualifiedTestName;
115649
- currentNode = currentNode.parent.parent;
115650
- parentSuiteNode = currentNode.parent;
115656
+ currentNode = (_a = currentNode == null ? void 0 : currentNode.parent) == null ? void 0 : _a.parent;
115657
+ parentSuiteNode = currentNode == null ? void 0 : currentNode.parent;
115651
115658
  }
115652
115659
  this.featureItems.push({
115653
115660
  value: fullyQualifiedTestName + node.d.name.d.value,
@@ -115684,9 +115691,23 @@ function parse(source) {
115684
115691
  // src/commands.ts
115685
115692
  var terminal;
115686
115693
  var framework = import_coc3.workspace.getConfiguration("pyright").get("testing.provider", "unittest");
115694
+ function pythonSupportsPathFinder(pythonPath) {
115695
+ try {
115696
+ const pythonProcess = child_process2.spawnSync(
115697
+ pythonPath,
115698
+ ["-c", "from sys import version_info; exit(0) if (version_info[0] >= 3 and version_info[1] >= 4) else exit(1)"],
115699
+ { encoding: "utf8" }
115700
+ );
115701
+ if (pythonProcess.error) return false;
115702
+ return pythonProcess.status === 0;
115703
+ } catch (ex) {
115704
+ return false;
115705
+ }
115706
+ }
115687
115707
  function validPythonModule(pythonPath, moduleName) {
115708
+ const pythonArgs = pythonSupportsPathFinder(pythonPath) ? ["-c", `from importlib.machinery import PathFinder; assert PathFinder.find_spec("${moduleName}") is not None`] : ["-m", moduleName, "--help"];
115688
115709
  try {
115689
- const pythonProcess = child_process2.spawnSync(pythonPath, ["-m", moduleName, "--help"], { encoding: "utf8" });
115710
+ const pythonProcess = child_process2.spawnSync(pythonPath, pythonArgs, { encoding: "utf8" });
115690
115711
  if (pythonProcess.error) return false;
115691
115712
  return pythonProcess.status === 0;
115692
115713
  } catch (ex) {