coc-pyright 1.1.393 → 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 +1002 -896
  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"
@@ -18909,6 +18759,10 @@ var require_package_nls_en_us = __commonJS({
18909
18759
  message: '"{name}" was already declared nonlocal',
18910
18760
  comment: "{Locked='nonlocal'}"
18911
18761
  },
18762
+ nonlocalTypeParam: {
18763
+ message: 'Nonlocal binding is not allowed for type parameter "{name}"',
18764
+ comment: ["{StrContains=i'nonlocal'}", "'nonlocal' is a keyword and should not be localized. It is only capitalized here because it is the first word in the sentence"]
18765
+ },
18912
18766
  noneNotCallable: {
18913
18767
  message: 'Object of type "None" cannot be called',
18914
18768
  comment: "{Locked='None'}"
@@ -19327,6 +19181,7 @@ var require_package_nls_en_us = __commonJS({
19327
19181
  comment: "{Locked='type'}"
19328
19182
  },
19329
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",
19330
19185
  typeAliasTypeBaseClass: {
19331
19186
  message: 'A type alias defined in a "type" statement cannot be used as a base class',
19332
19187
  comment: `{Locked='"type"'}`
@@ -19537,7 +19392,7 @@ var require_package_nls_en_us = __commonJS({
19537
19392
  comment: "{Locked='True','False'}"
19538
19393
  },
19539
19394
  typedDictClosedExtras: {
19540
- message: 'Base class "{name}" is a closed TypedDict; extra items must be type "{type}"',
19395
+ message: 'Base class "{name}" is a TypedDict that limits the type of extra items to type "{type}"',
19541
19396
  comment: "{Locked='closed','TypedDict'}"
19542
19397
  },
19543
19398
  typedDictClosedNoExtras: {
@@ -19559,8 +19414,8 @@ var require_package_nls_en_us = __commonJS({
19559
19414
  comment: "{Locked='TypedDict'}"
19560
19415
  },
19561
19416
  typedDictExtraItemsClosed: {
19562
- message: "A TypedDict cannot be closed if it supports extra items",
19563
- comment: "{Locked='TypedDict','closed'}"
19417
+ message: 'TypedDict can use either "closed" or "extra_items" but not both',
19418
+ comment: "{Locked='TypedDict','closed','extra_items'}"
19564
19419
  },
19565
19420
  typedDictFieldNotRequiredRedefinition: {
19566
19421
  message: 'TypedDict item "{name}" cannot be redefined as NotRequired',
@@ -20130,10 +19985,6 @@ var require_package_nls_en_us = __commonJS({
20130
19985
  typedDictFieldRequired: '"{name}" is required in "{type}"',
20131
19986
  typedDictFieldTypeMismatch: 'Type "{type}" is not assignable to item "{name}"',
20132
19987
  typedDictFieldUndefined: '"{name}" is an undefined item in type "{type}"',
20133
- typedDictFinalMismatch: {
20134
- message: '"{sourceType}" is incompatible with "{destType}" because of a @final mismatch',
20135
- comment: "{Locked='@final'}"
20136
- },
20137
19988
  typedDictKeyAccess: {
20138
19989
  message: 'Use ["{name}"] to reference item in TypedDict',
20139
19990
  comment: "{Locked='TypedDict'}"
@@ -20523,6 +20374,7 @@ var require_package_nls_es = __commonJS({
20523
20374
  noneNotUsableWithAsync: 'El objeto de tipo "None" no se puede usar con "async with"',
20524
20375
  noneOperator: 'El operador "{operator}" no es compatible con "None".',
20525
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}"',
20526
20378
  notRequiredArgCount: 'Se esperaba un \xFAnico argumento de tipo despu\xE9s de "NotRequired".',
20527
20379
  notRequiredNotInTypedDict: '"NotRequired" no est\xE1 permitido en este contexto',
20528
20380
  objectNotCallable: 'El objeto de tipo "{type}" no es invocable',
@@ -20541,11 +20393,11 @@ var require_package_nls_es = __commonJS({
20541
20393
  overloadAbstractImplMismatch: "Las sobrecargas deben coincidir con el estado abstracto de la implementaci\xF3n",
20542
20394
  overloadAbstractMismatch: "Todos los m\xE9todos sobrecargados deben ser abstractos o no",
20543
20395
  overloadClassMethodInconsistent: 'Las sobrecargas de "{name}" usan @classmethod de forma incoherente',
20544
- overloadFinalImpl: "@final decorator should be applied only to the implementation",
20545
- 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",
20546
20398
  overloadImplementationMismatch: "La implementaci\xF3n de la sobrecarga no es consistente con la firma de la sobrecarga {index}",
20547
- overloadOverrideImpl: "@override decorator should be applied only to the implementation",
20548
- 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",
20549
20401
  overloadReturnTypeMismatch: 'La sobrecarga {prevIndex} para " {name}" se superpone con la sobrecarga {newIndex} y devuelve un tipo incompatible',
20550
20402
  overloadStaticMethodInconsistent: 'Las sobrecargas de "{name}" usan @staticmethod de forma incoherente',
20551
20403
  overloadWithoutImplementation: '"{name}" est\xE1 marcado como overload, pero no se proporciona ninguna implementaci\xF3n.',
@@ -20741,14 +20593,14 @@ var require_package_nls_es = __commonJS({
20741
20593
  typedDictBadVar: "Las clases TypedDict solo pueden contener anotaciones de tipo",
20742
20594
  typedDictBaseClass: "Todas las clases base de las clases TypedDict deben ser tambi\xE9n clases TypedDict",
20743
20595
  typedDictBoolParam: 'Se esperaba que el par\xE1metro "{name}" tuviera un valor de True o False.',
20744
- 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}"',
20745
20597
  typedDictClosedNoExtras: 'La clase base "{name}" es un TypedDict closed; no se permiten elementos adicionales',
20746
20598
  typedDictDelete: "No se puede eliminar un elemento en TypedDict",
20747
20599
  typedDictEmptyName: "Los nombres de un TypedDict no pueden estar vac\xEDos",
20748
20600
  typedDictEntryName: "Cadena literal esperada para el nombre de la entrada del diccionario",
20749
20601
  typedDictEntryUnique: "Los nombres dentro de un diccionario deben ser \xFAnicos",
20750
20602
  typedDictExtraArgs: "No se admiten argumentos TypedDict adicionales",
20751
- 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',
20752
20604
  typedDictFieldNotRequiredRedefinition: 'El elemento TypedDict "{name}" no se puede redefinir como NotRequired',
20753
20605
  typedDictFieldReadOnlyRedefinition: 'El elemento TypedDict "{name}" no se puede redefinir como ReadOnly',
20754
20606
  typedDictFieldRequiredRedefinition: 'El elemento TypedDict "{name}" no se puede redefinir como Required',
@@ -20990,7 +20842,6 @@ var require_package_nls_es = __commonJS({
20990
20842
  typedDictFieldRequired: '"{name}" es obligatorio en "{type}"',
20991
20843
  typedDictFieldTypeMismatch: 'El tipo "{type}" no se puede asignar al elemento "{name}"',
20992
20844
  typedDictFieldUndefined: '"{name}" es un elemento no definido en el tipo "{type}"',
20993
- typedDictFinalMismatch: '"{sourceType}" no es compatible con "{destType}" debido a una discrepancia @final',
20994
20845
  typedDictKeyAccess: 'Utilizar ["{name}"] para hacer referencia al elemento en TypedDict',
20995
20846
  typedDictNotAllowed: "No se puede usar TypedDict para comprobaciones de instancia o clase",
20996
20847
  unhashableType: 'El tipo "{type}" no admite hash',
@@ -21362,6 +21213,7 @@ var require_package_nls_fr = __commonJS({
21362
21213
  noneNotUsableWithAsync: "L\u2019objet de type \xAB\xA0None\xA0\xBB ne peut pas \xEAtre utilis\xE9 avec \xAB\xA0async with\xA0\xBB",
21363
21214
  noneOperator: "L\u2019op\xE9rateur \xAB\xA0{operator}\xA0\xBB n\u2019est pas pris en charge pour \xAB\xA0None\xA0\xBB",
21364
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}"',
21365
21217
  notRequiredArgCount: "Argument de type unique attendu apr\xE8s \xAB NotRequired \xBB",
21366
21218
  notRequiredNotInTypedDict: "\xAB NotRequired \xBB n\u2019est pas autoris\xE9 dans ce contexte",
21367
21219
  objectNotCallable: "L\u2019objet de type \xAB\xA0{type}\xA0\xBB n\u2019est pas appelant",
@@ -21380,11 +21232,11 @@ var require_package_nls_fr = __commonJS({
21380
21232
  overloadAbstractImplMismatch: "Les surcharges doivent correspondre \xE0 l\u2019\xE9tat abstrait de l\u2019impl\xE9mentation",
21381
21233
  overloadAbstractMismatch: "Les surcharges doivent toutes \xEAtre abstraites ou non",
21382
21234
  overloadClassMethodInconsistent: "Les surcharges pour \xAB {name} \xBB utilisent @classmethod de mani\xE8re incoh\xE9rente",
21383
- overloadFinalImpl: "@final decorator should be applied only to the implementation",
21384
- 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",
21385
21237
  overloadImplementationMismatch: "L\u2019impl\xE9mentation surcharg\xE9e n\u2019est pas coh\xE9rente avec la signature de la surcharge {index}",
21386
- overloadOverrideImpl: "@override decorator should be applied only to the implementation",
21387
- 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",
21388
21240
  overloadReturnTypeMismatch: "La surcharge {prevIndex} pour \xAB\xA0{name}\xA0\xBB chevauche la surcharge {newIndex} et retourne un type incompatible",
21389
21241
  overloadStaticMethodInconsistent: "Les surcharges pour \xAB {name} \xBB utilisent @staticmethod de mani\xE8re incoh\xE9rente",
21390
21242
  overloadWithoutImplementation: "\xAB\xA0{name}\xA0\xBB est marqu\xE9 comme overload, mais aucune impl\xE9mentation n\u2019est fournie",
@@ -21580,14 +21432,14 @@ var require_package_nls_fr = __commonJS({
21580
21432
  typedDictBadVar: "Les classes TypedDict ne peuvent contenir que des annotations de type",
21581
21433
  typedDictBaseClass: "Toutes les classes de base pour les classes TypedDict doivent \xE9galement \xEAtre des classes TypedDict",
21582
21434
  typedDictBoolParam: "Param\xE8tre \xAB\xA0{name}\xA0\xBB attendu avec la valeur True ou False",
21583
- 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}"',
21584
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",
21585
21437
  typedDictDelete: "Impossible de supprimer l\u2019\xE9l\xE9ment dans TypedDict",
21586
21438
  typedDictEmptyName: "Les noms dans un TypedDict ne peuvent pas \xEAtre vides",
21587
21439
  typedDictEntryName: "Litt\xE9ral de cha\xEEne attendu pour le nom d\u2019entr\xE9e du dictionnaire",
21588
21440
  typedDictEntryUnique: "Les noms dans un dictionnaire doivent \xEAtre uniques",
21589
21441
  typedDictExtraArgs: "Arguments TypedDict suppl\xE9mentaires non pris en charge",
21590
- 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',
21591
21443
  typedDictFieldNotRequiredRedefinition: "L\u2019\xE9l\xE9ment TypedDict \xAB\xA0{name}\xA0\xBB ne peut pas \xEAtre red\xE9fini comme \xE9tant NotRequired",
21592
21444
  typedDictFieldReadOnlyRedefinition: "L\u2019\xE9l\xE9ment TypedDict \xAB\xA0{name}\xA0\xBB ne peut pas \xEAtre red\xE9fini comme \xE9tat En ReadOnly",
21593
21445
  typedDictFieldRequiredRedefinition: "L\u2019\xE9l\xE9ment TypedDict \xAB\xA0{name}\xA0\xBB ne peut pas \xEAtre red\xE9fini comme \xE9tant Required",
@@ -21829,7 +21681,6 @@ var require_package_nls_fr = __commonJS({
21829
21681
  typedDictFieldRequired: "\xAB\xA0{name}\xA0\xBB est obligatoire dans \xAB\xA0{type}\xA0\xBB",
21830
21682
  typedDictFieldTypeMismatch: "Le type \xAB\xA0{type}\xA0\xBB n'est pas attribuable \xE0 l\u2019\xE9l\xE9ment \xAB\xA0{name}\xA0\xBB",
21831
21683
  typedDictFieldUndefined: "\xAB\xA0{name}\xA0\xBB est un \xE9l\xE9ment non d\xE9fini dans le type \xAB\xA0{type}\xA0\xBB",
21832
- typedDictFinalMismatch: "\xAB {sourceType} \xBB n\u2019est pas compatible avec \xAB {destType} \xBB en raison d\u2019une incompatibilit\xE9 de @final",
21833
21684
  typedDictKeyAccess: "Utilisez [\xAB {name} \xBB] pour r\xE9f\xE9rencer l\u2019\xE9l\xE9ment dans TypedDict",
21834
21685
  typedDictNotAllowed: "TypedDict ne peut pas \xEAtre utilis\xE9 pour les v\xE9rifications d\u2019instance ou de classe",
21835
21686
  unhashableType: `Le type "{type}" n'est pas hachable`,
@@ -22201,6 +22052,7 @@ var require_package_nls_it = __commonJS({
22201
22052
  noneNotUsableWithAsync: `Impossibile utilizzare l'oggetto di tipo "None" con "async with"`,
22202
22053
  noneOperator: 'Operatore "{operator}" non supportato per "None"',
22203
22054
  noneUnknownMember: '"{name}" non \xE8 un attributo noto di "None"',
22055
+ nonlocalTypeParam: `Non \xE8 consentita l'associazione nonlocal per il parametro di tipo "{name}"`,
22204
22056
  notRequiredArgCount: 'Previsto un singolo argomento tipo dopo "NotRequired"',
22205
22057
  notRequiredNotInTypedDict: '"NotRequired" non \xE8 consentito in questo contesto',
22206
22058
  objectNotCallable: `L'oggetto di tipo "{type}" non \xE8 chiamabile`,
@@ -22219,11 +22071,11 @@ var require_package_nls_it = __commonJS({
22219
22071
  overloadAbstractImplMismatch: "Gli overload devono corrispondere allo stato astratto dell'implementazione",
22220
22072
  overloadAbstractMismatch: "Gli overload devono essere tutti astratti o no",
22221
22073
  overloadClassMethodInconsistent: 'Gli overload per "{name}" usano @classmethod in modo incoerente',
22222
- overloadFinalImpl: "@final decorator should be applied only to the implementation",
22223
- 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",
22224
22076
  overloadImplementationMismatch: "L'implementazione di overload non \xE8 coerente con la firma dell'overload {index}",
22225
- overloadOverrideImpl: "@override decorator should be applied only to the implementation",
22226
- 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",
22227
22079
  overloadReturnTypeMismatch: `L'overload {prevIndex} per "{name}" si sovrappone all'overload {newIndex} e restituisce un tipo incompatibile`,
22228
22080
  overloadStaticMethodInconsistent: 'Gli overload per "{name}" usano @staticmethod in modo incoerente',
22229
22081
  overloadWithoutImplementation: '"{name}" \xE8 contrassegnato come overload, ma non viene fornita alcuna implementazione',
@@ -22419,14 +22271,14 @@ var require_package_nls_it = __commonJS({
22419
22271
  typedDictBadVar: "Le classi TypedDict possono contenere solo annotazioni di tipo",
22420
22272
  typedDictBaseClass: "Anche tutte le classi di base per le classi TypedDict devono essere classi TypedDict",
22421
22273
  typedDictBoolParam: '\xC8 previsto che il parametro "{name}" abbia il valore True o False',
22422
- 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}"',
22423
22275
  typedDictClosedNoExtras: 'La classe di base "{name}" \xE8 un TypedDict closed; elementi aggiuntivi non consentiti',
22424
22276
  typedDictDelete: "Non \xE8 stato possibile eliminare l'elemento in TypedDict",
22425
22277
  typedDictEmptyName: "I nomi all'interno di un TypedDict non possono essere vuoti",
22426
22278
  typedDictEntryName: "Valore letterale stringa previsto per il nome della voce del dizionario",
22427
22279
  typedDictEntryUnique: "I nomi all'interno di un dizionario devono essere univoci",
22428
22280
  typedDictExtraArgs: "Argomenti TypedDict aggiuntivi non supportati",
22429
- 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',
22430
22282
  typedDictFieldNotRequiredRedefinition: 'Non \xE8 possibile ridefinire il campo TypedDict "{name}" come NotRequired',
22431
22283
  typedDictFieldReadOnlyRedefinition: 'Non \xE8 possibile ridefinire l\u2019elemento TypedDict "{name}" come ReadOnly',
22432
22284
  typedDictFieldRequiredRedefinition: 'Non \xE8 possibile ridefinire il campo TypedDict "{name}" come Required',
@@ -22668,7 +22520,6 @@ var require_package_nls_it = __commonJS({
22668
22520
  typedDictFieldRequired: '"{name}" \xE8 obbligatorio in "{type}"',
22669
22521
  typedDictFieldTypeMismatch: 'Il tipo "{type}" non pu\xF2 essere assegnato all\u2019elemento "{name}"',
22670
22522
  typedDictFieldUndefined: '"{name}" \xE8 un elemento non definito nel tipo "{type}"',
22671
- typedDictFinalMismatch: '"{sourceType}" non \xE8 compatibile con "{destType}" a causa di una @final mancata corrispondenza',
22672
22523
  typedDictKeyAccess: `Usare ["{name}"] per fare riferimento all'elemento in TypedDict`,
22673
22524
  typedDictNotAllowed: "Non \xE8 possibile usare TypedDict per i controlli di istanze o classi",
22674
22525
  unhashableType: 'Il tipo "{type}" non \xE8 hashable',
@@ -23040,6 +22891,7 @@ var require_package_nls_ja = __commonJS({
23040
22891
  noneNotUsableWithAsync: '\u578B "None" \u3068 "async with" \u306F\u540C\u6642\u306B\u4F7F\u7528\u3067\u304D\u307E\u305B\u3093',
23041
22892
  noneOperator: '\u6F14\u7B97\u5B50 "{operator}" \u306F "None" \u3067\u306F\u30B5\u30DD\u30FC\u30C8\u3055\u308C\u3066\u3044\u307E\u305B\u3093',
23042
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',
23043
22895
  notRequiredArgCount: '"NotRequired" \u306E\u5F8C\u306B 1 \u3064\u306E\u578B\u5F15\u6570\u304C\u5FC5\u8981\u3067\u3059',
23044
22896
  notRequiredNotInTypedDict: '"NotRequired" \u306F\u3053\u306E\u30B3\u30F3\u30C6\u30AD\u30B9\u30C8\u3067\u306F\u8A31\u53EF\u3055\u308C\u3066\u3044\u307E\u305B\u3093',
23045
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',
@@ -23058,11 +22910,11 @@ var require_package_nls_ja = __commonJS({
23058
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",
23059
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",
23060
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',
23061
- overloadFinalImpl: "@final decorator should be applied only to the implementation",
23062
- 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",
23063
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",
23064
- overloadOverrideImpl: "@override decorator should be applied only to the implementation",
23065
- 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",
23066
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',
23067
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',
23068
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',
@@ -23258,14 +23110,14 @@ var require_package_nls_ja = __commonJS({
23258
23110
  typedDictBadVar: "TypedDict \u30AF\u30E9\u30B9\u306B\u306F\u578B\u6CE8\u91C8\u306E\u307F\u3092\u542B\u3081\u308B\u3053\u3068\u304C\u3067\u304D\u307E\u3059",
23259
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",
23260
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',
23261
- 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',
23262
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',
23263
23115
  typedDictDelete: "TypedDict \u306E\u9805\u76EE\u3092\u524A\u9664\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F",
23264
23116
  typedDictEmptyName: "TypedDict \u5185\u306E\u540D\u524D\u3092\u7A7A\u306B\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",
23265
23117
  typedDictEntryName: "\u8F9E\u66F8\u30A8\u30F3\u30C8\u30EA\u540D\u306B\u6587\u5B57\u5217\u30EA\u30C6\u30E9\u30EB\u304C\u5FC5\u8981\u3067\u3059",
23266
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",
23267
23119
  typedDictExtraArgs: "\u8FFD\u52A0\u306E TypedDict \u5F15\u6570\u306F\u30B5\u30DD\u30FC\u30C8\u3055\u308C\u3066\u3044\u307E\u305B\u3093",
23268
- 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',
23269
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',
23270
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',
23271
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',
@@ -23507,7 +23359,6 @@ var require_package_nls_ja = __commonJS({
23507
23359
  typedDictFieldRequired: '"{name}" \u306F "{type}" \u306B\u5FC5\u8981\u3067\u3059',
23508
23360
  typedDictFieldTypeMismatch: '\u578B "{type}" \u306F\u3001\u30A2\u30A4\u30C6\u30E0 "{name}" \u306B\u5272\u308A\u5F53\u3066\u3067\u304D\u307E\u305B\u3093',
23509
23361
  typedDictFieldUndefined: '"{name}" \u306F\u578B "{type}" \u306E\u672A\u5B9A\u7FA9\u306E\u30A2\u30A4\u30C6\u30E0\u3067\u3059',
23510
- typedDictFinalMismatch: '@final \u304C\u4E00\u81F4\u3057\u306A\u3044\u305F\u3081\u3001"{sourceType}" \u306F "{destType}" \u3068\u4E92\u63DB\u6027\u304C\u3042\u308A\u307E\u305B\u3093',
23511
23362
  typedDictKeyAccess: '["{name}"] \u3092\u4F7F\u7528\u3057\u3066 TypedDict \u306E\u9805\u76EE\u3092\u53C2\u7167\u3059\u308B',
23512
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",
23513
23364
  unhashableType: '\u578B "{type}" \u306F\u30CF\u30C3\u30B7\u30E5\u53EF\u80FD\u3067\u306F\u3042\u308A\u307E\u305B\u3093',
@@ -23879,6 +23730,7 @@ var require_package_nls_ko = __commonJS({
23879
23730
  noneNotUsableWithAsync: '"None" \uD615\uC2DD\uC758 \uAC1C\uCCB4\uB294 "async with"\uC640 \uD568\uAED8 \uC0AC\uC6A9\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.',
23880
23731
  noneOperator: '"None"\uC5D0 \uB300\uD574 \uC5F0\uC0B0\uC790 "{operator}"\uC774(\uAC00) \uC9C0\uC6D0\uB418\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.',
23881
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.',
23882
23734
  notRequiredArgCount: '"NotRequired" \uB4A4\uC5D0 \uB2E8\uC77C \uD615\uC2DD \uC778\uC218\uAC00 \uD544\uC694\uD569\uB2C8\uB2E4.',
23883
23735
  notRequiredNotInTypedDict: '\uC774 \uCEE8\uD14D\uC2A4\uD2B8\uC5D0\uC11C\uB294 "NotRequired"\uB97C \uC0AC\uC6A9\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.',
23884
23736
  objectNotCallable: '"{type}" \uD615\uC2DD\uC758 \uAC1C\uCCB4\uB97C \uD638\uCD9C\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.',
@@ -23897,11 +23749,11 @@ var require_package_nls_ko = __commonJS({
23897
23749
  overloadAbstractImplMismatch: "\uC624\uBC84\uB85C\uB4DC\uB294 \uAD6C\uD604\uC758 \uCD94\uC0C1 \uC0C1\uD0DC\uC640 \uC77C\uCE58\uD574\uC57C \uD569\uB2C8\uB2E4.",
23898
23750
  overloadAbstractMismatch: "\uC624\uBC84\uB85C\uB4DC\uB294 \uBAA8\uB450 \uCD94\uC0C1\uC774\uAC70\uB098 \uC544\uB2C8\uC5B4\uC57C \uD569\uB2C8\uB2E4",
23899
23751
  overloadClassMethodInconsistent: '"{name}"\uC758 \uC624\uBC84\uB85C\uB4DC\uAC00 @classmethod\uB97C \uC77C\uAD00\uB418\uC9C0 \uC54A\uAC8C \uC0AC\uC6A9\uD569\uB2C8\uB2E4.',
23900
- overloadFinalImpl: "@final decorator should be applied only to the implementation",
23901
- 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.",
23902
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.",
23903
- overloadOverrideImpl: "@override decorator should be applied only to the implementation",
23904
- 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.",
23905
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.',
23906
23758
  overloadStaticMethodInconsistent: '"{name}"\uC758 \uC624\uBC84\uB85C\uB4DC\uAC00 @staticmethod\uB97C \uC77C\uAD00\uB418\uC9C0 \uC54A\uAC8C \uC0AC\uC6A9\uD569\uB2C8\uB2E4.',
23907
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.",
@@ -24097,14 +23949,14 @@ var require_package_nls_ko = __commonJS({
24097
23949
  typedDictBadVar: "TypedDict \uD074\uB798\uC2A4\uB294 \uD615\uC2DD \uC8FC\uC11D\uB9CC \uD3EC\uD568\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.",
24098
23950
  typedDictBaseClass: "TypedDict \uD074\uB798\uC2A4\uC758 \uBAA8\uB4E0 \uAE30\uBCF8 \uD074\uB798\uC2A4\uB3C4 TypedDict \uD074\uB798\uC2A4\uC5EC\uC57C \uD569\uB2C8\uB2E4.",
24099
23951
  typedDictBoolParam: '"{name}" \uB9E4\uAC1C \uBCC0\uC218\uC5D0 True \uB610\uB294 False \uAC12\uC774 \uC788\uC5B4\uC57C \uD569\uB2C8\uB2E4.',
24100
- 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.',
24101
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.',
24102
23954
  typedDictDelete: "TypedDict\uC5D0\uC11C \uD56D\uBAA9\uC744 \uC0AD\uC81C\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",
24103
23955
  typedDictEmptyName: "TypedDict \uB0B4\uC758 \uC774\uB984\uC740 \uBE44\uC6CC \uB458 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",
24104
23956
  typedDictEntryName: "\uC0AC\uC804 \uD56D\uBAA9 \uC774\uB984\uC5D0 \uD544\uC694\uD55C \uBB38\uC790\uC5F4 \uB9AC\uD130\uB7F4",
24105
23957
  typedDictEntryUnique: "\uC0AC\uC804 \uB0B4\uC758 \uC774\uB984\uC740 \uACE0\uC720\uD574\uC57C \uD569\uB2C8\uB2E4.",
24106
23958
  typedDictExtraArgs: "\uCD94\uAC00 TypedDict \uC778\uC218\uAC00 \uC9C0\uC6D0\uB418\uC9C0 \uC54A\uC74C",
24107
- 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.',
24108
23960
  typedDictFieldNotRequiredRedefinition: 'TypedDict \uD56D\uBAA9 "{name}"\uC740(\uB294) NotRequired\uB85C \uC7AC\uC815\uC758\uB420 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.',
24109
23961
  typedDictFieldReadOnlyRedefinition: 'TypedDict \uD56D\uBAA9 "{name}"\uC740(\uB294) ReadOnly\uB85C \uC7AC\uC815\uC758\uB420 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.',
24110
23962
  typedDictFieldRequiredRedefinition: 'TypedDict \uD56D\uBAA9 "{name}"\uC740(\uB294) Required\uB85C \uC7AC\uC815\uC758\uB420 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.',
@@ -24346,7 +24198,6 @@ var require_package_nls_ko = __commonJS({
24346
24198
  typedDictFieldRequired: '"{type}"\uC5D0 "{name}"\uC774(\uAC00) \uD544\uC694\uD569\uB2C8\uB2E4.',
24347
24199
  typedDictFieldTypeMismatch: '"{type}" \uD615\uC2DD\uC740 "{name}" \uD56D\uBAA9\uC5D0 \uD560\uB2F9\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.',
24348
24200
  typedDictFieldUndefined: '"{name}"\uC740(\uB294) "{type}" \uD615\uC2DD\uC758 \uC815\uC758\uB418\uC9C0 \uC54A\uC740 \uD56D\uBAA9\uC785\uB2C8\uB2E4.',
24349
- typedDictFinalMismatch: '@final \uBD88\uC77C\uCE58\uB85C \uC778\uD574 "{sourceType}"\uC774(\uAC00) "{destType}"\uACFC(\uC640) \uD638\uD658\uB418\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.',
24350
24201
  typedDictKeyAccess: 'TypedDict\uC5D0\uC11C \uD56D\uBAA9\uC744 \uCC38\uC870\uD558\uB824\uBA74 ["{name}"]\uC744(\uB97C) \uC0AC\uC6A9\uD558\uC138\uC694.',
24351
24202
  typedDictNotAllowed: "TypedDict\uB294 \uC778\uC2A4\uD134\uC2A4 \uB610\uB294 \uD074\uB798\uC2A4 \uAC80\uC0AC\uC5D0 \uC0AC\uC6A9\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",
24352
24203
  unhashableType: "\u2018{type}\u2019 \uD615\uC2DD\uC744 \uD574\uC2DC\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",
@@ -24718,6 +24569,7 @@ var require_package_nls_pl = __commonJS({
24718
24569
  noneNotUsableWithAsync: "Obiekt typu \u201ENone\u201D nie mo\u017Ce by\u0107 u\u017Cywany z parametrem \u201Easync with\u201D",
24719
24570
  noneOperator: "Operator \u201E{operator}\u201D nie jest obs\u0142ugiwany dla warto\u015Bci \u201ENone\u201D",
24720
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",
24721
24573
  notRequiredArgCount: "Oczekiwano jednego argumentu typu po warto\u015Bci \u201ENotRequired\u201D",
24722
24574
  notRequiredNotInTypedDict: "Element \u201ENotRequired\u201D jest niedozwolony w tym kontek\u015Bcie",
24723
24575
  objectNotCallable: "Obiekt typu \u201E{type}\u201D nie jest wywo\u0142ywalny",
@@ -24736,11 +24588,11 @@ var require_package_nls_pl = __commonJS({
24736
24588
  overloadAbstractImplMismatch: "Przeci\u0105\u017Cenia musz\u0105 by\u0107 zgodne ze stanem abstrakcyjnym implementacji",
24737
24589
  overloadAbstractMismatch: "Przeci\u0105\u017Cenia musz\u0105 by\u0107 abstrakcyjne lub nieabstrakcyjne",
24738
24590
  overloadClassMethodInconsistent: "Przeci\u0105\u017Cenia dla nazwy \u201E{name}\u201D u\u017Cywaj\u0105 metody @classmethod niekonsekwentnie",
24739
- overloadFinalImpl: "@final decorator should be applied only to the implementation",
24740
- 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",
24741
24593
  overloadImplementationMismatch: "Przeci\u0105\u017Cone wdro\u017Cenie jest niesp\xF3jne z sygnatur\u0105 przeci\u0105\u017Cenia {index}",
24742
- overloadOverrideImpl: "@override decorator should be applied only to the implementation",
24743
- 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",
24744
24596
  overloadReturnTypeMismatch: "Przeci\u0105\u017Cenie {prevIndex} dla nazwy \u201E{name}\u201D nak\u0142ada si\u0119 na przeci\u0105\u017Cenie {newIndex} i zwraca niezgodny typ",
24745
24597
  overloadStaticMethodInconsistent: "Przeci\u0105\u017Cenia dla nazwy \u201E{name}\u201D u\u017Cywaj\u0105 metody @staticmethod niekonsekwentnie",
24746
24598
  overloadWithoutImplementation: "Nazwa \u201E{name}\u201D jest oznaczona jako overload, ale nie zapewniono implementacji",
@@ -24936,14 +24788,14 @@ var require_package_nls_pl = __commonJS({
24936
24788
  typedDictBadVar: "Klasy TypedDict mog\u0105 zawiera\u0107 tylko adnotacje typu",
24937
24789
  typedDictBaseClass: "Wszystkie klasy bazowe dla klas TypedDict musz\u0105 by\u0107 r\xF3wnie\u017C klasami TypedDict",
24938
24790
  typedDictBoolParam: "Oczekiwano, \u017Ce parametr \u201E{name}\u201D b\u0119dzie mia\u0142 warto\u015B\u0107 True lub False",
24939
- 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}"',
24940
24792
  typedDictClosedNoExtras: "Klasa bazowa \u201E{name}\u201D jest closed TypedDict; dodatkowe elementy s\u0105 niedozwolone",
24941
24793
  typedDictDelete: "Nie mo\u017Cna usun\u0105\u0107 elementu w typie TypedDict",
24942
24794
  typedDictEmptyName: "Nazwy w elemencie TypedDict nie mog\u0105 by\u0107 puste",
24943
24795
  typedDictEntryName: "Oczekiwano litera\u0142u ci\u0105gu dla nazwy wpisu s\u0142ownika",
24944
24796
  typedDictEntryUnique: "Nazwy w s\u0142owniku musz\u0105 by\u0107 unikatowe",
24945
24797
  typedDictExtraArgs: "Dodatkowe argumenty TypedDict nie s\u0105 obs\u0142ugiwane",
24946
- 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',
24947
24799
  typedDictFieldNotRequiredRedefinition: "Element TypedDict \u201E{name}\u201D nie mo\u017Ce zosta\u0107 przedefiniowany jako NotRequired",
24948
24800
  typedDictFieldReadOnlyRedefinition: "Element TypedDict \u201E{name}\u201D nie mo\u017Ce by\u0107 przedefiniowany jako ReadOnly.",
24949
24801
  typedDictFieldRequiredRedefinition: "Element TypedDict \u201E{name}\u201D nie mo\u017Ce zosta\u0107 przedefiniowany jako Required",
@@ -25185,7 +25037,6 @@ var require_package_nls_pl = __commonJS({
25185
25037
  typedDictFieldRequired: "Nazwa \u201E{name}\u201D jest wymagana w typie \u201E{type}\u201D",
25186
25038
  typedDictFieldTypeMismatch: "Nie mo\u017Cna przypisa\u0107 typu \u201E{type}\u201D do elementu \u201E{name}\u201D",
25187
25039
  typedDictFieldUndefined: "Nazwa \u201E{name}\u201D jest niezdefiniowanym elementem w typie \u201E{type}\u201D",
25188
- typedDictFinalMismatch: "Typ \u201E{sourceType}\u201D jest niezgodny z typem \u201E{destType}\u201D z powodu niezgodno\u015Bci @final",
25189
25040
  typedDictKeyAccess: 'U\u017Cyj elementu ["{name}"], aby odwo\u0142a\u0107 si\u0119 do elementu w TypedDict',
25190
25041
  typedDictNotAllowed: "Funkcja TypedDict nie mo\u017Ce by\u0107 u\u017Cywana do sprawdzania wyst\u0105pie\u0144 lub klas",
25191
25042
  unhashableType: "Typ \u201E{type}\u201D nie jest warto\u015Bci\u0105 skr\xF3tu",
@@ -25557,6 +25408,7 @@ var require_package_nls_pt_br = __commonJS({
25557
25408
  noneNotUsableWithAsync: 'Objeto do\xA0tipo "None" n\xE3o pode ser usado com "async with"',
25558
25409
  noneOperator: 'Operador "{operator}" incompat\xEDvel com "None"',
25559
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}"',
25560
25412
  notRequiredArgCount: 'Argumento de tipo \xFAnico esperado ap\xF3s "NotRequired"',
25561
25413
  notRequiredNotInTypedDict: '"NotRequired" n\xE3o \xE9 permitido neste contexto',
25562
25414
  objectNotCallable: 'O objeto do tipo "{type}" n\xE3o pode ser chamado',
@@ -25575,11 +25427,11 @@ var require_package_nls_pt_br = __commonJS({
25575
25427
  overloadAbstractImplMismatch: "As sobrecargas devem corresponder ao status abstrato da implementa\xE7\xE3o",
25576
25428
  overloadAbstractMismatch: "As sobrecargas devem ser abstratas ou n\xE3o",
25577
25429
  overloadClassMethodInconsistent: 'Sobrecargas para "{name}" usam @classmethod inconsistentemente',
25578
- overloadFinalImpl: "@final decorator should be applied only to the implementation",
25579
- 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",
25580
25432
  overloadImplementationMismatch: "A implementa\xE7\xE3o sobrecarregada n\xE3o \xE9 consistente com a assinatura da sobrecarga {index}",
25581
- overloadOverrideImpl: "@override decorator should be applied only to the implementation",
25582
- 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",
25583
25435
  overloadReturnTypeMismatch: 'A sobrecarga {prevIndex} para "{name}" sobrep\xF5e a sobrecarga {newIndex} e retorna um tipo incompat\xEDvel',
25584
25436
  overloadStaticMethodInconsistent: 'Sobrecargas para "{name}" usam @staticmethod inconsistentemente',
25585
25437
  overloadWithoutImplementation: '"{name}" est\xE1 marcado como overload, mas nenhuma implementa\xE7\xE3o foi fornecida',
@@ -25775,14 +25627,14 @@ var require_package_nls_pt_br = __commonJS({
25775
25627
  typedDictBadVar: "As classes TypedDict podem conter apenas anota\xE7\xF5es de tipo",
25776
25628
  typedDictBaseClass: "Todas as classes base para classes TypedDict tamb\xE9m devem ser classes TypedDict",
25777
25629
  typedDictBoolParam: 'Esperava-se que o par\xE2metro "{name}" tivesse um valor True ou False',
25778
- 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}"',
25779
25631
  typedDictClosedNoExtras: 'A classe base "{name}" \xE9 um TypedDict closed; itens extras n\xE3o s\xE3o permitidos',
25780
25632
  typedDictDelete: "N\xE3o foi poss\xEDvel excluir o item em TypedDict",
25781
25633
  typedDictEmptyName: "Os nomes dentro de um TypedDict n\xE3o podem estar vazios",
25782
25634
  typedDictEntryName: "Literal de cadeia de caracteres esperado para o nome da entrada do dicion\xE1rio",
25783
25635
  typedDictEntryUnique: "Os nomes dentro de um dicion\xE1rio devem ser exclusivos",
25784
25636
  typedDictExtraArgs: "Argumentos TypedDict extras s\xE3o incompat\xEDveis",
25785
- 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',
25786
25638
  typedDictFieldNotRequiredRedefinition: 'O item TypedDict "{name}" n\xE3o pode ser redefinido como NotRequired',
25787
25639
  typedDictFieldReadOnlyRedefinition: 'O item TypedDict "{name}" n\xE3o pode ser redefinido como ReadOnly',
25788
25640
  typedDictFieldRequiredRedefinition: 'O item TypedDict "{name}" n\xE3o pode ser redefinido como Required',
@@ -26024,7 +25876,6 @@ var require_package_nls_pt_br = __commonJS({
26024
25876
  typedDictFieldRequired: '"{name}" \xE9 necess\xE1rio em "{type}"',
26025
25877
  typedDictFieldTypeMismatch: 'O tipo "{type}" n\xE3o \xE9 atribu\xEDvel ao item "{name}"',
26026
25878
  typedDictFieldUndefined: '"{name}" \xE9 um item indefinido no tipo "{type}"',
26027
- typedDictFinalMismatch: '"{sourceType}" \xE9 incompat\xEDvel com "{destType}" devido a uma @final incompat\xEDvel',
26028
25879
  typedDictKeyAccess: 'Usar ["{name}"] para fazer refer\xEAncia ao item em TypedDict',
26029
25880
  typedDictNotAllowed: "TypedDict n\xE3o pode ser usado para verifica\xE7\xF5es de inst\xE2ncia ou de classe",
26030
25881
  unhashableType: 'O tipo "{type}" n\xE3o \xE9 pode fazer hash',
@@ -26396,6 +26247,7 @@ var require_package_nls_qps_ploc = __commonJS({
26396
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]',
26397
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]',
26398
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]',
26399
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]',
26400
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]',
26401
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]',
@@ -26614,14 +26466,14 @@ var require_package_nls_qps_ploc = __commonJS({
26614
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]",
26615
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]",
26616
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]',
26617
- 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]',
26618
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]',
26619
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]",
26620
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]",
26621
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]",
26622
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]",
26623
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]",
26624
- 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]',
26625
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]',
26626
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]',
26627
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]',
@@ -26863,7 +26715,6 @@ var require_package_nls_qps_ploc = __commonJS({
26863
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]',
26864
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]',
26865
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]',
26866
- 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]',
26867
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]',
26868
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]",
26869
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]',
@@ -27235,6 +27086,7 @@ var require_package_nls_ru = __commonJS({
27235
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"',
27236
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"',
27237
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}"',
27238
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',
27239
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',
27240
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',
@@ -27253,11 +27105,11 @@ var require_package_nls_ru = __commonJS({
27253
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",
27254
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",
27255
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',
27256
- overloadFinalImpl: "@final decorator should be applied only to the implementation",
27257
- 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",
27258
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}",
27259
- overloadOverrideImpl: "@override decorator should be applied only to the implementation",
27260
- 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",
27261
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',
27262
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',
27263
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',
@@ -27453,14 +27305,14 @@ var require_package_nls_ru = __commonJS({
27453
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",
27454
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",
27455
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',
27456
- 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}"',
27457
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',
27458
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",
27459
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",
27460
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",
27461
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",
27462
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",
27463
- 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',
27464
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',
27465
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',
27466
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',
@@ -27702,7 +27554,6 @@ var require_package_nls_ru = __commonJS({
27702
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}"',
27703
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}"',
27704
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}"',
27705
- 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',
27706
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',
27707
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",
27708
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',
@@ -28074,6 +27925,7 @@ var require_package_nls_tr = __commonJS({
28074
27925
  noneNotUsableWithAsync: '"None" t\xFCr\xFCndeki nesne "async" ile kullan\u0131lamaz',
28075
27926
  noneOperator: '"{operator}" i\u015Fleci "None" i\xE7in desteklenmiyor',
28076
27927
  noneUnknownMember: '"{name}" bilinen bir "None" \xF6zniteli\u011Fi de\u011Fil',
27928
+ nonlocalTypeParam: '"{name}" t\xFCr parametresi i\xE7in nonlocal ba\u011Flamaya izin verilmez',
28077
27929
  notRequiredArgCount: '"NotRequired" sonras\u0131nda tek bir t\xFCr ba\u011F\u0131ms\u0131z de\u011Fi\u015Fken bekleniyordu',
28078
27930
  notRequiredNotInTypedDict: 'Bu ba\u011Flamda "NotRequired" kullan\u0131m\u0131na izin verilmiyor',
28079
27931
  objectNotCallable: '"{type}" t\xFCr\xFCndeki nesne \xE7a\u011Fr\u0131lamaz',
@@ -28092,11 +27944,11 @@ var require_package_nls_tr = __commonJS({
28092
27944
  overloadAbstractImplMismatch: "A\u015F\u0131r\u0131 y\xFCklemeler uygulaman\u0131n \xF6zet durumuyla e\u015Fle\u015Fmelidir",
28093
27945
  overloadAbstractMismatch: "A\u015F\u0131r\u0131 y\xFCklemelerin t\xFCm\xFC soyut olmal\u0131 veya t\xFCm\xFC olmamal\u0131d\u0131r",
28094
27946
  overloadClassMethodInconsistent: '"{name}" i\xE7in a\u015F\u0131r\u0131 y\xFCklemeler, @classmethod y\xF6ntemini tutarl\u0131 kullan\u0131yor',
28095
- overloadFinalImpl: "@final decorator should be applied only to the implementation",
28096
- 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",
28097
27949
  overloadImplementationMismatch: "A\u015F\u0131r\u0131 y\xFCklenmi\u015F uygulama, {index} a\u015F\u0131r\u0131 y\xFCkleme imzas\u0131 ile tutarl\u0131 de\u011Fil",
28098
- overloadOverrideImpl: "@override decorator should be applied only to the implementation",
28099
- 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",
28100
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',
28101
27953
  overloadStaticMethodInconsistent: '"{name}" i\xE7in a\u015F\u0131r\u0131 y\xFCklemeler, @staticmethod y\xF6ntemini tutars\u0131z kullan\u0131yor',
28102
27954
  overloadWithoutImplementation: '"{name}" is marked as overload, but no implementation is provided',
@@ -28292,14 +28144,14 @@ var require_package_nls_tr = __commonJS({
28292
28144
  typedDictBadVar: "TypedDict s\u0131n\u0131flar\u0131 yaln\u0131zca t\xFCr ek a\xE7\u0131klamalar\u0131 i\xE7erebilir",
28293
28145
  typedDictBaseClass: "TypedDict s\u0131n\u0131flar\u0131 i\xE7in t\xFCm temel s\u0131n\u0131flar da TypedDict s\u0131n\u0131flar\u0131 olmal\u0131d\u0131r",
28294
28146
  typedDictBoolParam: 'True veya False de\u011Feri olmas\u0131 i\xE7in "{name}" parametresi bekleniyordu',
28295
- 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}"',
28296
28148
  typedDictClosedNoExtras: '"{name}" temel s\u0131n\u0131f\u0131 closed bir TypedDict \xF6\u011Fesidir; ek \xF6\u011Felere izin verilmiyor',
28297
28149
  typedDictDelete: "TypedDict'da \xF6\u011Fe silinemedi",
28298
28150
  typedDictEmptyName: "TypedDict i\xE7indeki adlar bo\u015F olamaz",
28299
28151
  typedDictEntryName: "S\xF6zl\xFCk girdisi ad\u0131 i\xE7in sabit de\u011Ferli dize bekleniyordu",
28300
28152
  typedDictEntryUnique: "S\xF6zl\xFCk i\xE7indeki adlar benzersiz olmal\u0131d\u0131r",
28301
28153
  typedDictExtraArgs: "Ekstra TypedDict ba\u011F\u0131ms\u0131z de\u011Fi\u015Fkenleri desteklenmiyor",
28302
- 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',
28303
28155
  typedDictFieldNotRequiredRedefinition: '"{name}" TypedDict \xF6\u011Fesi NotRequired olarak yeniden tan\u0131mlanamaz',
28304
28156
  typedDictFieldReadOnlyRedefinition: '"{name}" TypedDict \xF6\u011Fesi ReadOnly olarak yeniden tan\u0131mlanamaz',
28305
28157
  typedDictFieldRequiredRedefinition: '"{name}" TypedDict \xF6\u011Fesi Required olarak yeniden tan\u0131mlanamaz',
@@ -28541,7 +28393,6 @@ var require_package_nls_tr = __commonJS({
28541
28393
  typedDictFieldRequired: '"{type}" i\xE7inde "{name}" gerekiyor',
28542
28394
  typedDictFieldTypeMismatch: '"{type}" t\xFCr\xFC "{name}" \xF6\u011Fesine atanamaz',
28543
28395
  typedDictFieldUndefined: '"{name}", "{type}" t\xFCr\xFCndeki tan\u0131ms\u0131z bir \xF6\u011Fedir',
28544
- typedDictFinalMismatch: '"{sourceType}" @final uyumsuzlu\u011Fu nedeniyle "{destType}" ile uyumsuz',
28545
28396
  typedDictKeyAccess: 'TypedDict\u2019te \xF6\u011Feye ba\u015Fvurmak i\xE7in ["{name}"] de\u011Ferini kullan\u0131n',
28546
28397
  typedDictNotAllowed: "TypedDict \xF6rnek veya s\u0131n\u0131f kontrolleri i\xE7in kullan\u0131lamaz",
28547
28398
  unhashableType: '"{type}" t\xFCr\xFC karmalanabilir de\u011Fil',
@@ -28913,6 +28764,7 @@ var require_package_nls_zh_cn = __commonJS({
28913
28764
  noneNotUsableWithAsync: '\u7C7B\u578B\u4E3A "None" \u7684\u5BF9\u8C61\u4E0D\u80FD\u4E0E "async with" \u4E00\u8D77\u4F7F\u7528',
28914
28765
  noneOperator: '\u201CNone\u201D\u4E0D\u652F\u6301\u8FD0\u7B97\u7B26"{operator}"',
28915
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',
28916
28768
  notRequiredArgCount: "\u201CNotRequired\u201D \u4E4B\u540E\u5E94\u4E3A\u5355\u4E2A\u7C7B\u578B\u53C2\u6570",
28917
28769
  notRequiredNotInTypedDict: "\u6B64\u4E0A\u4E0B\u6587\u4E2D\u4E0D\u5141\u8BB8\u4F7F\u7528\u201CNotRequired\u201D",
28918
28770
  objectNotCallable: "\u7C7B\u578B\u4E3A\u201C{type}\u201D\u7684\u5BF9\u8C61\u4E0D\u53EF\u8C03\u7528",
@@ -28931,11 +28783,11 @@ var require_package_nls_zh_cn = __commonJS({
28931
28783
  overloadAbstractImplMismatch: "\u91CD\u8F7D\u5FC5\u987B\u4E0E\u5B9E\u73B0\u7684\u62BD\u8C61\u72B6\u6001\u5339\u914D",
28932
28784
  overloadAbstractMismatch: "\u91CD\u8F7D\u5FC5\u987B\u5168\u662F\u62BD\u8C61\u91CD\u8F7D\uFF0C\u6216\u8005\u5168\u90FD\u4E0D\u662F\u62BD\u8C61\u91CD\u8F7D",
28933
28785
  overloadClassMethodInconsistent: "\u201C{name}\u201D\u7684\u91CD\u8F7D\u4F7F\u7528 @classmethod \u7684\u65B9\u5F0F\u4E0D\u4E00\u81F4",
28934
- overloadFinalImpl: "@final decorator should be applied only to the implementation",
28935
- 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",
28936
28788
  overloadImplementationMismatch: "\u91CD\u8F7D\u5B9E\u73B0\u4E0E\u91CD\u8F7D {index} \u7684\u7B7E\u540D\u4E0D\u4E00\u81F4",
28937
- overloadOverrideImpl: "@override decorator should be applied only to the implementation",
28938
- 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",
28939
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",
28940
28792
  overloadStaticMethodInconsistent: "\u201C{name}\u201D\u7684\u91CD\u8F7D\u4F7F\u7528 @staticmethod \u7684\u65B9\u5F0F\u4E0D\u4E00\u81F4",
28941
28793
  overloadWithoutImplementation: '"{name}" \u88AB\u6807\u8BB0\u4E3A overload\uFF0C\u4F46\u672A\u63D0\u4F9B\u5B9E\u73B0',
@@ -29131,14 +28983,14 @@ var require_package_nls_zh_cn = __commonJS({
29131
28983
  typedDictBadVar: "TypedDict \u7C7B\u53EA\u80FD\u5305\u542B\u7C7B\u578B\u6279\u6CE8",
29132
28984
  typedDictBaseClass: "TypedDict \u7C7B\u7684\u6240\u6709\u57FA\u7C7B\u4E5F\u5FC5\u987B\u662F TypedDict \u7C7B",
29133
28985
  typedDictBoolParam: "\u9884\u671F\u201C{name}\u201D\u53C2\u6570\u7684\u503C\u4E3A True \u6216 False",
29134
- 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',
29135
28987
  typedDictClosedNoExtras: '\u57FA\u7C7B "{name}" \u662F closed TypedDict; \u4E0D\u5141\u8BB8\u4F7F\u7528\u989D\u5916\u7684\u9879',
29136
28988
  typedDictDelete: "\u65E0\u6CD5\u5220\u9664 TypedDict \u4E2D\u7684\u9879",
29137
28989
  typedDictEmptyName: "TypedDict \u4E2D\u7684\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",
29138
28990
  typedDictEntryName: "\u5B57\u5178\u6761\u76EE\u540D\u79F0\u7684\u9884\u671F\u5B57\u7B26\u4E32\u6587\u672C",
29139
28991
  typedDictEntryUnique: "\u5B57\u5178\u4E2D\u7684\u540D\u79F0\u5FC5\u987B\u552F\u4E00",
29140
28992
  typedDictExtraArgs: "\u4E0D\u652F\u6301\u989D\u5916\u7684 TypedDict \u53C2\u6570",
29141
- 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',
29142
28994
  typedDictFieldNotRequiredRedefinition: "\u65E0\u6CD5\u5C06 TypedDict \u9879\u201C{name}\u201D\u91CD\u65B0\u5B9A\u4E49\u4E3A NotRequired",
29143
28995
  typedDictFieldReadOnlyRedefinition: "\u65E0\u6CD5\u5C06 TypedDict \u9879\u201C{name}\u201D\u91CD\u65B0\u5B9A\u4E49\u4E3A ReadOnly",
29144
28996
  typedDictFieldRequiredRedefinition: "\u65E0\u6CD5\u5C06 TypedDict \u9879\u201C{name}\u201D\u91CD\u65B0\u5B9A\u4E49\u4E3A Required",
@@ -29380,7 +29232,6 @@ var require_package_nls_zh_cn = __commonJS({
29380
29232
  typedDictFieldRequired: '"{type}"\u4E2D\u9700\u8981"{name}"',
29381
29233
  typedDictFieldTypeMismatch: "\u7C7B\u578B\u201C{type}\u201D\u4E0D\u53EF\u5206\u914D\u7ED9\u9879\u201C{name}\u201D",
29382
29234
  typedDictFieldUndefined: "\u201C{name}\u201D\u662F\u7C7B\u578B\u201C{type}\u201D\u4E2D\u7684\u672A\u5B9A\u4E49\u9879",
29383
- typedDictFinalMismatch: '"{sourceType}"\u4E0E"{destType}"\u4E0D\u517C\u5BB9\uFF0C\u56E0\u4E3A@final\u4E0D\u5339\u914D',
29384
29235
  typedDictKeyAccess: '\u4F7F\u7528 ["{name}"] \u5F15\u7528 TypedDict \u4E2D\u7684\u9879',
29385
29236
  typedDictNotAllowed: "\u4E0D\u80FD\u5BF9\u5B9E\u4F8B\u6216\u7C7B\u68C0\u67E5\u4F7F\u7528 TypedDict",
29386
29237
  unhashableType: "\u7C7B\u578B\u201C{type}\u201D\u4E0D\u53EF\u54C8\u5E0C",
@@ -29752,6 +29603,7 @@ var require_package_nls_zh_tw = __commonJS({
29752
29603
  noneNotUsableWithAsync: '\u985E\u578B "None" \u7684\u7269\u4EF6\u4E0D\u80FD\u8207 "async with" \u642D\u914D\u4F7F\u7528',
29753
29604
  noneOperator: '"None" \u4E0D\u652F\u63F4\u904B\u7B97\u5B50 "{operator}"',
29754
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',
29755
29607
  notRequiredArgCount: '\u9810\u671F "NotRequired" \u4E4B\u5F8C\u70BA\u55AE\u4E00\u985E\u578B\u5F15\u6578',
29756
29608
  notRequiredNotInTypedDict: '\u6B64\u5167\u5BB9\u4E2D\u4E0D\u5141\u8A31 "NotRequired"',
29757
29609
  objectNotCallable: '\u985E\u578B "{type}" \u7684\u7269\u4EF6\u7121\u6CD5\u547C\u53EB',
@@ -29770,11 +29622,11 @@ var require_package_nls_zh_tw = __commonJS({
29770
29622
  overloadAbstractImplMismatch: "\u591A\u8F09\u5FC5\u9808\u7B26\u5408\u5BE6\u4F5C\u7684\u62BD\u8C61\u72C0\u614B",
29771
29623
  overloadAbstractMismatch: "\u591A\u8F09\u5FC5\u9808\u5168\u70BA\u62BD\u8C61\u6216\u4E0D\u62BD\u8C61",
29772
29624
  overloadClassMethodInconsistent: '"{name}" \u7684\u591A\u8F09\u4E0D\u4E00\u81F4\u5730\u4F7F\u7528 @classmethod',
29773
- overloadFinalImpl: "@final decorator should be applied only to the implementation",
29774
- 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",
29775
29627
  overloadImplementationMismatch: "\u591A\u8F09\u7684\u5BE6\u4F5C\u8207\u591A\u8F09 {index} \u7684\u7C3D\u7AE0\u4E0D\u4E00\u81F4",
29776
- overloadOverrideImpl: "@override decorator should be applied only to the implementation",
29777
- 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",
29778
29630
  overloadReturnTypeMismatch: '"{name}" \u7684\u591A\u8F09 {prevIndex} \u8207\u591A\u8F09 {newIndex} \u91CD\u758A\uFF0C\u4E26\u50B3\u56DE\u4E0D\u76F8\u5BB9\u7684\u985E\u578B',
29779
29631
  overloadStaticMethodInconsistent: '"{name}" \u7684\u591A\u8F09\u4E0D\u4E00\u81F4\u5730\u4F7F\u7528 @staticmethod',
29780
29632
  overloadWithoutImplementation: '"{name}" \u6A19\u793A\u70BA overload\uFF0C\u4F46\u672A\u63D0\u4F9B\u5BE6\u4F5C',
@@ -29970,14 +29822,14 @@ var require_package_nls_zh_tw = __commonJS({
29970
29822
  typedDictBadVar: "TypedDict \u985E\u5225\u53EA\u80FD\u5305\u542B\u578B\u5225\u8A3B\u91CB",
29971
29823
  typedDictBaseClass: "TypedDict \u985E\u5225\u7684\u6240\u6709\u57FA\u5E95\u985E\u5225\u4E5F\u5FC5\u9808\u662F TypedDict \u985E\u5225",
29972
29824
  typedDictBoolParam: '\u9810\u671F "{name}" \u53C3\u6578\u7684\u503C\u70BA True \u6216 False',
29973
- 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}"',
29974
29826
  typedDictClosedNoExtras: '\u57FA\u5E95\u985E\u5225 "{name}" \u662F closed \u7684 TypedDict; \u4E0D\u5141\u8A31\u984D\u5916\u9805\u76EE',
29975
29827
  typedDictDelete: "\u7121\u6CD5\u522A\u9664 TypedDict \u4E2D\u7684\u9805\u76EE",
29976
29828
  typedDictEmptyName: "TypedDict \u5167\u7684\u540D\u7A31\u4E0D\u53EF\u70BA\u7A7A\u767D",
29977
29829
  typedDictEntryName: "\u5B57\u5178\u9805\u76EE\u540D\u7A31\u9810\u671F\u70BA\u5B57\u4E32\u5E38\u503C",
29978
29830
  typedDictEntryUnique: "\u5B57\u5178\u5167\u7684\u540D\u7A31\u5FC5\u9808\u662F\u552F\u4E00\u7684",
29979
29831
  typedDictExtraArgs: "\u4E0D\u652F\u63F4\u984D\u5916\u7684 TypedDict \u5F15\u6578",
29980
- 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',
29981
29833
  typedDictFieldNotRequiredRedefinition: 'TypedDict \u9805\u76EE "{name}" \u4E0D\u80FD\u91CD\u65B0\u5B9A\u7FA9\u70BA NotRequired',
29982
29834
  typedDictFieldReadOnlyRedefinition: 'TypedDict \u9805\u76EE "{name}" \u4E0D\u80FD\u91CD\u65B0\u5B9A\u7FA9\u70BA ReadOnly',
29983
29835
  typedDictFieldRequiredRedefinition: 'TypedDict \u9805\u76EE "{name}" \u4E0D\u80FD\u91CD\u65B0\u5B9A\u7FA9\u70BA Required',
@@ -30219,7 +30071,6 @@ var require_package_nls_zh_tw = __commonJS({
30219
30071
  typedDictFieldRequired: '"{type}" \u4E2D\u9700\u8981 "{name}"',
30220
30072
  typedDictFieldTypeMismatch: '\u578B\u5225 "{type}" \u7121\u6CD5\u6307\u6D3E\u7D66\u9805\u76EE "{name}"',
30221
30073
  typedDictFieldUndefined: '"{name}" \u662F\u578B\u5225 "{type}" \u4E2D\u672A\u5B9A\u7FA9\u7684\u9805\u76EE',
30222
- typedDictFinalMismatch: '"{sourceType}" \u8207 "{destType}" \u4E0D\u76F8\u5BB9\uFF0C\u56E0\u70BA@final \u4E0D\u7B26',
30223
30074
  typedDictKeyAccess: '\u4F7F\u7528 ["{name}"] \u53C3\u8003 TypedDict \u4E2D\u7684\u9805\u76EE',
30224
30075
  typedDictNotAllowed: "\u57F7\u884C\u500B\u9AD4\u6216\u985E\u5225\u6AA2\u67E5\u7121\u6CD5\u4F7F\u7528 TypedDict",
30225
30076
  unhashableType: '\u578B\u5225 "{type}" \u7121\u6CD5\u96DC\u6E4A',
@@ -30443,6 +30294,7 @@ var require_localize = __commonJS({
30443
30294
  Diagnostic4.baseClassVariableTypeIncompatible = () => new ParameterizedString(getRawString("Diagnostic.baseClassVariableTypeIncompatible"));
30444
30295
  Diagnostic4.baseClassUnknown = () => getRawString("Diagnostic.baseClassUnknown");
30445
30296
  Diagnostic4.binaryOperationNotAllowed = () => getRawString("Diagnostic.binaryOperationNotAllowed");
30297
+ Diagnostic4.bindParamMissing = () => new ParameterizedString(getRawString("Diagnostic.bindParamMissing"));
30446
30298
  Diagnostic4.bindTypeMismatch = () => new ParameterizedString(getRawString("Diagnostic.bindTypeMismatch"));
30447
30299
  Diagnostic4.breakInExceptionGroup = () => getRawString("Diagnostic.breakInExceptionGroup");
30448
30300
  Diagnostic4.breakOutsideLoop = () => getRawString("Diagnostic.breakOutsideLoop");
@@ -30724,11 +30576,12 @@ var require_localize = __commonJS({
30724
30576
  Diagnostic4.noneNotUsableWithAsync = () => getRawString("Diagnostic.noneNotUsableWithAsync");
30725
30577
  Diagnostic4.noneOperator = () => new ParameterizedString(getRawString("Diagnostic.noneOperator"));
30726
30578
  Diagnostic4.noneUnknownMember = () => new ParameterizedString(getRawString("Diagnostic.noneUnknownMember"));
30579
+ Diagnostic4.nonLocalInModule = () => getRawString("Diagnostic.nonLocalInModule");
30727
30580
  Diagnostic4.nonLocalNoBinding = () => new ParameterizedString(getRawString("Diagnostic.nonLocalNoBinding"));
30728
30581
  Diagnostic4.nonLocalReassignment = () => new ParameterizedString(getRawString("Diagnostic.nonLocalReassignment"));
30729
30582
  Diagnostic4.nonLocalRedefinition = () => new ParameterizedString(getRawString("Diagnostic.nonLocalRedefinition"));
30730
- Diagnostic4.nonLocalInModule = () => getRawString("Diagnostic.nonLocalInModule");
30731
30583
  Diagnostic4.noOverload = () => new ParameterizedString(getRawString("Diagnostic.noOverload"));
30584
+ Diagnostic4.nonlocalTypeParam = () => new ParameterizedString(getRawString("Diagnostic.nonlocalTypeParam"));
30732
30585
  Diagnostic4.noReturnContainsReturn = () => getRawString("Diagnostic.noReturnContainsReturn");
30733
30586
  Diagnostic4.noReturnContainsYield = () => getRawString("Diagnostic.noReturnContainsYield");
30734
30587
  Diagnostic4.noReturnReturnsNone = () => getRawString("Diagnostic.noReturnReturnsNone");
@@ -30872,6 +30725,7 @@ var require_localize = __commonJS({
30872
30725
  Diagnostic4.typeAliasRedeclared = () => new ParameterizedString(getRawString("Diagnostic.typeAliasRedeclared"));
30873
30726
  Diagnostic4.typeAliasStatementIllegal = () => getRawString("Diagnostic.typeAliasStatementIllegal");
30874
30727
  Diagnostic4.typeAliasStatementBadScope = () => getRawString("Diagnostic.typeAliasStatementBadScope");
30728
+ Diagnostic4.typeAliasTypeBadScope = () => getRawString("Diagnostic.typeAliasTypeBadScope");
30875
30729
  Diagnostic4.typeAliasTypeBaseClass = () => getRawString("Diagnostic.typeAliasTypeBaseClass");
30876
30730
  Diagnostic4.typeAliasTypeMustBeAssigned = () => getRawString("Diagnostic.typeAliasTypeMustBeAssigned");
30877
30731
  Diagnostic4.typeAliasTypeNameArg = () => getRawString("Diagnostic.typeAliasTypeNameArg");
@@ -31184,7 +31038,6 @@ var require_localize = __commonJS({
31184
31038
  DiagnosticAddendum2.typedDictFieldRequired = () => new ParameterizedString(getRawString("DiagnosticAddendum.typedDictFieldRequired"));
31185
31039
  DiagnosticAddendum2.typedDictFieldTypeMismatch = () => new ParameterizedString(getRawString("DiagnosticAddendum.typedDictFieldTypeMismatch"));
31186
31040
  DiagnosticAddendum2.typedDictFieldUndefined = () => new ParameterizedString(getRawString("DiagnosticAddendum.typedDictFieldUndefined"));
31187
- DiagnosticAddendum2.typedDictFinalMismatch = () => new ParameterizedString(getRawString("DiagnosticAddendum.typedDictFinalMismatch"));
31188
31041
  DiagnosticAddendum2.typedDictKeyAccess = () => new ParameterizedString(getRawString("DiagnosticAddendum.typedDictKeyAccess"));
31189
31042
  DiagnosticAddendum2.typedDictNotAllowed = () => getRawString("DiagnosticAddendum.typedDictNotAllowed");
31190
31043
  DiagnosticAddendum2.typeIncompatible = () => new ParameterizedString(getRawString("DiagnosticAddendum.typeIncompatible"));
@@ -34139,6 +33992,7 @@ var require_parseTreeUtils = __commonJS({
34139
33992
  exports2.getTypeVarScopesForNode = getTypeVarScopesForNode;
34140
33993
  exports2.checkDecorator = checkDecorator;
34141
33994
  exports2.isSimpleDefault = isSimpleDefault;
33995
+ exports2.getPreviousNonWhitespaceToken = getPreviousNonWhitespaceToken;
34142
33996
  var AnalyzerNodeInfo = __importStar(require_analyzerNodeInfo());
34143
33997
  var core_1 = require_core();
34144
33998
  var debug_1 = require_debug();
@@ -36261,6 +36115,17 @@ var require_parseTreeUtils = __commonJS({
36261
36115
  return false;
36262
36116
  }
36263
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
+ }
36264
36129
  }
36265
36130
  });
36266
36131
 
@@ -42655,6 +42520,7 @@ var require_tokenizer = __commonJS({
42655
42520
  }
42656
42521
  }
42657
42522
  _skipToEndOfStringLiteral(flags, inFormatSpecifier = false) {
42523
+ var _a;
42658
42524
  const quoteChar = flags & 1 ? 39 : 34;
42659
42525
  const isTriplicate = (flags & 4) !== 0;
42660
42526
  const isFString = (flags & 64) !== 0;
@@ -42696,12 +42562,14 @@ var require_tokenizer = __commonJS({
42696
42562
  }
42697
42563
  }
42698
42564
  } else if (this._cs.currentChar === 10 || this._cs.currentChar === 13) {
42699
- if (!isTriplicate && !isFString) {
42700
- flags |= 65536;
42701
- return {
42702
- escapedValue: getEscapedValue(),
42703
- flags
42704
- };
42565
+ if (!isTriplicate) {
42566
+ if (!isFString || !((_a = this._activeFString) == null ? void 0 : _a.activeReplacementField)) {
42567
+ flags |= 65536;
42568
+ return {
42569
+ escapedValue: getEscapedValue(),
42570
+ flags
42571
+ };
42572
+ }
42705
42573
  }
42706
42574
  if (this._cs.currentChar === 13 && this._cs.nextChar === 10) {
42707
42575
  escapedValueLength++;
@@ -44325,6 +44193,7 @@ var require_binder = __commonJS({
44325
44193
  /* unbound */
44326
44194
  false
44327
44195
  );
44196
+ this._addInferredTypeAssignmentForVariable(node.d.destExpr, node.d.rightExpr);
44328
44197
  if (node.d.operator === 1 && this._currentScope.type === 4 && node.d.leftExpr.nodeType === 38 && node.d.leftExpr.d.value === "__all__") {
44329
44198
  const expr = node.d.rightExpr;
44330
44199
  let emitDunderAllWarning = true;
@@ -46743,6 +46612,7 @@ var require_sourceFileInfoUtils = __commonJS({
46743
46612
  Object.defineProperty(exports2, "__esModule", { value: true });
46744
46613
  exports2.isUserCode = isUserCode;
46745
46614
  exports2.collectImportedByCells = collectImportedByCells;
46615
+ exports2.collectImportedByRecursively = collectImportedByRecursively;
46746
46616
  exports2.verifyNoCyclesInChainedFiles = verifyNoCyclesInChainedFiles;
46747
46617
  exports2.createChainedByList = createChainedByList;
46748
46618
  var debug_1 = require_debug();
@@ -46754,9 +46624,18 @@ var require_sourceFileInfoUtils = __commonJS({
46754
46624
  function collectImportedByCells(program, fileInfo) {
46755
46625
  _parseAllOpenCells(program);
46756
46626
  const importedByCells = /* @__PURE__ */ new Set();
46757
- _collectImportedByCells(fileInfo, importedByCells);
46627
+ collectImportedByRecursively(fileInfo, importedByCells);
46758
46628
  return importedByCells;
46759
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
+ }
46760
46639
  function verifyNoCyclesInChainedFiles(program, fileInfo) {
46761
46640
  var _a;
46762
46641
  let nextChainedFile = fileInfo.chainedSourceFile;
@@ -46806,15 +46685,6 @@ var require_sourceFileInfoUtils = __commonJS({
46806
46685
  program.handleMemoryHighUsage();
46807
46686
  }
46808
46687
  }
46809
- function _collectImportedByCells(fileInfo, importedByCells) {
46810
- fileInfo.importedBy.forEach((dep) => {
46811
- if (importedByCells.has(dep)) {
46812
- return;
46813
- }
46814
- importedByCells.add(dep);
46815
- _collectImportedByCells(dep, importedByCells);
46816
- });
46817
- }
46818
46688
  }
46819
46689
  });
46820
46690
 
@@ -47897,13 +47767,19 @@ var require_types = __commonJS({
47897
47767
  }
47898
47768
  FunctionType2.cloneAsInstantiable = cloneAsInstantiable;
47899
47769
  function specialize(type, specializedTypes, specializedInferredReturnType) {
47770
+ var _a;
47900
47771
  const newFunction = TypeBase.cloneType(type);
47901
47772
  (0, debug_1.assert)(specializedTypes.parameterTypes.length === type.shared.parameters.length);
47902
47773
  if (specializedTypes.parameterDefaultTypes) {
47903
47774
  (0, debug_1.assert)(specializedTypes.parameterDefaultTypes.length === type.shared.parameters.length);
47904
47775
  }
47905
47776
  newFunction.priv.specializedTypes = specializedTypes;
47906
- 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
+ }
47907
47783
  return newFunction;
47908
47784
  }
47909
47785
  FunctionType2.specialize = specialize;
@@ -48211,7 +48087,7 @@ var require_types = __commonJS({
48211
48087
  }
48212
48088
  FunctionType2.addKeywordOnlyParamSeparator = addKeywordOnlyParamSeparator;
48213
48089
  function getEffectiveReturnType(type, includeInferred = true) {
48214
- var _a;
48090
+ var _a, _b;
48215
48091
  if ((_a = type.priv.specializedTypes) == null ? void 0 : _a.returnType) {
48216
48092
  return type.priv.specializedTypes.returnType;
48217
48093
  }
@@ -48219,7 +48095,7 @@ var require_types = __commonJS({
48219
48095
  return type.shared.declaredReturnType;
48220
48096
  }
48221
48097
  if (includeInferred) {
48222
- return type.priv.inferredReturnType;
48098
+ return (_b = type.priv.inferredReturnType) == null ? void 0 : _b.type;
48223
48099
  }
48224
48100
  return void 0;
48225
48101
  }
@@ -48869,7 +48745,7 @@ var require_types = __commonJS({
48869
48745
  return void 0;
48870
48746
  }
48871
48747
  function isTypeSame(type1, type2, options = {}, recursionCount = 0) {
48872
- var _a, _b, _c, _d, _e, _f, _g, _h;
48748
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
48873
48749
  if (type1 === type2) {
48874
48750
  return true;
48875
48751
  }
@@ -49006,14 +48882,14 @@ var require_types = __commonJS({
49006
48882
  return1Type = type1.priv.specializedTypes.returnType;
49007
48883
  }
49008
48884
  if (!return1Type && type1.priv.inferredReturnType) {
49009
- return1Type = type1.priv.inferredReturnType;
48885
+ return1Type = (_e = type1.priv.inferredReturnType) == null ? void 0 : _e.type;
49010
48886
  }
49011
48887
  let return2Type = functionType2.shared.declaredReturnType;
49012
48888
  if (functionType2.priv.specializedTypes && functionType2.priv.specializedTypes.returnType) {
49013
48889
  return2Type = functionType2.priv.specializedTypes.returnType;
49014
48890
  }
49015
48891
  if (!return2Type && functionType2.priv.inferredReturnType) {
49016
- return2Type = functionType2.priv.inferredReturnType;
48892
+ return2Type = (_f = functionType2.priv.inferredReturnType) == null ? void 0 : _f.type;
49017
48893
  }
49018
48894
  if (return1Type || return2Type) {
49019
48895
  if (!return1Type || !return2Type || !isTypeSame(return1Type, return2Type, { ...options, ignoreTypeFlags: false }, recursionCount)) {
@@ -49053,8 +48929,8 @@ var require_types = __commonJS({
49053
48929
  return false;
49054
48930
  }
49055
48931
  if (type1.shared.recursiveAlias && type2TypeVar.shared.recursiveAlias) {
49056
- const type1TypeArgs = ((_f = (_e = type1 == null ? void 0 : type1.props) == null ? void 0 : _e.typeAliasInfo) == null ? void 0 : _f.typeArgs) || [];
49057
- 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) || [];
49058
48934
  const typeArgCount = Math.max(type1TypeArgs.length, type2TypeArgs.length);
49059
48935
  for (let i = 0; i < typeArgCount; i++) {
49060
48936
  const typeArg1 = i < type1TypeArgs.length ? type1TypeArgs[i] : AnyType.create();
@@ -49535,6 +49411,7 @@ var require_typeWalker = __commonJS({
49535
49411
  visitNever(type) {
49536
49412
  }
49537
49413
  visitFunction(type) {
49414
+ var _a;
49538
49415
  for (let i = 0; i < type.shared.parameters.length; i++) {
49539
49416
  if (type.shared.parameters[i].name) {
49540
49417
  const paramType = types_1.FunctionType.getParamType(type, i);
@@ -49545,7 +49422,7 @@ var require_typeWalker = __commonJS({
49545
49422
  }
49546
49423
  }
49547
49424
  if (!this._isWalkCanceled && !types_1.FunctionType.isParamSpecValue(type) && !types_1.FunctionType.isParamSpecValue(type)) {
49548
- const returnType = type.shared.declaredReturnType ?? type.priv.inferredReturnType;
49425
+ const returnType = type.shared.declaredReturnType ?? ((_a = type.priv.inferredReturnType) == null ? void 0 : _a.type);
49549
49426
  if (returnType) {
49550
49427
  this.walk(returnType);
49551
49428
  }
@@ -49728,6 +49605,7 @@ var require_typeUtils = __commonJS({
49728
49605
  MemberAccessFlags2[MemberAccessFlags2["SkipAttributeAccessOverride"] = 512] = "SkipAttributeAccessOverride";
49729
49606
  MemberAccessFlags2[MemberAccessFlags2["DisallowGenericInstanceVariableAccess"] = 1024] = "DisallowGenericInstanceVariableAccess";
49730
49607
  MemberAccessFlags2[MemberAccessFlags2["TypeExpression"] = 2048] = "TypeExpression";
49608
+ MemberAccessFlags2[MemberAccessFlags2["SkipTypedDictEntries"] = 4096] = "SkipTypedDictEntries";
49731
49609
  })(MemberAccessFlags || (exports2.MemberAccessFlags = MemberAccessFlags = {}));
49732
49610
  var ClassIteratorFlags;
49733
49611
  (function(ClassIteratorFlags2) {
@@ -50762,6 +50640,7 @@ var require_typeUtils = __commonJS({
50762
50640
  return (_b = memberItr.next()) == null ? void 0 : _b.value;
50763
50641
  }
50764
50642
  function* getClassMemberIterator(classType, memberName, flags = 0, skipMroClass) {
50643
+ var _a;
50765
50644
  const declaredTypesOnly = (flags & 64) !== 0;
50766
50645
  let skippedUndeclaredType = false;
50767
50646
  if ((0, types_1.isClass)(classType)) {
@@ -50804,9 +50683,10 @@ var require_typeUtils = __commonJS({
50804
50683
  continue;
50805
50684
  }
50806
50685
  const memberFields = types_1.ClassType.getSymbolTable(specializedMroClass);
50686
+ const skipTdEntry = (flags & 4096) !== 0 && ((_a = specializedMroClass.shared.typedDictEntries) == null ? void 0 : _a.knownItems.has(memberName));
50807
50687
  if ((flags & 16) === 0) {
50808
50688
  const symbol = memberFields.get(memberName);
50809
- if (symbol && symbol.isInstanceMember()) {
50689
+ if (symbol && symbol.isInstanceMember() && !skipTdEntry) {
50810
50690
  const hasDeclaredType = symbol.hasTypedDeclarations();
50811
50691
  if (!declaredTypesOnly || hasDeclaredType) {
50812
50692
  const cm = {
@@ -50828,7 +50708,7 @@ var require_typeUtils = __commonJS({
50828
50708
  }
50829
50709
  if ((flags & 32) === 0) {
50830
50710
  let symbol = memberFields.get(memberName);
50831
- if (symbol && symbol.isClassMember()) {
50711
+ if (symbol && symbol.isClassMember() && !skipTdEntry) {
50832
50712
  const hasDeclaredType = symbol.hasTypedDeclarations();
50833
50713
  if (!declaredTypesOnly || hasDeclaredType) {
50834
50714
  let isInstanceMember = symbol.isInstanceMember();
@@ -51618,7 +51498,7 @@ var require_typeUtils = __commonJS({
51618
51498
  return result;
51619
51499
  }
51620
51500
  function _requiresSpecialization(type, options, recursionCount = 0) {
51621
- var _a, _b;
51501
+ var _a, _b, _c;
51622
51502
  if ((_a = type.props) == null ? void 0 : _a.condition) {
51623
51503
  return true;
51624
51504
  }
@@ -51652,7 +51532,7 @@ var require_typeUtils = __commonJS({
51652
51532
  return true;
51653
51533
  }
51654
51534
  } else if (type.priv.inferredReturnType) {
51655
- if (requiresSpecialization(type.priv.inferredReturnType, options, recursionCount)) {
51535
+ if (requiresSpecialization((_b = type.priv.inferredReturnType) == null ? void 0 : _b.type, options, recursionCount)) {
51656
51536
  return true;
51657
51537
  }
51658
51538
  }
@@ -51679,7 +51559,7 @@ var require_typeUtils = __commonJS({
51679
51559
  }
51680
51560
  return true;
51681
51561
  }
51682
- const aliasInfo = (_b = type.props) == null ? void 0 : _b.typeAliasInfo;
51562
+ const aliasInfo = (_c = type.props) == null ? void 0 : _c.typeAliasInfo;
51683
51563
  if (aliasInfo == null ? void 0 : aliasInfo.typeArgs) {
51684
51564
  return aliasInfo.typeArgs.some((typeArg) => requiresSpecialization(typeArg, options, recursionCount));
51685
51565
  }
@@ -52186,6 +52066,7 @@ var require_typeUtils = __commonJS({
52186
52066
  }
52187
52067
  transformTypeVarsInFunctionType(sourceType, recursionCount) {
52188
52068
  return this.doForEachConstraintSet(() => {
52069
+ var _a, _b;
52189
52070
  let functionType = sourceType;
52190
52071
  const declaredReturnType = types_1.FunctionType.getEffectiveReturnType(functionType);
52191
52072
  const specializedReturnType = declaredReturnType ? this.apply(declaredReturnType, recursionCount) : void 0;
@@ -52234,8 +52115,8 @@ var require_typeUtils = __commonJS({
52234
52115
  }
52235
52116
  let specializedInferredReturnType;
52236
52117
  if (functionType.priv.inferredReturnType) {
52237
- specializedInferredReturnType = this.apply(functionType.priv.inferredReturnType, recursionCount);
52238
- 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)) {
52239
52120
  typesRequiredSpecialization = true;
52240
52121
  }
52241
52122
  }
@@ -53950,7 +53831,7 @@ var require_constraintTracker = __commonJS({
53950
53831
  return this._scopeIds.has(scopeId);
53951
53832
  }
53952
53833
  getScopeIds() {
53953
- return new Set(this._scopeIds);
53834
+ return this._scopeIds ? [...this._scopeIds] : [];
53954
53835
  }
53955
53836
  hasUnificationVars() {
53956
53837
  for (const entry of this._typeVarMap.values()) {
@@ -53971,15 +53852,18 @@ var require_constraintTracker = __commonJS({
53971
53852
  newTypeVarMap._constraintSets = this._constraintSets.map((set) => set.clone());
53972
53853
  return newTypeVarMap;
53973
53854
  }
53974
- cloneWithSignature(scopeId) {
53855
+ cloneWithSignature(scopeIds) {
53975
53856
  const cloned = this.clone();
53976
- if (scopeId) {
53977
- 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)));
53978
53860
  if (filteredSets.length > 0) {
53979
53861
  cloned._constraintSets = filteredSets;
53980
53862
  } else {
53981
53863
  cloned._constraintSets.forEach((context) => {
53982
- context.addScopeId(scopeId);
53864
+ nonEmptyScopeIds.forEach((scopeId) => {
53865
+ context.addScopeId(scopeId);
53866
+ });
53983
53867
  });
53984
53868
  }
53985
53869
  }
@@ -55002,7 +54886,7 @@ var require_parameterUtils = __commonJS({
55002
54886
  ParamKind2[ParamKind2["Keyword"] = 2] = "Keyword";
55003
54887
  ParamKind2[ParamKind2["ExpandedArgs"] = 3] = "ExpandedArgs";
55004
54888
  })(ParamKind || (exports2.ParamKind = ParamKind = {}));
55005
- function getParamListDetails(type) {
54889
+ function getParamListDetails(type, options) {
55006
54890
  const result = {
55007
54891
  firstPositionOrKeywordIndex: 0,
55008
54892
  positionParamCount: 0,
@@ -55062,7 +54946,7 @@ var require_parameterUtils = __commonJS({
55062
54946
  }
55063
54947
  };
55064
54948
  type.shared.parameters.forEach((param, index) => {
55065
- var _a, _b;
54949
+ var _a, _b, _c;
55066
54950
  if (param.category === 1) {
55067
54951
  const paramType = types_1.FunctionType.getParamType(type, index);
55068
54952
  if (param.name && (0, types_1.isUnpackedClass)(paramType) && paramType.priv.tupleTypeArgs) {
@@ -55130,8 +55014,9 @@ var require_parameterUtils = __commonJS({
55130
55014
  const defaultParamType = !entry.isRequired ? specializedParamType : void 0;
55131
55015
  addVirtualParam(types_1.FunctionParam.create(0, specializedParamType, types_1.FunctionParamFlags.TypeDeclared, name, defaultParamType), index, specializedParamType, defaultParamType);
55132
55016
  });
55133
- if (paramType.shared.typedDictEntries.extraItems) {
55134
- addVirtualParam(types_1.FunctionParam.create(2, paramType.shared.typedDictEntries.extraItems.valueType, types_1.FunctionParamFlags.TypeDeclared, "kwargs"), index, paramType.shared.typedDictEntries.extraItems.valueType);
55017
+ const extraItemsType = ((_a = paramType.shared.typedDictEntries.extraItems) == null ? void 0 : _a.valueType) ?? types_1.AnyType.create();
55018
+ if (!(0, types_1.isNever)(extraItemsType) && !(options == null ? void 0 : options.disallowExtraKwargsForTd)) {
55019
+ addVirtualParam(types_1.FunctionParam.create(2, extraItemsType, types_1.FunctionParamFlags.TypeDeclared, "kwargs"), index, extraItemsType);
55135
55020
  result.kwargsIndex = result.params.length - 1;
55136
55021
  }
55137
55022
  result.hasUnpackedTypedDict = true;
@@ -55154,7 +55039,7 @@ var require_parameterUtils = __commonJS({
55154
55039
  index,
55155
55040
  /* typeOverride */
55156
55041
  void 0,
55157
- ((_a = type.priv.specializedTypes) == null ? void 0 : _a.parameterDefaultTypes) ? (_b = type.priv.specializedTypes) == null ? void 0 : _b.parameterDefaultTypes[index] : void 0
55042
+ ((_b = type.priv.specializedTypes) == null ? void 0 : _b.parameterDefaultTypes) ? (_c = type.priv.specializedTypes) == null ? void 0 : _c.parameterDefaultTypes[index] : void 0
55158
55043
  );
55159
55044
  }
55160
55045
  });
@@ -55336,31 +55221,33 @@ var require_typedDicts = __commonJS({
55336
55221
  }
55337
55222
  if (usingDictSyntax) {
55338
55223
  const argsToConsider = argList.slice(2);
55224
+ let sawClosedOrExtraItems = false;
55339
55225
  for (const arg of argsToConsider) {
55340
55226
  if (((_a = arg.name) == null ? void 0 : _a.d.value) === "total" || ((_b = arg.name) == null ? void 0 : _b.d.value) === "closed") {
55341
55227
  if (!arg.valueExpression || arg.valueExpression.nodeType !== 14 || !(arg.valueExpression.d.constType === 15 || arg.valueExpression.d.constType === 33)) {
55342
55228
  evaluator.addDiagnostic(diagnosticRules_1.DiagnosticRule.reportGeneralTypeIssues, localize_1.LocMessage.typedDictBoolParam().format({ name: arg.name.d.value }), arg.valueExpression || errorNode);
55343
55229
  } else if (arg.name.d.value === "total" && arg.valueExpression.d.constType === 15) {
55344
55230
  classType.shared.flags |= 32;
55345
- } else if (arg.name.d.value === "closed" && arg.valueExpression.d.constType === 33) {
55346
- if (AnalyzerNodeInfo.getFileInfo(errorNode).diagnosticRuleSet.enableExperimentalFeatures) {
55231
+ } else if (arg.name.d.value === "closed" && AnalyzerNodeInfo.getFileInfo(errorNode).diagnosticRuleSet.enableExperimentalFeatures) {
55232
+ if (arg.valueExpression.d.constType === 33) {
55347
55233
  classType.shared.flags |= 8 | 16;
55348
55234
  }
55235
+ if (sawClosedOrExtraItems) {
55236
+ evaluator.addDiagnostic(diagnosticRules_1.DiagnosticRule.reportGeneralTypeIssues, localize_1.LocMessage.typedDictExtraItemsClosed(), arg.valueExpression || errorNode);
55237
+ }
55238
+ sawClosedOrExtraItems = true;
55349
55239
  }
55350
- } 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) {
55351
55241
  classType.shared.typedDictExtraItemsExpr = arg.valueExpression;
55352
55242
  classType.shared.flags |= 16;
55243
+ if (sawClosedOrExtraItems) {
55244
+ evaluator.addDiagnostic(diagnosticRules_1.DiagnosticRule.reportGeneralTypeIssues, localize_1.LocMessage.typedDictExtraItemsClosed(), arg.valueExpression || errorNode);
55245
+ }
55246
+ sawClosedOrExtraItems = true;
55353
55247
  } else {
55354
55248
  evaluator.addDiagnostic(diagnosticRules_1.DiagnosticRule.reportCallIssue, localize_1.LocMessage.typedDictExtraArgs(), arg.valueExpression || errorNode);
55355
55249
  }
55356
55250
  }
55357
- if (types_1.ClassType.isTypedDictMarkedClosed(classType) && classType.shared.typedDictExtraItemsExpr) {
55358
- const arg = argsToConsider.find((arg2) => {
55359
- var _a2;
55360
- return ((_a2 = arg2.name) == null ? void 0 : _a2.d.value) === "extra_items";
55361
- });
55362
- evaluator.addDiagnostic(diagnosticRules_1.DiagnosticRule.reportGeneralTypeIssues, localize_1.LocMessage.typedDictExtraItemsClosed(), (arg == null ? void 0 : arg.valueExpression) ?? errorNode);
55363
- }
55364
55251
  }
55365
55252
  synthesizeTypedDictClassMethods(evaluator, errorNode, classType);
55366
55253
  if (((_d = errorNode.parent) == null ? void 0 : _d.nodeType) === 3 && className) {
@@ -55666,6 +55553,23 @@ var require_typedDicts = __commonJS({
55666
55553
  true
55667
55554
  ));
55668
55555
  }
55556
+ if (types_1.ClassType.isTypedDictEffectivelyClosed(classType)) {
55557
+ if (!(0, types_1.isNever)(extraEntriesInfo.valueType)) {
55558
+ popOverloads.push(...createPopMethods(
55559
+ strType,
55560
+ extraEntriesInfo.valueType,
55561
+ /* isEntryRequired */
55562
+ false
55563
+ ));
55564
+ }
55565
+ } else {
55566
+ popOverloads.push(...createPopMethods(
55567
+ strType,
55568
+ evaluator.getObjectType(),
55569
+ /* isEntryRequired */
55570
+ false
55571
+ ));
55572
+ }
55669
55573
  symbolTable.set("get", symbol_1.Symbol.createWithType(4, types_1.OverloadedType.create(getOverloads)));
55670
55574
  if (popOverloads.length > 0) {
55671
55575
  symbolTable.set("pop", symbol_1.Symbol.createWithType(4, types_1.OverloadedType.create(popOverloads)));
@@ -56435,6 +56339,7 @@ var require_constructorTransform = __commonJS({
56435
56339
  return void 0;
56436
56340
  }
56437
56341
  function applyPartialTransformToFunction(evaluator, errorNode, argList, partialCallMemberType, origFunctionType) {
56342
+ var _a;
56438
56343
  const paramMap = /* @__PURE__ */ new Map();
56439
56344
  const paramListDetails = (0, parameterUtils_1.getParamListDetails)(origFunctionType);
56440
56345
  let argumentErrors = false;
@@ -56503,8 +56408,8 @@ var require_constructorTransform = __commonJS({
56503
56408
  }
56504
56409
  } else {
56505
56410
  const matchingParam = paramListDetails.params.find((paramInfo) => {
56506
- var _a;
56507
- 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;
56508
56413
  });
56509
56414
  if (!matchingParam) {
56510
56415
  if (paramListDetails.kwargsIndex === void 0) {
@@ -56616,7 +56521,7 @@ var require_constructorTransform = __commonJS({
56616
56521
  newParamList.forEach((param) => {
56617
56522
  types_1.FunctionType.addParam(newCallMemberType, param);
56618
56523
  });
56619
- 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;
56620
56525
  newCallMemberType.shared.declaration = partialCallMemberType.shared.declaration;
56621
56526
  newCallMemberType.shared.typeVarScopeId = specializedFunctionType.shared.typeVarScopeId;
56622
56527
  return { returnType: newCallMemberType, isTypeIncomplete: false, argumentErrors };
@@ -56772,7 +56677,7 @@ var require_constructors = __commonJS({
56772
56677
  }
56773
56678
  if (!newMethodReturnType || isDefaultNewMethod(newMethodTypeResult == null ? void 0 : newMethodTypeResult.type)) {
56774
56679
  newMethodReturnType = types_1.ClassType.cloneAsInstance(type);
56775
- } else if ((0, types_1.isAnyOrUnknown)(newMethodReturnType)) {
56680
+ } else if ((0, types_1.isUnknown)(newMethodReturnType) || newMethodTypeResult && (0, types_1.isAny)(newMethodTypeResult.type)) {
56776
56681
  newMethodReturnType = (0, typeUtils_1.applySolvedTypeVars)(types_1.ClassType.cloneAsInstance(type), new constraintSolution_1.ConstraintSolution(), {
56777
56682
  replaceUnsolved: {
56778
56683
  scopeIds: (0, typeUtils_1.getTypeVarScopeIds)(type),
@@ -57280,6 +57185,7 @@ var require_constructors = __commonJS({
57280
57185
  return skipInitCheck;
57281
57186
  }
57282
57187
  function isDefaultNewMethod(newMethod) {
57188
+ var _a;
57283
57189
  if (!newMethod || !(0, types_1.isFunction)(newMethod)) {
57284
57190
  return false;
57285
57191
  }
@@ -57290,7 +57196,7 @@ var require_constructors = __commonJS({
57290
57196
  if (params[0].category !== 1 || params[1].category !== 2) {
57291
57197
  return false;
57292
57198
  }
57293
- const returnType = newMethod.shared.declaredReturnType ?? newMethod.priv.inferredReturnType;
57199
+ const returnType = newMethod.shared.declaredReturnType ?? ((_a = newMethod.priv.inferredReturnType) == null ? void 0 : _a.type);
57294
57200
  if (!returnType || !(0, types_1.isTypeVar)(returnType) || !types_1.TypeVarType.isSelf(returnType)) {
57295
57201
  return false;
57296
57202
  }
@@ -60223,17 +60129,23 @@ var require_typeGuards = __commonJS({
60223
60129
  void 0,
60224
60130
  (referenceSubtype) => {
60225
60131
  return (0, typeUtils_1.mapSubtypes)(elementType, (elementSubtype) => {
60226
- var _a, _b;
60132
+ var _a, _b, _c;
60227
60133
  if ((0, types_1.isAnyOrUnknown)(elementSubtype)) {
60228
60134
  return referenceSubtype;
60229
60135
  }
60230
- 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)) {
60231
60140
  return (0, typeUtils_1.stripTypeForm)((0, typeUtils_1.addConditionToType)(elementSubtype, (_a = referenceSubtype.props) == null ? void 0 : _a.condition));
60232
60141
  }
60233
- 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)) {
60234
60143
  return (0, typeUtils_1.stripTypeForm)((0, typeUtils_1.addConditionToType)(referenceSubtype, (_b = elementSubtype.props) == null ? void 0 : _b.condition));
60235
60144
  }
60236
- 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;
60237
60149
  });
60238
60150
  }
60239
60151
  );
@@ -65745,19 +65657,31 @@ var require_protocols = __commonJS({
65745
65657
  });
65746
65658
  if (typesAreConsistent && destType.shared.typeParams.length > 0) {
65747
65659
  const genericProtocolType = types_1.ClassType.specialize(destType, void 0);
65748
- const specializedProtocolType = evaluator.solveAndApplyConstraints(genericProtocolType, protocolConstraints);
65749
- if (destType.priv.typeArgs) {
65750
- if (!evaluator.assignTypeArgs(destType, specializedProtocolType, diag, constraints, flags, recursionCount)) {
65751
- typesAreConsistent = false;
65752
- }
65753
- } else if (constraints) {
65754
- for (const typeParam of destType.shared.typeParams) {
65755
- const typeArgEntry = protocolConstraints.getMainConstraintSet().getTypeVar(typeParam);
65756
- if (typeArgEntry) {
65757
- 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
+ }
65758
65679
  }
65759
65680
  }
65760
- }
65681
+ if (constraintSets.length > 1 && destConstraints) {
65682
+ constraints == null ? void 0 : constraints.addConstraintSets(destConstraints.getConstraintSets());
65683
+ }
65684
+ });
65761
65685
  }
65762
65686
  return typesAreConsistent;
65763
65687
  }
@@ -67352,7 +67276,7 @@ var require_codeFlowEngine = __commonJS({
67352
67276
  false
67353
67277
  );
67354
67278
  if (returnType) {
67355
- if ((0, types_1.isClassInstance)(returnType) && types_1.ClassType.isBuiltIn(returnType, "Coroutine") && returnType.priv.typeArgs && returnType.priv.typeArgs.length >= 3) {
67279
+ if ((0, types_1.isClassInstance)(returnType) && types_1.ClassType.isBuiltIn(returnType, ["Coroutine", "CoroutineType"]) && returnType.priv.typeArgs && returnType.priv.typeArgs.length >= 3) {
67356
67280
  if ((0, types_1.isNever)(returnType.priv.typeArgs[2]) && isCallAwaited) {
67357
67281
  return true;
67358
67282
  }
@@ -67411,7 +67335,7 @@ var require_codeFlowEngine = __commonJS({
67411
67335
  if (exitType && (0, types_1.isFunction)(exitType) && exitType.shared.declaredReturnType) {
67412
67336
  let returnType = exitType.shared.declaredReturnType;
67413
67337
  if (isAsync) {
67414
- if ((0, types_1.isClassInstance)(returnType) && types_1.ClassType.isBuiltIn(returnType, "Coroutine") && returnType.priv.typeArgs && returnType.priv.typeArgs.length >= 3) {
67338
+ if ((0, types_1.isClassInstance)(returnType) && types_1.ClassType.isBuiltIn(returnType, ["Coroutine", "CoroutineType"]) && returnType.priv.typeArgs && returnType.priv.typeArgs.length >= 3) {
67415
67339
  returnType = returnType.priv.typeArgs[2];
67416
67340
  }
67417
67341
  }
@@ -69560,6 +69484,7 @@ var require_typePrinter = __commonJS({
69560
69484
  exports2.isLiteralValueTruncated = isLiteralValueTruncated;
69561
69485
  exports2.printLiteralValueTruncated = printLiteralValueTruncated;
69562
69486
  exports2.printLiteralValue = printLiteralValue;
69487
+ exports2.getPrintTypeFlags = getPrintTypeFlags;
69563
69488
  var collectionUtils_1 = require_collectionUtils();
69564
69489
  var debug_1 = require_debug();
69565
69490
  var parameterUtils_1 = require_parameterUtils();
@@ -70407,6 +70332,25 @@ var require_typePrinter = __commonJS({
70407
70332
  return false;
70408
70333
  }
70409
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
+ }
70410
70354
  }
70411
70355
  });
70412
70356
 
@@ -70465,6 +70409,7 @@ var require_typeEvaluator = __commonJS({
70465
70409
  var constraintTracker_1 = require_constraintTracker();
70466
70410
  var constructors_1 = require_constructors();
70467
70411
  var dataClasses_1 = require_dataClasses();
70412
+ var declaration_1 = require_declaration();
70468
70413
  var declarationUtils_1 = require_declarationUtils();
70469
70414
  var decorators_1 = require_decorators();
70470
70415
  var enums_1 = require_enums();
@@ -70489,6 +70434,7 @@ var require_typeEvaluator = __commonJS({
70489
70434
  var TypePrinter = __importStar(require_typePrinter());
70490
70435
  var types_1 = require_types();
70491
70436
  var typeUtils_1 = require_typeUtils();
70437
+ var core_1 = require_core();
70492
70438
  var nonSubscriptableBuiltinTypes = /* @__PURE__ */ new Map([
70493
70439
  ["asyncio.futures.Future", pythonVersion_1.pythonVersion3_9],
70494
70440
  ["asyncio.tasks.Task", pythonVersion_1.pythonVersion3_9],
@@ -70519,7 +70465,8 @@ var require_typeEvaluator = __commonJS({
70519
70465
  var maxEntriesToUseForInference = 64;
70520
70466
  var maxDeclarationsToUseForInference = 64;
70521
70467
  var maxEffectiveTypeEvaluationAttempts = 16;
70522
- var maxOverloadArgTypeExpansionCount = 64;
70468
+ var maxTotalOverloadArgTypeExpansionCount = 256;
70469
+ var maxSingleOverloadArgTypeExpansionCount = 64;
70523
70470
  var maxInferFunctionReturnRecursionCount = 12;
70524
70471
  var maxRecursiveTypeAliasRecursionCount = 10;
70525
70472
  var maxTypedDeclsPerSymbol = 16;
@@ -70546,11 +70493,21 @@ var require_typeEvaluator = __commonJS({
70546
70493
  const signatureTrackerStack = [];
70547
70494
  let prefetched;
70548
70495
  function runWithCancellationToken(token, callback) {
70496
+ const oldToken = cancellationToken;
70497
+ let result = void 0;
70549
70498
  try {
70550
70499
  cancellationToken = token;
70551
- return callback();
70500
+ result = callback();
70501
+ if (!(0, core_1.isThenable)(result)) {
70502
+ return result;
70503
+ }
70504
+ return result.finally(() => {
70505
+ cancellationToken = oldToken;
70506
+ });
70552
70507
  } finally {
70553
- cancellationToken = void 0;
70508
+ if (!(0, core_1.isThenable)(result)) {
70509
+ cancellationToken = oldToken;
70510
+ }
70554
70511
  }
70555
70512
  }
70556
70513
  function checkForCancellation() {
@@ -70886,7 +70843,7 @@ var require_typeEvaluator = __commonJS({
70886
70843
  0
70887
70844
  /* AssignTypeFlags.Default */
70888
70845
  )) {
70889
- typeResult.typeErrors = true;
70846
+ typeResult = { ...typeResult, typeErrors: true };
70890
70847
  typeResult.expectedTypeDiagAddendum = diag;
70891
70848
  diag.addTextRange(node);
70892
70849
  }
@@ -71680,7 +71637,7 @@ var require_typeEvaluator = __commonJS({
71680
71637
  usage,
71681
71638
  /* diag */
71682
71639
  void 0,
71683
- flags | 512,
71640
+ flags | 512 | 4096,
71684
71641
  objectType,
71685
71642
  recursionCount
71686
71643
  );
@@ -71697,7 +71654,7 @@ var require_typeEvaluator = __commonJS({
71697
71654
  }
71698
71655
  let subDiag;
71699
71656
  if (!skipObjectTypeLookup) {
71700
- let effectiveFlags = flags;
71657
+ let effectiveFlags = flags | 4096;
71701
71658
  if (objectTypeIsInstantiable) {
71702
71659
  effectiveFlags |= 16 | 512 | 1024;
71703
71660
  effectiveFlags &= ~32;
@@ -72801,6 +72758,9 @@ var require_typeEvaluator = __commonJS({
72801
72758
  sourceEntryTypes.splice(unboundedIndex, 0, typeToReplicate);
72802
72759
  }
72803
72760
  }
72761
+ if (sourceEntryTypes.length > targetTypes.length) {
72762
+ sourceEntryTypes.splice(unboundedIndex, 1);
72763
+ }
72804
72764
  }
72805
72765
  if (targetUnpackIndex >= 0) {
72806
72766
  if (sourceEntryTypes.length > targetTypes.length) {
@@ -73159,12 +73119,10 @@ var require_typeEvaluator = __commonJS({
73159
73119
  break;
73160
73120
  }
73161
73121
  case 56: {
73162
- if (target.d.expr.nodeType === 38) {
73163
- assignTypeToNameNode(target.d.expr, {
73164
- type: getBuiltInObject(target.d.expr, "list", [typeResult.type]),
73165
- isIncomplete: typeResult.isIncomplete
73166
- }, ignoreEmptyContainers, srcExpr);
73167
- }
73122
+ assignTypeToExpression(target.d.expr, {
73123
+ type: getBuiltInObject(target.d.expr, "list", [typeResult.type]),
73124
+ isIncomplete: typeResult.isIncomplete
73125
+ }, srcExpr, ignoreEmptyContainers, allowAssignmentToFinalVar, expectedTypeDiagAddendum);
73168
73126
  break;
73169
73127
  }
73170
73128
  case 0: {
@@ -76683,7 +76641,7 @@ var require_typeEvaluator = __commonJS({
76683
76641
  });
76684
76642
  }
76685
76643
  expandedArgTypes = expandArgTypes(contextFreeArgTypes, expandedArgTypes);
76686
- if (!expandedArgTypes || expandedArgTypes.length > maxOverloadArgTypeExpansionCount) {
76644
+ if (!expandedArgTypes || expandedArgTypes.length > maxTotalOverloadArgTypeExpansionCount) {
76687
76645
  break;
76688
76646
  }
76689
76647
  }
@@ -76736,11 +76694,11 @@ var require_typeEvaluator = __commonJS({
76736
76694
  (0, typeUtils_1.doForEachSubtype)(type, (subtype) => {
76737
76695
  if ((0, types_1.isClassInstance)(subtype)) {
76738
76696
  const expandedLiteralTypes = (0, typeGuards_1.enumerateLiteralsForType)(evaluatorInterface, subtype);
76739
- if (expandedLiteralTypes) {
76697
+ if (expandedLiteralTypes && expandedLiteralTypes.length <= maxSingleOverloadArgTypeExpansionCount) {
76740
76698
  (0, collectionUtils_1.appendArray)(expandedTypes, expandedLiteralTypes);
76741
76699
  return;
76742
76700
  }
76743
- const expandedTuples = (0, tuples_1.expandTuple)(subtype, maxOverloadArgTypeExpansionCount);
76701
+ const expandedTuples = (0, tuples_1.expandTuple)(subtype, maxSingleOverloadArgTypeExpansionCount);
76744
76702
  if (expandedTuples) {
76745
76703
  (0, collectionUtils_1.appendArray)(expandedTypes, expandedTuples);
76746
76704
  return;
@@ -77277,7 +77235,7 @@ var require_typeEvaluator = __commonJS({
77277
77235
  function matchArgsToParams(errorNode, argList, typeResult, overloadIndex) {
77278
77236
  var _a, _b;
77279
77237
  const overload = typeResult.type;
77280
- const paramDetails = (0, parameterUtils_1.getParamListDetails)(overload);
77238
+ const paramDetails = (0, parameterUtils_1.getParamListDetails)(overload, { disallowExtraKwargsForTd: true });
77281
77239
  const paramSpec = types_1.FunctionType.getParamSpecFromArgsKwargs(overload);
77282
77240
  let argIndex = 0;
77283
77241
  let matchedUnpackedListOfUnknownLength = false;
@@ -77388,7 +77346,7 @@ var require_typeEvaluator = __commonJS({
77388
77346
  }
77389
77347
  } else {
77390
77348
  let tooManyPositionals = false;
77391
- if (foundUnpackedListArg && argList[argIndex].argCategory === 1) {
77349
+ if (argList[argIndex].argCategory === 1) {
77392
77350
  const argType = getTypeOfArg(
77393
77351
  argList[argIndex],
77394
77352
  /* inferenceContext */
@@ -77396,8 +77354,6 @@ var require_typeEvaluator = __commonJS({
77396
77354
  ).type;
77397
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) {
77398
77356
  tooManyPositionals = true;
77399
- } else {
77400
- matchedUnpackedListOfUnknownLength = true;
77401
77357
  }
77402
77358
  } else {
77403
77359
  tooManyPositionals = true;
@@ -77469,6 +77425,9 @@ var require_typeEvaluator = __commonJS({
77469
77425
  /* emitNotIterableError */
77470
77426
  false
77471
77427
  )) == null ? void 0 : _a.type;
77428
+ if (paramInfo.param.category === 1) {
77429
+ matchedUnpackedListOfUnknownLength = true;
77430
+ }
77472
77431
  }
77473
77432
  const funcArg = listElementType ? {
77474
77433
  argCategory: 0,
@@ -77657,8 +77616,8 @@ var require_typeEvaluator = __commonJS({
77657
77616
  const kwargsParam = paramDetails.params[paramDetails.kwargsIndex];
77658
77617
  validateArgTypeParams.push({
77659
77618
  paramCategory: 2,
77660
- paramType: kwargsParam.declaredType,
77661
- requiresTypeVarMatching: (0, typeUtils_1.requiresSpecialization)(kwargsParam.declaredType),
77619
+ paramType: kwargsParam.type,
77620
+ requiresTypeVarMatching: (0, typeUtils_1.requiresSpecialization)(kwargsParam.type),
77662
77621
  argument: {
77663
77622
  argCategory: 2,
77664
77623
  typeResult: { type: extraItemsType }
@@ -77882,23 +77841,20 @@ var require_typeEvaluator = __commonJS({
77882
77841
  const param = paramInfo.param;
77883
77842
  if (param.category === 0 && param.name) {
77884
77843
  const entry = paramMap.get(param.name);
77885
- if (entry && entry.argsNeeded === 0 && entry.argsReceived === 0) {
77886
- const defaultArgType = paramInfo.defaultType;
77887
- if (defaultArgType && !(0, typeUtils_1.isEllipsisType)(defaultArgType) && (0, typeUtils_1.requiresSpecialization)(paramInfo.declaredType)) {
77888
- validateArgTypeParams.push({
77889
- paramCategory: param.category,
77890
- paramType: paramInfo.type,
77891
- requiresTypeVarMatching: true,
77892
- argument: {
77893
- argCategory: 0,
77894
- typeResult: { type: defaultArgType }
77895
- },
77896
- isDefaultArg: true,
77897
- errorNode,
77898
- paramName: param.name,
77899
- isParamNameSynthesized: types_1.FunctionParam.isNameSynthesized(param)
77900
- });
77901
- }
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
+ });
77902
77858
  }
77903
77859
  }
77904
77860
  });
@@ -77965,7 +77921,7 @@ var require_typeEvaluator = __commonJS({
77965
77921
  }
77966
77922
  let relevance = 0;
77967
77923
  if (matchedUnpackedListOfUnknownLength) {
77968
- relevance--;
77924
+ relevance++;
77969
77925
  }
77970
77926
  if (types_1.FunctionType.isBuiltIn(overload, ["isinstance", "issubclass"]) && validateArgTypeParams.length === 2) {
77971
77927
  validateArgTypeParams[1].isinstanceParam = true;
@@ -78901,6 +78857,12 @@ var require_typeEvaluator = __commonJS({
78901
78857
  addDiagnostic(diagnosticRules_1.DiagnosticRule.reportGeneralTypeIssues, localize_1.LocMessage.typeAliasTypeMustBeAssigned(), errorNode);
78902
78858
  return void 0;
78903
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
+ }
78904
78866
  const nameNode = errorNode.parent.d.leftExpr;
78905
78867
  const firstArg = argList[0];
78906
78868
  if (firstArg.valueExpression && firstArg.valueExpression.nodeType === 48) {
@@ -79951,7 +79913,7 @@ var require_typeEvaluator = __commonJS({
79951
79913
  if (generatorTypeArgs) {
79952
79914
  return generatorTypeArgs.length >= 2 ? generatorTypeArgs[2] : types_1.UnknownType.create();
79953
79915
  }
79954
- if ((0, types_1.isClassInstance)(yieldFromSubtype) && types_1.ClassType.isBuiltIn(yieldFromSubtype, "Coroutine")) {
79916
+ if ((0, types_1.isClassInstance)(yieldFromSubtype) && types_1.ClassType.isBuiltIn(yieldFromSubtype, ["Coroutine", "CoroutineType"])) {
79955
79917
  return types_1.UnknownType.create();
79956
79918
  }
79957
79919
  const iterableType = ((_a = getTypeOfIterable(
@@ -80102,7 +80064,9 @@ var require_typeEvaluator = __commonJS({
80102
80064
  void 0,
80103
80065
  (0, typeUtils_1.makeInferenceContext)(expectedReturnType)
80104
80066
  );
80105
- functionType.priv.inferredReturnType = returnTypeResult.type;
80067
+ functionType.priv.inferredReturnType = {
80068
+ type: returnTypeResult.type
80069
+ };
80106
80070
  if (returnTypeResult.isIncomplete) {
80107
80071
  isIncomplete = true;
80108
80072
  }
@@ -81759,6 +81723,7 @@ var require_typeEvaluator = __commonJS({
81759
81723
  if (fileInfo.isStubFile) {
81760
81724
  exprFlags |= 4;
81761
81725
  }
81726
+ let sawClosedOrExtraItems = false;
81762
81727
  node.d.arguments.forEach((arg) => {
81763
81728
  var _a, _b, _c;
81764
81729
  if (arg.d.argCategory === 2) {
@@ -81891,22 +81856,28 @@ var require_typeEvaluator = __commonJS({
81891
81856
  addDiagnostic(diagnosticRules_1.DiagnosticRule.reportGeneralTypeIssues, localize_1.LocMessage.typedDictBoolParam().format({ name: arg.d.name.d.value }), arg.d.valueExpr);
81892
81857
  } else if (arg.d.name.d.value === "total" && !constArgValue) {
81893
81858
  classType.shared.flags |= 32;
81894
- } else if (arg.d.name.d.value === "closed" && constArgValue) {
81895
- if (AnalyzerNodeInfo.getFileInfo(node).diagnosticRuleSet.enableExperimentalFeatures) {
81859
+ } else if (arg.d.name.d.value === "closed" && AnalyzerNodeInfo.getFileInfo(node).diagnosticRuleSet.enableExperimentalFeatures) {
81860
+ if (constArgValue) {
81896
81861
  classType.shared.flags |= 8 | 16;
81897
81862
  if (classType.shared.typedDictExtraItemsExpr) {
81898
81863
  addDiagnostic(diagnosticRules_1.DiagnosticRule.reportGeneralTypeIssues, localize_1.LocMessage.typedDictExtraItemsClosed(), classType.shared.typedDictExtraItemsExpr);
81899
81864
  }
81900
81865
  }
81901
- }
81902
- } else if (arg.d.name.d.value === "extra_items") {
81903
- if (AnalyzerNodeInfo.getFileInfo(node).diagnosticRuleSet.enableExperimentalFeatures) {
81904
- classType.shared.typedDictExtraItemsExpr = arg.d.valueExpr;
81905
- classType.shared.flags |= 16;
81906
- if (types_1.ClassType.isTypedDictMarkedClosed(classType)) {
81907
- addDiagnostic(diagnosticRules_1.DiagnosticRule.reportGeneralTypeIssues, localize_1.LocMessage.typedDictExtraItemsClosed(), classType.shared.typedDictExtraItemsExpr);
81866
+ if (sawClosedOrExtraItems) {
81867
+ addDiagnostic(diagnosticRules_1.DiagnosticRule.reportGeneralTypeIssues, localize_1.LocMessage.typedDictExtraItemsClosed(), arg.d.valueExpr);
81908
81868
  }
81869
+ sawClosedOrExtraItems = true;
81909
81870
  }
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);
81876
+ }
81877
+ if (sawClosedOrExtraItems) {
81878
+ addDiagnostic(diagnosticRules_1.DiagnosticRule.reportGeneralTypeIssues, localize_1.LocMessage.typedDictExtraItemsClosed(), arg.d.valueExpr);
81879
+ }
81880
+ sawClosedOrExtraItems = true;
81910
81881
  } else {
81911
81882
  addDiagnostic(diagnosticRules_1.DiagnosticRule.reportGeneralTypeIssues, localize_1.LocMessage.typedDictInitsubclassParameter().format({ name: arg.d.name.d.value }), arg);
81912
81883
  }
@@ -82990,7 +82961,9 @@ var require_typeEvaluator = __commonJS({
82990
82961
  if (functionType.shared.declaredReturnType) {
82991
82962
  awaitableFunctionType.shared.declaredReturnType = createAwaitableReturnType(node, functionType.shared.declaredReturnType, types_1.FunctionType.isGenerator(functionType));
82992
82963
  } else {
82993
- 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
+ };
82994
82967
  }
82995
82968
  return awaitableFunctionType;
82996
82969
  }
@@ -83017,7 +82990,7 @@ var require_typeEvaluator = __commonJS({
83017
82990
  }
83018
82991
  }
83019
82992
  if (!awaitableReturnType || !isGenerator) {
83020
- const awaitableType = getTypingType(node, useCoroutine ? "Coroutine" : "Awaitable");
82993
+ const awaitableType = useCoroutine ? getTypesType(node, "CoroutineType") : getTypingType(node, "Awaitable");
83021
82994
  if (awaitableType && (0, types_1.isInstantiableClass)(awaitableType)) {
83022
82995
  awaitableReturnType = types_1.ClassType.cloneAsInstance(types_1.ClassType.specialize(awaitableType, useCoroutine ? [types_1.AnyType.create(), types_1.AnyType.create(), returnType] : [returnType]));
83023
82996
  } else {
@@ -83122,7 +83095,7 @@ var require_typeEvaluator = __commonJS({
83122
83095
  if (yieldNode.nodeType === 61) {
83123
83096
  isYieldResultUsed = true;
83124
83097
  const iteratorTypeResult = getTypeOfExpression(yieldNode.d.expr);
83125
- if ((0, types_1.isClassInstance)(iteratorTypeResult.type) && types_1.ClassType.isBuiltIn(iteratorTypeResult.type, "Coroutine")) {
83098
+ if ((0, types_1.isClassInstance)(iteratorTypeResult.type) && types_1.ClassType.isBuiltIn(iteratorTypeResult.type, ["Coroutine", "CoroutineType"])) {
83126
83099
  const yieldType = iteratorTypeResult.type.priv.typeArgs && iteratorTypeResult.type.priv.typeArgs.length > 0 ? iteratorTypeResult.type.priv.typeArgs[0] : types_1.UnknownType.create();
83127
83100
  inferredYieldTypes.push(yieldType);
83128
83101
  useAwaitableGenerator = true;
@@ -85662,6 +85635,13 @@ var require_typeEvaluator = __commonJS({
85662
85635
  }
85663
85636
  declsToConsider.push(resolvedDecl);
85664
85637
  });
85638
+ if (declsToConsider.every((decl) => (0, declaration_1.isVariableDeclaration)(decl) && ParseTreeUtils.isNodeContainedWithinNodeType(
85639
+ decl.node,
85640
+ 5
85641
+ /* ParseNodeType.AugmentedAssignment */
85642
+ ))) {
85643
+ declsToConsider.splice(0);
85644
+ }
85665
85645
  const result = getTypeOfSymbolForDecls(symbol, declsToConsider, effectiveTypeCacheKey);
85666
85646
  result.includesVariableDecl = includesVariableDecl;
85667
85647
  result.includesIllegalTypeAliasDecl = includesIllegalTypeAliasDecl;
@@ -85847,8 +85827,8 @@ var require_typeEvaluator = __commonJS({
85847
85827
  if (types_1.FunctionType.isOverloaded(type) && !types_1.FunctionType.isSynthesizedMethod(type)) {
85848
85828
  return types_1.UnknownType.create();
85849
85829
  }
85850
- if (type.priv.inferredReturnType) {
85851
- returnType = type.priv.inferredReturnType;
85830
+ if (type.priv.inferredReturnType && !type.priv.inferredReturnType.isIncomplete) {
85831
+ returnType = type.priv.inferredReturnType.type;
85852
85832
  } else {
85853
85833
  if (types_1.FunctionType.isInstanceMethod(type) && type.shared.name === "__init__") {
85854
85834
  returnType = getNoneType();
@@ -85881,9 +85861,7 @@ var require_typeEvaluator = __commonJS({
85881
85861
  typeVarScopes.push(type.shared.methodClass.shared.typeVarScopeId);
85882
85862
  }
85883
85863
  returnType = (0, typeUtils_1.makeTypeVarsFree)(returnType, typeVarScopes);
85884
- if (!isIncomplete) {
85885
- type.priv.inferredReturnType = returnType;
85886
- }
85864
+ type.priv.inferredReturnType = { type: returnType, isIncomplete };
85887
85865
  }
85888
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) {
85889
85867
  let hasDecorators = false;
@@ -86088,13 +86066,6 @@ var require_typeEvaluator = __commonJS({
86088
86066
  if (!(0, typedDicts_1.assignTypedDictToTypedDict)(evaluatorInterface, destType, srcType, diag, constraints, flags, recursionCount)) {
86089
86067
  return false;
86090
86068
  }
86091
- if (types_1.ClassType.isFinal(destType) !== types_1.ClassType.isFinal(srcType)) {
86092
- diag == null ? void 0 : diag.addMessage(localize_1.LocAddendum.typedDictFinalMismatch().format({
86093
- sourceType: printType((0, typeUtils_1.convertToInstance)(srcType)),
86094
- destType: printType((0, typeUtils_1.convertToInstance)(destType))
86095
- }));
86096
- return false;
86097
- }
86098
86069
  if ((flags & 1) !== 0) {
86099
86070
  return (0, typedDicts_1.assignTypedDictToTypedDict)(
86100
86071
  evaluatorInterface,
@@ -86713,6 +86684,18 @@ var require_typeEvaluator = __commonJS({
86713
86684
  }
86714
86685
  }
86715
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
+ }
86716
86699
  if ((0, types_1.isClass)(concreteSrcType) && types_1.TypeBase.isInstance(concreteSrcType)) {
86717
86700
  if (!destType.priv.isUnpacked && concreteSrcType.priv.isUnpacked && concreteSrcType.priv.tupleTypeArgs) {
86718
86701
  return assignType(destType, (0, typeUtils_1.combineTupleTypeArgs)(concreteSrcType.priv.tupleTypeArgs), diag, constraints, flags, recursionCount);
@@ -86839,7 +86822,7 @@ var require_typeEvaluator = __commonJS({
86839
86822
  const typeVarSignatures = [];
86840
86823
  overloads.forEach((overload) => {
86841
86824
  const overloadScopeId = (0, typeUtils_1.getTypeVarScopeId)(overload) ?? "";
86842
- const constraintsClone = constraints == null ? void 0 : constraints.cloneWithSignature(overloadScopeId);
86825
+ const constraintsClone = constraints == null ? void 0 : constraints.cloneWithSignature([overloadScopeId]);
86843
86826
  if (assignType(
86844
86827
  destType,
86845
86828
  overload,
@@ -86989,6 +86972,9 @@ var require_typeEvaluator = __commonJS({
86989
86972
  if ((0, types_1.isTypeSame)(srcType, destType, {}, recursionCount)) {
86990
86973
  return true;
86991
86974
  }
86975
+ if ((flags & 16) !== 0 && srcType.priv.subtypes.some((subtype) => (0, types_1.isAnyOrUnknown)(subtype))) {
86976
+ return false;
86977
+ }
86992
86978
  let sortedSrcTypes = (0, typeUtils_1.sortTypes)(srcType.priv.subtypes);
86993
86979
  let matchedSomeSubtypes = false;
86994
86980
  if ((0, types_1.isUnion)(destType)) {
@@ -87239,6 +87225,109 @@ var require_typeEvaluator = __commonJS({
87239
87225
  recursionCount
87240
87226
  );
87241
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
+ }
87242
87331
  function assignToUnionType(destType, srcType, diag, constraints, flags, recursionCount) {
87243
87332
  if (flags & 1) {
87244
87333
  let isIncompatible = false;
@@ -87414,17 +87503,23 @@ var require_typeEvaluator = __commonJS({
87414
87503
  for (const mroClass of objType.shared.mro) {
87415
87504
  if ((0, types_1.isClass)(mroClass) && types_1.ClassType.isProtocolClass(mroClass)) {
87416
87505
  for (const field of types_1.ClassType.getSymbolTable(mroClass)) {
87417
- if (field[0] !== "__call__" && !field[1].isIgnoredForProtocolMatch()) {
87418
- let fieldIsPartOfFunction = false;
87419
- if ((prefetched == null ? void 0 : prefetched.functionClass) && (0, types_1.isClass)(prefetched.functionClass)) {
87420
- if (types_1.ClassType.getSymbolTable(prefetched.functionClass).has(field[0])) {
87421
- fieldIsPartOfFunction = true;
87422
- }
87423
- }
87424
- if (!fieldIsPartOfFunction) {
87425
- 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;
87426
87518
  }
87427
87519
  }
87520
+ if (!fieldIsPartOfFunction) {
87521
+ return void 0;
87522
+ }
87428
87523
  }
87429
87524
  }
87430
87525
  }
@@ -87594,6 +87689,7 @@ var require_typeEvaluator = __commonJS({
87594
87689
  const destPositionalCount = destParamDetails.firstKeywordOnlyIndex ?? destParamDetails.params.length;
87595
87690
  const srcPositionalCount = srcParamDetails.firstKeywordOnlyIndex ?? srcParamDetails.params.length;
87596
87691
  const positionalsToMatch = Math.min(destPositionalCount, srcPositionalCount);
87692
+ const skippedPosParamIndices = [];
87597
87693
  for (let paramIndex = 0; paramIndex < positionalsToMatch; paramIndex++) {
87598
87694
  if (paramIndex === 0 && destType.shared.methodClass && (flags & 32768) !== 0) {
87599
87695
  if (types_1.FunctionType.isInstanceMethod(destType) || types_1.FunctionType.isClassMethod(destType)) {
@@ -87601,6 +87697,9 @@ var require_typeEvaluator = __commonJS({
87601
87697
  }
87602
87698
  }
87603
87699
  if (paramIndex === destParamDetails.argsIndex) {
87700
+ if (!(0, types_1.isUnpackedTypeVarTuple)(destParamDetails.params[destParamDetails.argsIndex].type)) {
87701
+ skippedPosParamIndices.push(paramIndex);
87702
+ }
87604
87703
  continue;
87605
87704
  }
87606
87705
  const destParam = destParamDetails.params[paramIndex];
@@ -87664,6 +87763,9 @@ var require_typeEvaluator = __commonJS({
87664
87763
  }
87665
87764
  if (destPositionalCount < srcPositionalCount && !targetIncludesParamSpec) {
87666
87765
  for (let i = destPositionalCount; i < srcPositionalCount; i++) {
87766
+ skippedPosParamIndices.push(i);
87767
+ }
87768
+ for (const i of skippedPosParamIndices) {
87667
87769
  if (destParamDetails.argsIndex !== void 0) {
87668
87770
  const destArgsType = destParamDetails.params[destParamDetails.argsIndex].type;
87669
87771
  const srcParamType = srcParamDetails.params[i].type;
@@ -87789,63 +87891,71 @@ var require_typeEvaluator = __commonJS({
87789
87891
  }
87790
87892
  if (srcStartOfNamed >= 0) {
87791
87893
  srcParamDetails.params.forEach((srcParamInfo, index) => {
87792
- if (index >= srcStartOfNamed) {
87793
- if (srcParamInfo.param.name && srcParamInfo.param.category === 0 && srcParamInfo.kind !== parameterUtils_1.ParamKind.Positional) {
87794
- const destParamInfo = destParamMap.get(srcParamInfo.param.name);
87795
- const paramDiag = diag == null ? void 0 : diag.createAddendum();
87796
- const srcParamType = srcParamInfo.type;
87797
- if (!destParamInfo) {
87798
- if (destParamDetails.kwargsIndex === void 0 && !srcParamInfo.defaultType) {
87799
- if (paramDiag) {
87800
- paramDiag.addMessage(localize_1.LocAddendum.namedParamMissingInDest().format({
87801
- name: srcParamInfo.param.name
87802
- }));
87803
- }
87804
- canAssign = false;
87805
- } else if (destParamDetails.kwargsIndex !== void 0) {
87806
- if (!assignParam(destParamDetails.params[destParamDetails.kwargsIndex].type, srcParamType, destParamDetails.params[destParamDetails.kwargsIndex].index, diag == null ? void 0 : diag.createAddendum(), constraints, flags, recursionCount)) {
87807
- canAssign = false;
87808
- }
87809
- } else if (srcParamInfo.defaultType) {
87810
- const defaultArgType = srcParamInfo.defaultType ?? srcParamInfo.defaultType;
87811
- if (defaultArgType && !assignType(srcParamInfo.type, defaultArgType, diag == null ? void 0 : diag.createAddendum(), constraints, flags, recursionCount)) {
87812
- if ((flags & 32) === 0) {
87813
- canAssign = false;
87814
- }
87815
- }
87816
- }
87817
- } else {
87818
- const destParamType = destParamInfo.type;
87819
- const specializedDestParamType = constraints ? solveAndApplyConstraints(destParamType, constraints) : destParamType;
87820
- if (!assignParam(
87821
- destParamInfo.type,
87822
- srcParamType,
87823
- /* paramIndex */
87824
- void 0,
87825
- paramDiag == null ? void 0 : paramDiag.createAddendum(),
87826
- constraints,
87827
- flags,
87828
- recursionCount
87829
- )) {
87830
- if (paramDiag) {
87831
- paramDiag.addMessage(localize_1.LocAddendum.namedParamTypeMismatch().format({
87832
- name: srcParamInfo.param.name,
87833
- sourceType: printType(specializedDestParamType),
87834
- destType: printType(srcParamType)
87835
- }));
87836
- }
87837
- canAssign = false;
87838
- }
87839
- if (destParamInfo.defaultType && !srcParamInfo.defaultType) {
87840
- diag == null ? void 0 : diag.createAddendum().addMessage(localize_1.LocAddendum.functionParamDefaultMissing().format({
87841
- name: srcParamInfo.param.name
87842
- }));
87894
+ if (index < srcStartOfNamed) {
87895
+ return;
87896
+ }
87897
+ if (!srcParamInfo.param.name || srcParamInfo.param.category !== 0 || srcParamInfo.kind === parameterUtils_1.ParamKind.Positional) {
87898
+ return;
87899
+ }
87900
+ const destParamInfo = destParamMap.get(srcParamInfo.param.name);
87901
+ const paramDiag = diag == null ? void 0 : diag.createAddendum();
87902
+ const srcParamType = srcParamInfo.type;
87903
+ if (!destParamInfo) {
87904
+ if (destParamDetails.kwargsIndex === void 0 && !srcParamInfo.defaultType) {
87905
+ if (paramDiag) {
87906
+ paramDiag.addMessage(localize_1.LocAddendum.namedParamMissingInDest().format({
87907
+ name: srcParamInfo.param.name
87908
+ }));
87909
+ }
87910
+ canAssign = false;
87911
+ } else if (destParamDetails.kwargsIndex !== void 0) {
87912
+ if (!assignParam(destParamDetails.params[destParamDetails.kwargsIndex].type, srcParamType, destParamDetails.params[destParamDetails.kwargsIndex].index, diag == null ? void 0 : diag.createAddendum(), constraints, flags, recursionCount)) {
87913
+ canAssign = false;
87914
+ }
87915
+ } else if (srcParamInfo.defaultType) {
87916
+ const defaultArgType = srcParamInfo.defaultType ?? srcParamInfo.defaultType;
87917
+ if (defaultArgType && !assignType(srcParamInfo.type, defaultArgType, diag == null ? void 0 : diag.createAddendum(), constraints, flags, recursionCount)) {
87918
+ if ((flags & 32) === 0) {
87843
87919
  canAssign = false;
87844
87920
  }
87845
- destParamMap.delete(srcParamInfo.param.name);
87846
87921
  }
87847
87922
  }
87923
+ return;
87924
+ }
87925
+ if (srcParamInfo.defaultType && destParamInfo.defaultType) {
87926
+ if ((flags & 32) !== 0) {
87927
+ destParamMap.delete(srcParamInfo.param.name);
87928
+ return;
87929
+ }
87930
+ }
87931
+ const destParamType = destParamInfo.type;
87932
+ const specializedDestParamType = constraints ? solveAndApplyConstraints(destParamType, constraints) : destParamType;
87933
+ if (!assignParam(
87934
+ destParamInfo.type,
87935
+ srcParamType,
87936
+ /* paramIndex */
87937
+ void 0,
87938
+ paramDiag == null ? void 0 : paramDiag.createAddendum(),
87939
+ constraints,
87940
+ flags,
87941
+ recursionCount
87942
+ )) {
87943
+ if (paramDiag) {
87944
+ paramDiag.addMessage(localize_1.LocAddendum.namedParamTypeMismatch().format({
87945
+ name: srcParamInfo.param.name,
87946
+ sourceType: printType(specializedDestParamType),
87947
+ destType: printType(srcParamType)
87948
+ }));
87949
+ }
87950
+ canAssign = false;
87848
87951
  }
87952
+ if (destParamInfo.defaultType && !srcParamInfo.defaultType) {
87953
+ diag == null ? void 0 : diag.createAddendum().addMessage(localize_1.LocAddendum.functionParamDefaultMissing().format({
87954
+ name: srcParamInfo.param.name
87955
+ }));
87956
+ canAssign = false;
87957
+ }
87958
+ destParamMap.delete(srcParamInfo.param.name);
87849
87959
  });
87850
87960
  }
87851
87961
  destParamMap.forEach((destParamInfo, paramName) => {
@@ -88603,25 +88713,35 @@ var require_typeEvaluator = __commonJS({
88603
88713
  }
88604
88714
  function partiallySpecializeBoundMethod(baseType, memberType, diag, recursionCount, firstParamType, stripFirstParam = true) {
88605
88715
  const constraints = new constraintTracker_1.ConstraintTracker();
88606
- if (firstParamType && memberType.shared.parameters.length > 0) {
88607
- const memberTypeFirstParam = memberType.shared.parameters[0];
88608
- const memberTypeFirstParamType = types_1.FunctionType.getParamType(memberType, 0);
88609
- if ((0, types_1.isTypeVar)(memberTypeFirstParamType) && memberTypeFirstParamType.shared.boundType && (0, types_1.isClassInstance)(memberTypeFirstParamType.shared.boundType) && types_1.ClassType.isProtocolClass(memberTypeFirstParamType.shared.boundType)) {
88610
- constraints.setBounds(memberTypeFirstParamType, types_1.TypeBase.isInstantiable(memberTypeFirstParamType) ? (0, typeUtils_1.convertToInstance)(firstParamType) : firstParamType);
88611
- } else {
88612
- const subDiag = diag == null ? void 0 : diag.createAddendum();
88613
- if (!assignType(memberTypeFirstParamType, firstParamType, subDiag == null ? void 0 : subDiag.createAddendum(), constraints, 8192, recursionCount)) {
88614
- if (memberTypeFirstParam.name && !types_1.FunctionParam.isNameSynthesized(memberTypeFirstParam) && types_1.FunctionParam.isTypeDeclared(memberTypeFirstParam)) {
88615
- if (subDiag) {
88616
- subDiag.addMessage(localize_1.LocMessage.bindTypeMismatch().format({
88617
- type: printType(firstParamType),
88618
- methodName: memberType.shared.name || "<anonymous>",
88619
- paramName: memberTypeFirstParam.name
88620
- }));
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;
88621
88734
  }
88622
- return void 0;
88623
88735
  }
88624
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;
88625
88745
  }
88626
88746
  }
88627
88747
  getEffectiveReturnType(memberType);
@@ -88925,6 +89045,7 @@ var require_typeEvaluator = __commonJS({
88925
89045
  getCallSignatureInfo,
88926
89046
  getAbstractSymbols,
88927
89047
  narrowConstrainedTypeVar,
89048
+ isTypeComparable,
88928
89049
  assignType,
88929
89050
  validateOverrideMethod,
88930
89051
  validateCallArgs,
@@ -89390,7 +89511,7 @@ var require_checker = __commonJS({
89390
89511
  this._evaluator.addDiagnostic(diagnosticRules_1.DiagnosticRule.reportUnusedCallResult, localize_1.LocMessage.unusedCallResult().format({
89391
89512
  type: this._evaluator.printType(returnType)
89392
89513
  }), node);
89393
- if ((0, types_1.isClassInstance)(returnType) && types_1.ClassType.isBuiltIn(returnType, "Coroutine")) {
89514
+ if ((0, types_1.isClassInstance)(returnType) && types_1.ClassType.isBuiltIn(returnType, ["Coroutine", "CoroutineType"])) {
89394
89515
  this._evaluator.addDiagnostic(diagnosticRules_1.DiagnosticRule.reportUnusedCoroutine, localize_1.LocMessage.unusedCoroutine(), node);
89395
89516
  }
89396
89517
  }
@@ -89548,7 +89669,7 @@ var require_checker = __commonJS({
89548
89669
  const yieldFromType = this._evaluator.getType(node.d.expr) || types_1.UnknownType.create();
89549
89670
  let yieldType;
89550
89671
  let sendType;
89551
- if ((0, types_1.isClassInstance)(yieldFromType) && types_1.ClassType.isBuiltIn(yieldFromType, "Coroutine")) {
89672
+ if ((0, types_1.isClassInstance)(yieldFromType) && types_1.ClassType.isBuiltIn(yieldFromType, ["Coroutine", "CoroutineType"])) {
89552
89673
  yieldType = types_1.UnknownType.create();
89553
89674
  } else {
89554
89675
  yieldType = ((_a = this._evaluator.getTypeOfIterable(
@@ -89802,6 +89923,7 @@ var require_checker = __commonJS({
89802
89923
  node.d.targets.forEach((name) => {
89803
89924
  this._evaluator.getType(name);
89804
89925
  this.walk(name);
89926
+ this._validateNonlocalTypeParam(name);
89805
89927
  });
89806
89928
  });
89807
89929
  return false;
@@ -90067,7 +90189,7 @@ var require_checker = __commonJS({
90067
90189
  if (!(0, types_1.isFunction)(subtype) && !(0, types_1.isOverloaded)(subtype)) {
90068
90190
  isExprFunction = false;
90069
90191
  }
90070
- if (!(0, types_1.isClassInstance)(subtype) || !types_1.ClassType.isBuiltIn(subtype, "Coroutine")) {
90192
+ if (!(0, types_1.isClassInstance)(subtype) || !types_1.ClassType.isBuiltIn(subtype, ["Coroutine", "CoroutineType"])) {
90071
90193
  isCoroutine = false;
90072
90194
  }
90073
90195
  });
@@ -90109,6 +90231,20 @@ var require_checker = __commonJS({
90109
90231
  this._evaluator.addDiagnostic(diagnosticRules_1.DiagnosticRule.reportUnusedExpression, localize_1.LocMessage.unusedExpression(), node);
90110
90232
  }
90111
90233
  }
90234
+ // Verifies that the target of a nonlocal statement is not a PEP 695-style
90235
+ // TypeParameter. This situation results in a runtime exception.
90236
+ _validateNonlocalTypeParam(node) {
90237
+ const symbolWithScope = this._evaluator.lookUpSymbolRecursive(
90238
+ node,
90239
+ node.d.value,
90240
+ /* honorCodeFlow */
90241
+ false
90242
+ );
90243
+ if (!symbolWithScope || symbolWithScope.scope.type !== 0) {
90244
+ return;
90245
+ }
90246
+ this._evaluator.addDiagnostic(diagnosticRules_1.DiagnosticRule.reportGeneralTypeIssues, localize_1.LocMessage.nonlocalTypeParam().format({ name: node.d.value }), node);
90247
+ }
90112
90248
  _validateExhaustiveMatch(node) {
90113
90249
  if (this._fileInfo.diagnosticRuleSet.reportMatchNotExhaustive === "none") {
90114
90250
  return;
@@ -90225,7 +90361,7 @@ var require_checker = __commonJS({
90225
90361
  if (isComparable) {
90226
90362
  return;
90227
90363
  }
90228
- if (this._isTypeComparable(leftSubtype, rightSubtype)) {
90364
+ if (this._evaluator.isTypeComparable(leftSubtype, rightSubtype)) {
90229
90365
  isComparable = true;
90230
90366
  }
90231
90367
  return rightSubtype;
@@ -90242,88 +90378,6 @@ var require_checker = __commonJS({
90242
90378
  }
90243
90379
  }
90244
90380
  }
90245
- // Determines whether the two types are potentially comparable -- i.e.
90246
- // their types overlap in such a way that it makes sense for them to
90247
- // be compared with an == or != operator.
90248
- _isTypeComparable(leftType, rightType) {
90249
- if ((0, types_1.isAnyOrUnknown)(leftType) || (0, types_1.isAnyOrUnknown)(rightType)) {
90250
- return true;
90251
- }
90252
- if ((0, types_1.isNever)(leftType) || (0, types_1.isNever)(rightType)) {
90253
- return false;
90254
- }
90255
- if ((0, types_1.isModule)(leftType) || (0, types_1.isModule)(rightType)) {
90256
- return (0, types_1.isTypeSame)(leftType, rightType, { ignoreConditions: true });
90257
- }
90258
- const isLeftCallable = (0, types_1.isFunction)(leftType) || (0, types_1.isOverloaded)(leftType);
90259
- const isRightCallable = (0, types_1.isFunction)(rightType) || (0, types_1.isOverloaded)(rightType);
90260
- if (isLeftCallable !== isRightCallable) {
90261
- return false;
90262
- }
90263
- if ((0, types_1.isInstantiableClass)(leftType) || (0, types_1.isClassInstance)(leftType) && types_1.ClassType.isBuiltIn(leftType, "type")) {
90264
- if ((0, types_1.isInstantiableClass)(rightType) || (0, types_1.isClassInstance)(rightType) && types_1.ClassType.isBuiltIn(rightType, "type")) {
90265
- const genericLeftType = types_1.ClassType.specialize(
90266
- leftType,
90267
- /* typeArgs */
90268
- void 0
90269
- );
90270
- const genericRightType = types_1.ClassType.specialize(
90271
- rightType,
90272
- /* typeArgs */
90273
- void 0
90274
- );
90275
- if (this._evaluator.assignType(genericLeftType, genericRightType) || this._evaluator.assignType(genericRightType, genericLeftType)) {
90276
- return true;
90277
- }
90278
- }
90279
- const metaclass = leftType.shared.effectiveMetaclass;
90280
- if (metaclass && (0, types_1.isClass)(metaclass)) {
90281
- if ((0, typeUtils_1.lookUpClassMember)(
90282
- metaclass,
90283
- "__eq__",
90284
- 4
90285
- /* MemberAccessFlags.SkipObjectBaseClass */
90286
- )) {
90287
- return true;
90288
- }
90289
- }
90290
- return false;
90291
- }
90292
- if ((0, types_1.isClassInstance)(leftType)) {
90293
- if ((0, types_1.isClass)(rightType)) {
90294
- const genericLeftType = types_1.ClassType.specialize(
90295
- leftType,
90296
- /* typeArgs */
90297
- void 0
90298
- );
90299
- const genericRightType = types_1.ClassType.specialize(
90300
- rightType,
90301
- /* typeArgs */
90302
- void 0
90303
- );
90304
- if (this._evaluator.assignType(genericLeftType, genericRightType) || this._evaluator.assignType(genericRightType, genericLeftType)) {
90305
- return true;
90306
- }
90307
- if (types_1.ClassType.isBuiltIn(leftType) && types_1.ClassType.isBuiltIn(rightType) && types_1.TypeBase.isInstance(rightType)) {
90308
- return false;
90309
- }
90310
- }
90311
- const eqMethod = (0, typeUtils_1.lookUpClassMember)(
90312
- types_1.ClassType.cloneAsInstantiable(leftType),
90313
- "__eq__",
90314
- 4
90315
- /* MemberAccessFlags.SkipObjectBaseClass */
90316
- );
90317
- if (eqMethod) {
90318
- if (types_1.ClassType.isDataClass(leftType) && eqMethod.symbol.getSynthesizedType()) {
90319
- return false;
90320
- }
90321
- return true;
90322
- }
90323
- return false;
90324
- }
90325
- return true;
90326
- }
90327
90381
  // If the function is a generator, validates that its annotated return type
90328
90382
  // is appropriate for a generator.
90329
90383
  _validateGeneratorReturnType(node, functionType) {
@@ -90977,6 +91031,9 @@ var require_checker = __commonJS({
90977
91031
  }
90978
91032
  }
90979
91033
  }
91034
+ if (!overloads.find((overload) => overload.shared.declaration === primaryDecl)) {
91035
+ return;
91036
+ }
90980
91037
  this._evaluator.addDiagnostic(diagnosticRules_1.DiagnosticRule.reportNoOverloadImplementation, localize_1.LocMessage.overloadWithoutImplementation().format({
90981
91038
  name: primaryDecl.node.d.name.d.value
90982
91039
  }), primaryDecl.node.d.name);
@@ -93205,22 +93262,7 @@ var require_checker = __commonJS({
93205
93262
  }
93206
93263
  if ((0, types_1.isFunction)(baseType) || (0, types_1.isOverloaded)(baseType)) {
93207
93264
  const diagAddendum = new diagnostic_1.DiagnosticAddendum();
93208
- let reportFinalMethodOverride = false;
93209
- if (!SymbolNameUtils.isPrivateName(memberName)) {
93210
- if ((0, types_1.isFunction)(baseType) && types_1.FunctionType.isFinal(baseType)) {
93211
- reportFinalMethodOverride = true;
93212
- } else if ((0, types_1.isOverloaded)(baseType)) {
93213
- const overloads = types_1.OverloadedType.getOverloads(baseType);
93214
- const impl = types_1.OverloadedType.getImplementation(baseType);
93215
- if (overloads.some((overload) => types_1.FunctionType.isFinal(overload))) {
93216
- reportFinalMethodOverride = true;
93217
- }
93218
- if (impl && (0, types_1.isFunction)(impl) && types_1.FunctionType.isFinal(impl)) {
93219
- reportFinalMethodOverride = true;
93220
- }
93221
- }
93222
- }
93223
- if (reportFinalMethodOverride) {
93265
+ if (this._isFinalFunction(memberName, baseType)) {
93224
93266
  const decl = (0, symbolUtils_1.getLastTypedDeclarationForSymbol)(overrideSymbol);
93225
93267
  if (decl && decl.type === 5) {
93226
93268
  const diag = this._evaluator.addDiagnostic(diagnosticRules_1.DiagnosticRule.reportIncompatibleMethodOverride, localize_1.LocMessage.finalMethodOverride().format({
@@ -93233,41 +93275,50 @@ var require_checker = __commonJS({
93233
93275
  }
93234
93276
  }
93235
93277
  }
93278
+ if (this._isMethodExemptFromLsp(memberName) || SymbolNameUtils.isPrivateName(memberName) || types_1.ClassType.isTypedDictClass(childClassType)) {
93279
+ return;
93280
+ }
93236
93281
  if ((0, types_1.isFunction)(overrideType) || (0, types_1.isOverloaded)(overrideType)) {
93237
93282
  const enforceParamNameMatch = !SymbolNameUtils.isDunderName(memberName);
93238
- if (!this._isMethodExemptFromLsp(memberName) && !SymbolNameUtils.isPrivateName(memberName) && !types_1.ClassType.isTypedDictClass(childClassType)) {
93239
- if (!this._evaluator.validateOverrideMethod(baseType, overrideType, childClassType, diagAddendum, enforceParamNameMatch)) {
93240
- const decl = (0, symbolUtils_1.getLastTypedDeclarationForSymbol)(overrideSymbol);
93241
- if (decl) {
93242
- const diag = this._evaluator.addDiagnostic(diagnosticRules_1.DiagnosticRule.reportIncompatibleMethodOverride, localize_1.LocMessage.incompatibleMethodOverride().format({
93243
- name: memberName,
93244
- className: baseClass.shared.name
93245
- }) + diagAddendum.getString(), (0, declarationUtils_1.getNameNodeForDeclaration)(decl) ?? decl.node);
93246
- const origDecl = (0, symbolUtils_1.getLastTypedDeclarationForSymbol)(baseClassAndSymbol.symbol);
93247
- if (diag && origDecl) {
93248
- diag.addRelatedInfo(localize_1.LocAddendum.overriddenMethod(), origDecl.uri, origDecl.range);
93249
- }
93250
- }
93251
- }
93283
+ if (this._evaluator.validateOverrideMethod(baseType, overrideType, childClassType, diagAddendum, enforceParamNameMatch)) {
93284
+ return;
93252
93285
  }
93253
- } else if (!(0, types_1.isAnyOrUnknown)(overrideType)) {
93254
- if (!types_1.ClassType.isBuiltIn(baseClass, "_TypedDict")) {
93255
- const decls = overrideSymbol.getDeclarations();
93256
- if (decls.length > 0) {
93257
- const lastDecl = decls[decls.length - 1];
93258
- const diag = this._evaluator.addDiagnostic(diagnosticRules_1.DiagnosticRule.reportIncompatibleMethodOverride, localize_1.LocMessage.methodOverridden().format({
93259
- name: memberName,
93260
- className: baseClass.shared.name,
93261
- type: this._evaluator.printType(overrideType)
93262
- }), (0, declarationUtils_1.getNameNodeForDeclaration)(lastDecl) ?? lastDecl.node);
93263
- const origDecl = (0, symbolUtils_1.getLastTypedDeclarationForSymbol)(baseClassAndSymbol.symbol);
93264
- if (diag && origDecl) {
93265
- diag.addRelatedInfo(localize_1.LocAddendum.overriddenMethod(), origDecl.uri, origDecl.range);
93266
- }
93267
- }
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);
93268
93317
  }
93269
93318
  }
93270
- } else if ((0, typeUtils_1.isProperty)(baseType)) {
93319
+ return;
93320
+ }
93321
+ if ((0, typeUtils_1.isProperty)(baseType)) {
93271
93322
  if (!(0, typeUtils_1.isProperty)(overrideType)) {
93272
93323
  const decls = overrideSymbol.getDeclarations();
93273
93324
  if (decls.length > 0 && overrideSymbol.isClassMember()) {
@@ -93280,114 +93331,134 @@ var require_checker = __commonJS({
93280
93331
  } else {
93281
93332
  this._validatePropertyOverride(baseClass, childClassType, baseType, overrideType, overrideSymbol, memberName);
93282
93333
  }
93283
- } else {
93284
- if (this._fileInfo.diagnosticRuleSet.reportIncompatibleVariableOverride !== "none") {
93285
- const decls = overrideSymbol.getDeclarations();
93286
- if (decls.length > 0) {
93287
- const lastDecl = decls[decls.length - 1];
93288
- const primaryDecl = decls[0];
93289
- let isInvariant = (primaryDecl == null ? void 0 : primaryDecl.type) === 1 && !primaryDecl.isFinal;
93290
- if (types_1.ClassType.isDataClassFrozen(baseClass) && baseClass.shared.dataClassEntries) {
93291
- const dataclassEntry = baseClass.shared.dataClassEntries.find((entry) => entry.name === memberName);
93292
- if (dataclassEntry) {
93293
- isInvariant = false;
93294
- }
93295
- }
93296
- let overriddenTDEntry;
93297
- let overrideTDEntry;
93298
- if (!overrideSymbol.isIgnoredForProtocolMatch()) {
93299
- if (baseClass.shared.typedDictEntries) {
93300
- overriddenTDEntry = baseClass.shared.typedDictEntries.knownItems.get(memberName) ?? baseClass.shared.typedDictEntries.extraItems ?? (0, typedDicts_1.getEffectiveExtraItemsEntryType)(this._evaluator, baseClass);
93301
- if (overriddenTDEntry == null ? void 0 : overriddenTDEntry.isReadOnly) {
93302
- isInvariant = false;
93303
- }
93304
- }
93305
- if (childClassType.shared.typedDictEntries) {
93306
- overrideTDEntry = childClassType.shared.typedDictEntries.knownItems.get(memberName) ?? childClassType.shared.typedDictEntries.extraItems ?? (0, typedDicts_1.getEffectiveExtraItemsEntryType)(this._evaluator, childClassType);
93307
- }
93308
- }
93309
- let diagAddendum = new diagnostic_1.DiagnosticAddendum();
93310
- if (!this._evaluator.assignType(
93311
- baseType,
93312
- overrideType,
93313
- diagAddendum,
93314
- /* constraints */
93315
- void 0,
93316
- isInvariant ? 1 : 0
93317
- /* AssignTypeFlags.Default */
93318
- )) {
93319
- if (isInvariant) {
93320
- diagAddendum = new diagnostic_1.DiagnosticAddendum();
93321
- diagAddendum.addMessage(localize_1.LocAddendum.overrideIsInvariant());
93322
- diagAddendum.createAddendum().addMessage(localize_1.LocAddendum.overrideInvariantMismatch().format({
93323
- overrideType: this._evaluator.printType(overrideType),
93324
- baseType: this._evaluator.printType(baseType)
93325
- }));
93326
- }
93327
- const diag = this._evaluator.addDiagnostic(diagnosticRules_1.DiagnosticRule.reportIncompatibleVariableOverride, localize_1.LocMessage.symbolOverridden().format({
93328
- name: memberName,
93329
- className: baseClass.shared.name
93330
- }) + diagAddendum.getString(), (0, declarationUtils_1.getNameNodeForDeclaration)(lastDecl) ?? lastDecl.node);
93331
- const origDecl = (0, symbolUtils_1.getLastTypedDeclarationForSymbol)(baseClassAndSymbol.symbol);
93332
- if (diag && origDecl) {
93333
- diag.addRelatedInfo(localize_1.LocAddendum.overriddenSymbol(), origDecl.uri, origDecl.range);
93334
- }
93335
- } else if (overriddenTDEntry && overrideTDEntry) {
93336
- let isRequiredCompatible = true;
93337
- if (overriddenTDEntry.isReadOnly) {
93338
- isRequiredCompatible = overrideTDEntry.isRequired || !overriddenTDEntry.isRequired;
93339
- } else {
93340
- isRequiredCompatible = overrideTDEntry.isRequired === overriddenTDEntry.isRequired;
93341
- }
93342
- if (!isRequiredCompatible) {
93343
- const message = overrideTDEntry.isRequired ? localize_1.LocMessage.typedDictFieldRequiredRedefinition : localize_1.LocMessage.typedDictFieldNotRequiredRedefinition;
93344
- this._evaluator.addDiagnostic(diagnosticRules_1.DiagnosticRule.reportGeneralTypeIssues, message().format({ name: memberName }), (0, declarationUtils_1.getNameNodeForDeclaration)(lastDecl) ?? lastDecl.node);
93345
- }
93346
- if (!overriddenTDEntry.isReadOnly && overrideTDEntry.isReadOnly) {
93347
- this._evaluator.addDiagnostic(diagnosticRules_1.DiagnosticRule.reportGeneralTypeIssues, localize_1.LocMessage.typedDictFieldReadOnlyRedefinition().format({
93348
- name: memberName
93349
- }), (0, declarationUtils_1.getNameNodeForDeclaration)(lastDecl) ?? lastDecl.node);
93350
- }
93351
- }
93352
- const isBaseVarFinal = this._evaluator.isFinalVariable(baseClassAndSymbol.symbol);
93353
- const overrideFinalVarDecl = decls.find((d) => this._evaluator.isFinalVariableDeclaration(d));
93354
- if (!isBaseVarFinal && overrideFinalVarDecl) {
93355
- const diag = this._evaluator.addDiagnostic(diagnosticRules_1.DiagnosticRule.reportIncompatibleVariableOverride, localize_1.LocMessage.variableFinalOverride().format({
93356
- name: memberName,
93357
- className: baseClass.shared.name
93358
- }), (0, declarationUtils_1.getNameNodeForDeclaration)(lastDecl) ?? lastDecl.node);
93359
- if (diag) {
93360
- diag.addRelatedInfo(localize_1.LocAddendum.overriddenSymbol(), overrideFinalVarDecl.uri, overrideFinalVarDecl.range);
93361
- }
93362
- }
93363
- const isBaseClassVar = baseClassAndSymbol.symbol.isClassVar();
93364
- let isClassVar = overrideSymbol.isClassVar();
93365
- if (isBaseClassVar && !isClassVar) {
93366
- if (!overrideSymbol.hasTypedDeclarations()) {
93367
- isClassVar = true;
93368
- }
93369
- if (overrideSymbol.getTypedDeclarations().every(
93370
- (decl) => decl.type === 6
93371
- /* DeclarationType.Class */
93372
- )) {
93373
- isClassVar = true;
93374
- }
93375
- }
93376
- const ignoreTypedDictOverride = types_1.ClassType.isTypedDictClass(childClassType) && !isClassVar;
93377
- if (isBaseClassVar !== isClassVar && !ignoreTypedDictOverride) {
93378
- const unformattedMessage = overrideSymbol.isClassVar() ? localize_1.LocMessage.classVarOverridesInstanceVar() : localize_1.LocMessage.instanceVarOverridesClassVar();
93379
- const diag = this._evaluator.addDiagnostic(diagnosticRules_1.DiagnosticRule.reportIncompatibleVariableOverride, unformattedMessage.format({
93380
- name: memberName,
93381
- className: baseClass.shared.name
93382
- }), (0, declarationUtils_1.getNameNodeForDeclaration)(lastDecl) ?? lastDecl.node);
93383
- const origDecl = (0, symbolUtils_1.getLastTypedDeclarationForSymbol)(baseClassAndSymbol.symbol);
93384
- if (diag && origDecl) {
93385
- diag.addRelatedInfo(localize_1.LocAddendum.overriddenSymbol(), origDecl.uri, origDecl.range);
93386
- }
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;
93387
93357
  }
93388
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;
93389
93459
  }
93390
93460
  }
93461
+ return false;
93391
93462
  }
93392
93463
  _validatePropertyOverride(baseClassType, childClassType, baseType, childType, overrideSymbol, memberName) {
93393
93464
  const propMethodInfo = [
@@ -93431,6 +93502,14 @@ var require_checker = __commonJS({
93431
93502
  }
93432
93503
  }
93433
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
+ }
93434
93513
  }
93435
93514
  const subclassMethodType = (0, typeUtils_1.partiallySpecializeType)(subclassPropMethod, childClassType, this._evaluator.getTypeClassType());
93436
93515
  if (!(0, types_1.isFunction)(subclassMethodType)) {
@@ -94428,6 +94507,7 @@ var require_sourceFile = __commonJS({
94428
94507
  this._writableData.isCheckingNeeded = true;
94429
94508
  this._writableData.isBindingNeeded = true;
94430
94509
  this._writableData.moduleSymbolTable = void 0;
94510
+ this._writableData.lineCount = void 0;
94431
94511
  this._fireFileDirtyEvent();
94432
94512
  }
94433
94513
  markReanalysisRequired(forceRebinding) {
@@ -94447,6 +94527,9 @@ var require_sourceFile = __commonJS({
94447
94527
  getClientVersion() {
94448
94528
  return this._writableData.clientDocumentVersion;
94449
94529
  }
94530
+ getRange() {
94531
+ return { start: { line: 0, character: 0 }, end: { line: this._writableData.lineCount ?? 0, character: 0 } };
94532
+ }
94450
94533
  getOpenFileContents() {
94451
94534
  return this._writableData.clientDocumentContents;
94452
94535
  }
@@ -94587,6 +94670,7 @@ var require_sourceFile = __commonJS({
94587
94670
  this._writableData.typeIgnoreLines = parseFileResults.tokenizerOutput.typeIgnoreLines;
94588
94671
  this._writableData.typeIgnoreAll = parseFileResults.tokenizerOutput.typeIgnoreAll;
94589
94672
  this._writableData.pyrightIgnoreLines = parseFileResults.tokenizerOutput.pyrightIgnoreLines;
94673
+ this._writableData.lineCount = parseFileResults.tokenizerOutput.lines.length;
94590
94674
  if (this._writableData.clientDocumentContents !== void 0) {
94591
94675
  this._writableData.tokenizerOutput = parseFileResults.tokenizerOutput;
94592
94676
  }
@@ -94694,7 +94778,7 @@ var require_sourceFile = __commonJS({
94694
94778
  this._recomputeDiagnostics(configOptions);
94695
94779
  });
94696
94780
  }
94697
- check(configOptions, importResolver, evaluator, sourceMapper, dependentFiles) {
94781
+ check(configOptions, importLookup, importResolver, evaluator, sourceMapper, dependentFiles) {
94698
94782
  (0, debug_1.assert)(!this.isParseRequired(), `Check called before parsing: state=${this._writableData.debugPrint()}`);
94699
94783
  (0, debug_1.assert)(!this.isBindingRequired(), `Check called before binding: state=${this._writableData.debugPrint()}`);
94700
94784
  (0, debug_1.assert)(!this._writableData.isBindingInProgress, "Check called while binding in progress");
@@ -99450,11 +99534,13 @@ var require_parser = __commonJS({
99450
99534
  }
99451
99535
  continue;
99452
99536
  }
99453
- if (this._consumeTokensUntilType([
99454
- 26
99455
- /* TokenType.FStringEnd */
99456
- ])) {
99457
- this._getNextToken();
99537
+ if (nextToken.type !== 2) {
99538
+ if (this._consumeTokensUntilType([
99539
+ 26
99540
+ /* TokenType.FStringEnd */
99541
+ ])) {
99542
+ this._getNextToken();
99543
+ }
99458
99544
  }
99459
99545
  this._addSyntaxError(nextToken.type === 18 ? localize_1.LocMessage.formatStringBrace() : localize_1.LocMessage.stringUnterminated(), nextToken);
99460
99546
  break;
@@ -115552,10 +115638,13 @@ var TestFrameworkWalker = class extends import_parseTreeWalker3.ParseTreeWalker
115552
115638
  this.testFramework = testFramework;
115553
115639
  }
115554
115640
  visitFunction(node) {
115641
+ var _a;
115555
115642
  if (node.d.name.d.value.startsWith("test_")) {
115556
115643
  if (node.parent && (0, import_parseTreeUtils2.printParseNodeType)(node.parent.nodeType) === "Suite") {
115557
- const parentSuiteNode = node.parent;
115558
- if (parentSuiteNode.parent && (0, import_parseTreeUtils2.printParseNodeType)(parentSuiteNode.parent.nodeType) === "Class") {
115644
+ let fullyQualifiedTestName = "";
115645
+ let currentNode = node;
115646
+ let parentSuiteNode = currentNode == null ? void 0 : currentNode.parent;
115647
+ while (parentSuiteNode.parent && (0, import_parseTreeUtils2.printParseNodeType)(parentSuiteNode.parent.nodeType) === "Class") {
115559
115648
  const classNode = parentSuiteNode.parent;
115560
115649
  let combineString = void 0;
115561
115650
  if (this.testFramework === "unittest") {
@@ -115563,12 +115652,15 @@ var TestFrameworkWalker = class extends import_parseTreeWalker3.ParseTreeWalker
115563
115652
  } else if (this.testFramework === "pytest") {
115564
115653
  combineString = "::";
115565
115654
  }
115566
- this.featureItems.push({
115567
- value: classNode.d.name.d.value + combineString + node.d.name.d.value,
115568
- startOffset: node.start,
115569
- endOffset: node.start + node.length - 1
115570
- });
115655
+ fullyQualifiedTestName = classNode.d.name.d.value + combineString + fullyQualifiedTestName;
115656
+ currentNode = (_a = currentNode == null ? void 0 : currentNode.parent) == null ? void 0 : _a.parent;
115657
+ parentSuiteNode = currentNode == null ? void 0 : currentNode.parent;
115571
115658
  }
115659
+ this.featureItems.push({
115660
+ value: fullyQualifiedTestName + node.d.name.d.value,
115661
+ startOffset: node.start,
115662
+ endOffset: node.start + node.length - 1
115663
+ });
115572
115664
  } else {
115573
115665
  if (this.testFramework === "pytest") {
115574
115666
  this.featureItems.push({
@@ -115599,9 +115691,23 @@ function parse(source) {
115599
115691
  // src/commands.ts
115600
115692
  var terminal;
115601
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
+ }
115602
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"];
115603
115709
  try {
115604
- const pythonProcess = child_process2.spawnSync(pythonPath, ["-m", moduleName, "--help"], { encoding: "utf8" });
115710
+ const pythonProcess = child_process2.spawnSync(pythonPath, pythonArgs, { encoding: "utf8" });
115605
115711
  if (pythonProcess.error) return false;
115606
115712
  return pythonProcess.status === 0;
115607
115713
  } catch (ex) {