@zzzen/pyright-internal 1.1.255 → 1.2.0-dev.20220703
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +1 -0
- package/dist/analyzer/aliasDeclarationUtils.js +2 -2
- package/dist/analyzer/analyzerFileInfo.d.ts +1 -1
- package/dist/analyzer/analyzerNodeInfo.d.ts +4 -1
- package/dist/analyzer/analyzerNodeInfo.js +12 -1
- package/dist/analyzer/analyzerNodeInfo.js.map +1 -1
- package/dist/analyzer/backgroundAnalysisProgram.d.ts +1 -0
- package/dist/analyzer/backgroundAnalysisProgram.js +3 -0
- package/dist/analyzer/backgroundAnalysisProgram.js.map +1 -1
- package/dist/analyzer/binder.d.ts +6 -1
- package/dist/analyzer/binder.js +142 -32
- package/dist/analyzer/binder.js.map +1 -1
- package/dist/analyzer/checker.d.ts +4 -1
- package/dist/analyzer/checker.js +144 -73
- package/dist/analyzer/checker.js.map +1 -1
- package/dist/analyzer/codeFlowUtils.js +33 -0
- package/dist/analyzer/codeFlowUtils.js.map +1 -1
- package/dist/analyzer/constraintSolver.js +6 -3
- package/dist/analyzer/constraintSolver.js.map +1 -1
- package/dist/analyzer/dataClasses.js +6 -4
- package/dist/analyzer/dataClasses.js.map +1 -1
- package/dist/analyzer/declaration.d.ts +18 -6
- package/dist/analyzer/declaration.js +25 -5
- package/dist/analyzer/declaration.js.map +1 -1
- package/dist/analyzer/declarationUtils.d.ts +1 -1
- package/dist/analyzer/declarationUtils.js +19 -16
- package/dist/analyzer/declarationUtils.js.map +1 -1
- package/dist/analyzer/importResult.js +7 -0
- package/dist/analyzer/importResult.js.map +1 -1
- package/dist/analyzer/importStatementUtils.js +10 -1
- package/dist/analyzer/importStatementUtils.js.map +1 -1
- package/dist/analyzer/namedTuples.js +1 -1
- package/dist/analyzer/namedTuples.js.map +1 -1
- package/dist/analyzer/packageTypeReport.js +10 -1
- package/dist/analyzer/packageTypeReport.js.map +1 -1
- package/dist/analyzer/packageTypeVerifier.js +6 -6
- package/dist/analyzer/parseTreeUtils.d.ts +3 -3
- package/dist/analyzer/parseTreeUtils.js +27 -13
- package/dist/analyzer/parseTreeUtils.js.map +1 -1
- package/dist/analyzer/parseTreeWalker.d.ts +4 -1
- package/dist/analyzer/parseTreeWalker.js +19 -1
- package/dist/analyzer/parseTreeWalker.js.map +1 -1
- package/dist/analyzer/program.d.ts +2 -1
- package/dist/analyzer/program.js +27 -23
- package/dist/analyzer/program.js.map +1 -1
- package/dist/analyzer/properties.js +2 -0
- package/dist/analyzer/properties.js.map +1 -1
- package/dist/analyzer/protocols.d.ts +0 -1
- package/dist/analyzer/protocols.js +4 -64
- package/dist/analyzer/protocols.js.map +1 -1
- package/dist/analyzer/scope.js +22 -1
- package/dist/analyzer/scope.js.map +1 -1
- package/dist/analyzer/service.d.ts +20 -8
- package/dist/analyzer/service.js +39 -19
- package/dist/analyzer/service.js.map +1 -1
- package/dist/analyzer/sourceFile.js +1 -1
- package/dist/analyzer/sourceFile.js.map +1 -1
- package/dist/analyzer/sourceFileInfoUtils.d.ts +2 -0
- package/dist/analyzer/sourceFileInfoUtils.js +15 -0
- package/dist/analyzer/sourceFileInfoUtils.js.map +1 -0
- package/dist/analyzer/symbol.d.ts +3 -1
- package/dist/analyzer/symbol.js +39 -1
- package/dist/analyzer/symbol.js.map +1 -1
- package/dist/analyzer/tracePrinter.js +8 -4
- package/dist/analyzer/tracePrinter.js.map +1 -1
- package/dist/analyzer/typeDocStringUtils.js +11 -3
- package/dist/analyzer/typeDocStringUtils.js.map +1 -1
- package/dist/analyzer/typeEvaluator.js +610 -208
- package/dist/analyzer/typeEvaluator.js.map +1 -1
- package/dist/analyzer/typeEvaluatorTypes.d.ts +2 -1
- package/dist/analyzer/typeEvaluatorTypes.js +65 -1
- package/dist/analyzer/typeEvaluatorTypes.js.map +1 -1
- package/dist/analyzer/typeEvaluatorWithTracker.js +2 -0
- package/dist/analyzer/typeEvaluatorWithTracker.js.map +1 -1
- package/dist/analyzer/typeGuards.d.ts +2 -0
- package/dist/analyzer/typeGuards.js +113 -69
- package/dist/analyzer/typeGuards.js.map +1 -1
- package/dist/analyzer/typePrinter.js +27 -2
- package/dist/analyzer/typePrinter.js.map +1 -1
- package/dist/analyzer/typeStubWriter.d.ts +4 -1
- package/dist/analyzer/typeStubWriter.js +36 -0
- package/dist/analyzer/typeStubWriter.js.map +1 -1
- package/dist/analyzer/typeUtils.js +129 -33
- package/dist/analyzer/typeUtils.js.map +1 -1
- package/dist/analyzer/typedDicts.js +2 -1
- package/dist/analyzer/typedDicts.js.map +1 -1
- package/dist/analyzer/types.d.ts +12 -4
- package/dist/analyzer/types.js +215 -6
- package/dist/analyzer/types.js.map +1 -1
- package/dist/backgroundAnalysisBase.d.ts +1 -1
- package/dist/commands/commands.js +9 -0
- package/dist/commands/commands.js.map +1 -1
- package/dist/common/commandLineOptions.js +8 -1
- package/dist/common/commandLineOptions.js.map +1 -1
- package/dist/common/core.js +7 -1
- package/dist/common/core.js.map +1 -1
- package/dist/common/diagnostic.js +9 -1
- package/dist/common/diagnostic.js.map +1 -1
- package/dist/common/host.js +7 -1
- package/dist/common/host.js.map +1 -1
- package/dist/common/pathUtils.d.ts +1 -0
- package/dist/common/pathUtils.js +34 -1
- package/dist/common/pathUtils.js.map +1 -1
- package/dist/common/stringUtils.d.ts +1 -0
- package/dist/common/stringUtils.js +8 -1
- package/dist/common/stringUtils.js.map +1 -1
- package/dist/languageServerBase.d.ts +10 -3
- package/dist/languageServerBase.js +40 -14
- package/dist/languageServerBase.js.map +1 -1
- package/dist/languageService/analyzerServiceExecutor.js +3 -0
- package/dist/languageService/analyzerServiceExecutor.js.map +1 -1
- package/dist/languageService/autoImporter.js +2 -1
- package/dist/languageService/autoImporter.js.map +1 -1
- package/dist/languageService/callHierarchyProvider.js +9 -9
- package/dist/languageService/completionProvider.d.ts +2 -2
- package/dist/languageService/completionProvider.js +22 -18
- package/dist/languageService/completionProvider.js.map +1 -1
- package/dist/languageService/definitionProvider.js +3 -3
- package/dist/languageService/documentSymbolCollector.js +1 -1
- package/dist/languageService/documentSymbolProvider.js +10 -7
- package/dist/languageService/documentSymbolProvider.js.map +1 -1
- package/dist/languageService/hoverProvider.js +19 -5
- package/dist/languageService/hoverProvider.js.map +1 -1
- package/dist/languageService/referencesProvider.js +8 -5
- package/dist/languageService/referencesProvider.js.map +1 -1
- package/dist/languageService/tooltipUtils.js +1 -1
- package/dist/localization/localize.d.ts +27 -0
- package/dist/localization/localize.js +16 -0
- package/dist/localization/localize.js.map +1 -1
- package/dist/localization/package.nls.en-us.json +18 -2
- package/dist/parser/parseNodes.d.ts +44 -5
- package/dist/parser/parseNodes.js +191 -4
- package/dist/parser/parseNodes.js.map +1 -1
- package/dist/parser/parser.d.ts +3 -1
- package/dist/parser/parser.js +155 -24
- package/dist/parser/parser.js.map +1 -1
- package/dist/parser/stringTokenUtils.js +8 -1
- package/dist/parser/stringTokenUtils.js.map +1 -1
- package/dist/parser/tokenizer.js +4 -3
- package/dist/parser/tokenizer.js.map +1 -1
- package/dist/parser/tokenizerTypes.d.ts +5 -3
- package/dist/parser/tokenizerTypes.js +157 -1
- package/dist/parser/tokenizerTypes.js.map +1 -1
- package/dist/pyright.js +6 -1
- package/dist/pyright.js.map +1 -1
- package/dist/tests/chainedSourceFiles.test.js +12 -9
- package/dist/tests/chainedSourceFiles.test.js.map +1 -1
- package/dist/tests/checker.test.js +4 -0
- package/dist/tests/checker.test.js.map +1 -1
- package/dist/tests/config.test.js +14 -13
- package/dist/tests/config.test.js.map +1 -1
- package/dist/tests/debug.test.js +6 -0
- package/dist/tests/debug.test.js.map +1 -1
- package/dist/tests/fourslash/completions.autoimport.lib.alias.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.autoimport.lib.alias.fourslash.js +53 -0
- package/dist/tests/fourslash/completions.autoimport.lib.alias.fourslash.js.map +1 -0
- package/dist/tests/fourslash/fourslash.d.ts +16 -0
- package/dist/tests/fourslash/hover.class.docString.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/hover.class.docString.fourslash.js +24 -0
- package/dist/tests/fourslash/hover.class.docString.fourslash.js.map +1 -0
- package/dist/tests/harness/fourslash/fourSlashParser.js +6 -0
- package/dist/tests/harness/fourslash/fourSlashParser.js.map +1 -1
- package/dist/tests/harness/fourslash/fourSlashTypes.js +19 -1
- package/dist/tests/harness/fourslash/fourSlashTypes.js.map +1 -1
- package/dist/tests/harness/fourslash/testLanguageService.js +9 -1
- package/dist/tests/harness/fourslash/testLanguageService.js.map +1 -1
- package/dist/tests/harness/fourslash/testState.Consts.d.ts +1 -0
- package/dist/tests/harness/fourslash/testState.Consts.js +1 -0
- package/dist/tests/harness/fourslash/testState.Consts.js.map +1 -1
- package/dist/tests/harness/fourslash/testState.d.ts +4 -3
- package/dist/tests/harness/fourslash/testState.js +27 -11
- package/dist/tests/harness/fourslash/testState.js.map +1 -1
- package/dist/tests/harness/vfs/pathValidation.js +25 -1
- package/dist/tests/harness/vfs/pathValidation.js.map +1 -1
- package/dist/tests/pathUtils.test.js +17 -0
- package/dist/tests/pathUtils.test.js.map +1 -1
- package/dist/tests/testUtils.js +1 -1
- package/dist/tests/testUtils.js.map +1 -1
- package/dist/tests/typeEvaluator1.test.js +9 -1
- package/dist/tests/typeEvaluator1.test.js.map +1 -1
- package/dist/tests/typeEvaluator2.test.js +9 -1
- package/dist/tests/typeEvaluator2.test.js.map +1 -1
- package/dist/tests/typeEvaluator3.test.js +4 -0
- package/dist/tests/typeEvaluator3.test.js.map +1 -1
- package/dist/tests/typeEvaluator5.test.d.ts +1 -0
- package/dist/tests/typeEvaluator5.test.js +112 -0
- package/dist/tests/typeEvaluator5.test.js.map +1 -0
- package/dist/workspaceMap.d.ts +2 -1
- package/dist/workspaceMap.js +25 -3
- package/dist/workspaceMap.js.map +1 -1
- package/package.json +45 -45
- package/src/analyzer/aliasDeclarationUtils.ts +0 -169
- package/src/analyzer/analysis.ts +0 -92
- package/src/analyzer/analyzerFileInfo.ts +0 -56
- package/src/analyzer/analyzerNodeInfo.ts +0 -198
- package/src/analyzer/backgroundAnalysisProgram.ts +0 -311
- package/src/analyzer/binder.ts +0 -4081
- package/src/analyzer/checker.ts +0 -5507
- package/src/analyzer/circularDependency.ts +0 -52
- package/src/analyzer/codeFlowEngine.ts +0 -1548
- package/src/analyzer/codeFlowTypes.ts +0 -266
- package/src/analyzer/codeFlowUtils.ts +0 -436
- package/src/analyzer/commentUtils.ts +0 -174
- package/src/analyzer/constraintSolver.ts +0 -926
- package/src/analyzer/constructorTransform.ts +0 -317
- package/src/analyzer/dataClasses.ts +0 -999
- package/src/analyzer/declaration.ts +0 -252
- package/src/analyzer/declarationUtils.ts +0 -238
- package/src/analyzer/docStringConversion.ts +0 -850
- package/src/analyzer/docStringUtils.ts +0 -112
- package/src/analyzer/functionTransform.ts +0 -137
- package/src/analyzer/importResolver.ts +0 -2308
- package/src/analyzer/importResult.ts +0 -98
- package/src/analyzer/importStatementUtils.ts +0 -834
- package/src/analyzer/namedTuples.ts +0 -422
- package/src/analyzer/packageTypeReport.ts +0 -108
- package/src/analyzer/packageTypeVerifier.ts +0 -1466
- package/src/analyzer/parentDirectoryCache.ts +0 -88
- package/src/analyzer/parseTreeCleaner.ts +0 -35
- package/src/analyzer/parseTreeUtils.ts +0 -2165
- package/src/analyzer/parseTreeWalker.ts +0 -663
- package/src/analyzer/patternMatching.ts +0 -1356
- package/src/analyzer/program.ts +0 -2778
- package/src/analyzer/properties.ts +0 -534
- package/src/analyzer/protocols.ts +0 -660
- package/src/analyzer/pyTypedUtils.ts +0 -52
- package/src/analyzer/pythonPathUtils.ts +0 -201
- package/src/analyzer/scope.ts +0 -202
- package/src/analyzer/scopeUtils.ts +0 -81
- package/src/analyzer/service.ts +0 -1679
- package/src/analyzer/sourceFile.ts +0 -1401
- package/src/analyzer/sourceMapper.ts +0 -717
- package/src/analyzer/staticExpressions.ts +0 -308
- package/src/analyzer/symbol.ts +0 -249
- package/src/analyzer/symbolNameUtils.ts +0 -50
- package/src/analyzer/symbolUtils.ts +0 -49
- package/src/analyzer/testWalker.ts +0 -101
- package/src/analyzer/tracePrinter.ts +0 -264
- package/src/analyzer/typeCache.ts +0 -181
- package/src/analyzer/typeDocStringUtils.ts +0 -371
- package/src/analyzer/typeEvaluator.ts +0 -23395
- package/src/analyzer/typeEvaluatorTypes.ts +0 -452
- package/src/analyzer/typeEvaluatorWithTracker.ts +0 -161
- package/src/analyzer/typeGuards.ts +0 -1828
- package/src/analyzer/typePrinter.ts +0 -807
- package/src/analyzer/typeStubWriter.ts +0 -727
- package/src/analyzer/typeUtils.ts +0 -3126
- package/src/analyzer/typeVarContext.ts +0 -330
- package/src/analyzer/typedDicts.ts +0 -950
- package/src/analyzer/types.ts +0 -2857
- package/src/backgroundAnalysis.ts +0 -49
- package/src/backgroundAnalysisBase.ts +0 -606
- package/src/backgroundThreadBase.ts +0 -143
- package/src/commands/commandController.ts +0 -62
- package/src/commands/commandResult.ts +0 -21
- package/src/commands/commands.ts +0 -16
- package/src/commands/createTypeStub.ts +0 -56
- package/src/commands/quickActionCommand.ts +0 -40
- package/src/commands/restartServer.ts +0 -20
- package/src/common/cancellationUtils.ts +0 -71
- package/src/common/chokidarFileWatcherProvider.ts +0 -74
- package/src/common/collectionUtils.ts +0 -379
- package/src/common/commandLineOptions.ts +0 -132
- package/src/common/configOptions.ts +0 -1291
- package/src/common/console.ts +0 -201
- package/src/common/core.ts +0 -152
- package/src/common/crypto.ts +0 -60
- package/src/common/debug.ts +0 -144
- package/src/common/deferred.ts +0 -78
- package/src/common/diagnostic.ts +0 -191
- package/src/common/diagnosticRules.ts +0 -80
- package/src/common/diagnosticSink.ts +0 -150
- package/src/common/editAction.ts +0 -46
- package/src/common/extensibility.ts +0 -35
- package/src/common/extensions.ts +0 -21
- package/src/common/fileBasedCancellationUtils.ts +0 -274
- package/src/common/fileSystem.ts +0 -152
- package/src/common/fullAccessHost.ts +0 -203
- package/src/common/host.ts +0 -49
- package/src/common/logTracker.ts +0 -157
- package/src/common/lspUtils.ts +0 -18
- package/src/common/memUtils.ts +0 -36
- package/src/common/pathConsts.ts +0 -16
- package/src/common/pathUtils.ts +0 -987
- package/src/common/positionUtils.ts +0 -78
- package/src/common/progressReporter.ts +0 -53
- package/src/common/pythonVersion.ts +0 -74
- package/src/common/realFileSystem.ts +0 -433
- package/src/common/stringUtils.ts +0 -161
- package/src/common/textEditUtils.ts +0 -31
- package/src/common/textRange.ts +0 -225
- package/src/common/textRangeCollection.ts +0 -122
- package/src/common/timing.ts +0 -105
- package/src/common/uriParser.ts +0 -26
- package/src/common/workspaceEditUtils.ts +0 -100
- package/src/languageServerBase.ts +0 -1556
- package/src/languageService/analyzerServiceExecutor.ts +0 -144
- package/src/languageService/autoImporter.ts +0 -926
- package/src/languageService/callHierarchyProvider.ts +0 -476
- package/src/languageService/codeActionProvider.ts +0 -85
- package/src/languageService/completionProvider.ts +0 -3103
- package/src/languageService/definitionProvider.ts +0 -235
- package/src/languageService/documentHighlightProvider.ts +0 -61
- package/src/languageService/documentSymbolCollector.ts +0 -466
- package/src/languageService/documentSymbolProvider.ts +0 -466
- package/src/languageService/hoverProvider.ts +0 -499
- package/src/languageService/importAdder.ts +0 -437
- package/src/languageService/importSorter.ts +0 -196
- package/src/languageService/indentationUtils.ts +0 -813
- package/src/languageService/quickActions.ts +0 -113
- package/src/languageService/referencesProvider.ts +0 -316
- package/src/languageService/renameModuleProvider.ts +0 -1400
- package/src/languageService/signatureHelpProvider.ts +0 -227
- package/src/languageService/tooltipUtils.ts +0 -147
- package/src/localization/localize.ts +0 -1272
- package/src/localization/package.nls.de.json +0 -3
- package/src/localization/package.nls.en-us.json +0 -636
- package/src/localization/package.nls.es.json +0 -3
- package/src/localization/package.nls.fr.json +0 -3
- package/src/localization/package.nls.ja.json +0 -3
- package/src/localization/package.nls.ru.json +0 -3
- package/src/localization/package.nls.zh-cn.json +0 -3
- package/src/localization/package.nls.zh-tw.json +0 -3
- package/src/nodeMain.ts +0 -21
- package/src/nodeServer.ts +0 -30
- package/src/parser/characterStream.ts +0 -145
- package/src/parser/characters.ts +0 -285
- package/src/parser/parseNodes.ts +0 -2338
- package/src/parser/parser.ts +0 -4859
- package/src/parser/stringTokenUtils.ts +0 -564
- package/src/parser/tokenizer.ts +0 -1379
- package/src/parser/tokenizerTypes.ts +0 -420
- package/src/parser/unicode.ts +0 -2917
- package/src/pyright.ts +0 -824
- package/src/pyrightFileSystem.ts +0 -237
- package/src/readonlyAugmentedFileSystem.ts +0 -204
- package/src/server.ts +0 -298
- package/src/tests/chainedSourceFiles.test.ts +0 -183
- package/src/tests/checker.test.ts +0 -445
- package/src/tests/collectionUtils.test.ts +0 -178
- package/src/tests/common.test.ts +0 -117
- package/src/tests/config.test.ts +0 -291
- package/src/tests/debug.test.ts +0 -120
- package/src/tests/deferred.test.ts +0 -54
- package/src/tests/diagnosticOverrides.test.ts +0 -104
- package/src/tests/docStringConversion.test.ts +0 -823
- package/src/tests/docStringUtils.test.ts +0 -57
- package/src/tests/documentSymbolCollector.test.ts +0 -735
- package/src/tests/filesystem.test.ts +0 -215
- package/src/tests/fourSlashParser.test.ts +0 -330
- package/src/tests/fourSlashRunner.test.ts +0 -36
- package/src/tests/fourslash/completions.autoimport.Lib.Found.Type.fourslash.ts +0 -33
- package/src/tests/fourslash/completions.autoimport.Lib.Found.duplication.fourslash.ts +0 -47
- package/src/tests/fourslash/completions.autoimport.Lib.NotFound.fourslash.ts +0 -14
- package/src/tests/fourslash/completions.autoimport.disabled.fourslash.ts +0 -25
- package/src/tests/fourslash/completions.autoimport.duplicates.fourslash.ts +0 -36
- package/src/tests/fourslash/completions.autoimport.fourslash.ts +0 -29
- package/src/tests/fourslash/completions.autoimport.fromImport.fourslash.ts +0 -130
- package/src/tests/fourslash/completions.autoimport.plainText.fourslash.ts +0 -29
- package/src/tests/fourslash/completions.autoimport.shadow.fourslash.ts +0 -48
- package/src/tests/fourslash/completions.autoimport.submodule.fourslash.ts +0 -31
- package/src/tests/fourslash/completions.autoimport.topLevel.fourslash.ts +0 -57
- package/src/tests/fourslash/completions.builtinDocstrings.fourslash.ts +0 -117
- package/src/tests/fourslash/completions.builtinOverride.fourslash.ts +0 -22
- package/src/tests/fourslash/completions.call.stringLiteral.fourslash.ts +0 -55
- package/src/tests/fourslash/completions.call.typedDict.fourslash.ts +0 -247
- package/src/tests/fourslash/completions.call.typedDict.list.fourslash.ts +0 -163
- package/src/tests/fourslash/completions.call.typedDict.states.fourslash.ts +0 -135
- package/src/tests/fourslash/completions.classVariable.fourslash.ts +0 -37
- package/src/tests/fourslash/completions.comment.fourslash.ts +0 -28
- package/src/tests/fourslash/completions.declNames.class.fourslash.ts +0 -35
- package/src/tests/fourslash/completions.declNames.exception.fourslash.ts +0 -18
- package/src/tests/fourslash/completions.declNames.for.fourslash.ts +0 -30
- package/src/tests/fourslash/completions.declNames.importAlias.fourslash.ts +0 -15
- package/src/tests/fourslash/completions.declNames.lambda.fourslash.ts +0 -45
- package/src/tests/fourslash/completions.declNames.method.fourslash.ts +0 -71
- package/src/tests/fourslash/completions.declNames.overload.fourslash.ts +0 -156
- package/src/tests/fourslash/completions.declNames.topLevelOverload.fourslash.ts +0 -141
- package/src/tests/fourslash/completions.dictionary.keys.complex.fourslash.ts +0 -76
- package/src/tests/fourslash/completions.dictionary.keys.expression.fourslash.ts +0 -63
- package/src/tests/fourslash/completions.dictionary.keys.literalTypes.fourslash.ts +0 -161
- package/src/tests/fourslash/completions.dictionary.keys.simple.fourslash.ts +0 -151
- package/src/tests/fourslash/completions.dictionary.keys.stringLiterals.fourslash.ts +0 -116
- package/src/tests/fourslash/completions.dictionary.keys.symbols.fourslash.ts +0 -53
- package/src/tests/fourslash/completions.enums.members.fourslash.ts +0 -44
- package/src/tests/fourslash/completions.excluded.fourslash.ts +0 -12
- package/src/tests/fourslash/completions.fourslash.ts +0 -51
- package/src/tests/fourslash/completions.fstring.fourslash.ts +0 -33
- package/src/tests/fourslash/completions.fstring.stringLiteral.fourslash.ts +0 -96
- package/src/tests/fourslash/completions.fuzzyMatching.fourslash.ts +0 -30
- package/src/tests/fourslash/completions.importDunderNames.fourslash.ts +0 -31
- package/src/tests/fourslash/completions.importSubmodule.fourslash.ts +0 -26
- package/src/tests/fourslash/completions.importsDuplicates.fourslash.ts +0 -23
- package/src/tests/fourslash/completions.inList.fourslash.ts +0 -33
- package/src/tests/fourslash/completions.included.fourslash.ts +0 -12
- package/src/tests/fourslash/completions.indexer.keys.getitem.fourslash.ts +0 -57
- package/src/tests/fourslash/completions.inherited.function.docFromStub.fourslash.ts +0 -28
- package/src/tests/fourslash/completions.inherited.overload.docFromScrWithStub.fourslash.ts +0 -52
- package/src/tests/fourslash/completions.inherited.overload.docFromStub.fourslash.ts +0 -53
- package/src/tests/fourslash/completions.inherited.property.docFromSrc.fourslash.ts +0 -104
- package/src/tests/fourslash/completions.inherited.property.docFromStub.fourslash.ts +0 -108
- package/src/tests/fourslash/completions.keywords.pythonVersion.fourslash.ts +0 -72
- package/src/tests/fourslash/completions.libCodeAndStub.fourslash.ts +0 -79
- package/src/tests/fourslash/completions.libCodeNoStub.fourslash.ts +0 -69
- package/src/tests/fourslash/completions.libStub.fourslash.ts +0 -69
- package/src/tests/fourslash/completions.literals.fourslash.ts +0 -33
- package/src/tests/fourslash/completions.localCode.fourslash.ts +0 -74
- package/src/tests/fourslash/completions.moduleContext.UnknownMemberOnInstance.fourslash.ts +0 -17
- package/src/tests/fourslash/completions.moduleContext.UnknownStaticFunctionOnClass.fourslash.ts +0 -57
- package/src/tests/fourslash/completions.moduleContext.libCodeNoStub.fourslash.ts +0 -30
- package/src/tests/fourslash/completions.overloads.fourslash.ts +0 -40
- package/src/tests/fourslash/completions.override.default.fourslash.ts +0 -47
- package/src/tests/fourslash/completions.override.default.importStub.ts +0 -50
- package/src/tests/fourslash/completions.override.default.imported.fourslash.ts +0 -61
- package/src/tests/fourslash/completions.override.default.stub.fourslash.ts +0 -47
- package/src/tests/fourslash/completions.override.fourslash.ts +0 -47
- package/src/tests/fourslash/completions.override.property.fourslash.ts +0 -31
- package/src/tests/fourslash/completions.override.property.stub.fourslash.ts +0 -31
- package/src/tests/fourslash/completions.override.staticAndClassmethod.fourslash.ts +0 -64
- package/src/tests/fourslash/completions.override.stub.fourslash.ts +0 -47
- package/src/tests/fourslash/completions.override2.fourslash.ts +0 -71
- package/src/tests/fourslash/completions.parameters.fourslash.ts +0 -23
- package/src/tests/fourslash/completions.params.fourslash.ts +0 -24
- package/src/tests/fourslash/completions.parentFolder.fourslash.ts +0 -17
- package/src/tests/fourslash/completions.parentFolders.fourslash.ts +0 -77
- package/src/tests/fourslash/completions.plainText.fourslash.ts +0 -34
- package/src/tests/fourslash/completions.private.fourslash.ts +0 -64
- package/src/tests/fourslash/completions.property.fourslash.ts +0 -28
- package/src/tests/fourslash/completions.propertyDocStrings.fourslash.ts +0 -64
- package/src/tests/fourslash/completions.self.fourslash.ts +0 -43
- package/src/tests/fourslash/completions.stringLiteral.escape.fourslash.ts +0 -71
- package/src/tests/fourslash/completions.stringLiteral.fourslash.ts +0 -79
- package/src/tests/fourslash/completions.typeAlias.fourslash.ts +0 -29
- package/src/tests/fourslash/completions.typeshed.fourslash.ts +0 -9
- package/src/tests/fourslash/completions.vardecls.fourslash.ts +0 -40
- package/src/tests/fourslash/completions.variableDocStrings.fourslash.ts +0 -69
- package/src/tests/fourslash/completions.wildcardimports.fourslash.ts +0 -116
- package/src/tests/fourslash/completions.with.fourslash.ts +0 -26
- package/src/tests/fourslash/diagnostics.missingModuleSource.fourslash.ts +0 -69
- package/src/tests/fourslash/findDefinitions.builtinClass.fourslash.ts +0 -29
- package/src/tests/fourslash/findDefinitions.classes.fourslash.ts +0 -101
- package/src/tests/fourslash/findDefinitions.definitionFilter.preferSource.fourslash.ts +0 -29
- package/src/tests/fourslash/findDefinitions.definitionFilter.preferSource.onlyStubs.ts +0 -24
- package/src/tests/fourslash/findDefinitions.definitionFilter.preferStub.fourslash.ts +0 -29
- package/src/tests/fourslash/findDefinitions.definitionFilter.preferStub.onlySource.fourslash.ts +0 -25
- package/src/tests/fourslash/findDefinitions.fields.fourslash.ts +0 -131
- package/src/tests/fourslash/findDefinitions.functions.fourslash.ts +0 -87
- package/src/tests/fourslash/findDefinitions.methods.fourslash.ts +0 -162
- package/src/tests/fourslash/findDefinitions.modules.fourslash.ts +0 -50
- package/src/tests/fourslash/findDefinitions.namespaceImport.fourslash.ts +0 -40
- package/src/tests/fourslash/findDefinitions.overloads.fourslash.ts +0 -223
- package/src/tests/fourslash/findDefinitions.parameters.fourslash.ts +0 -162
- package/src/tests/fourslash/findDefinitions.sourceAndStub.function.fourslash.ts +0 -26
- package/src/tests/fourslash/findDefinitions.sourceAndStub.innerClass.fourslash.ts +0 -32
- package/src/tests/fourslash/findDefinitions.sourceAndStub.innerClassMethod.fourslash.ts +0 -33
- package/src/tests/fourslash/findDefinitions.sourceAndStub.outerClass.fourslash.ts +0 -28
- package/src/tests/fourslash/findDefinitions.sourceAndStub.outerClassMethod.fourslash.ts +0 -29
- package/src/tests/fourslash/findDefinitions.sourceAndStub.outerClassPropertyReadOnly.fourslash.ts +0 -31
- package/src/tests/fourslash/findDefinitions.sourceAndStub.outerClassPropertyReadWrite.fourslash.ts +0 -36
- package/src/tests/fourslash/findDefinitions.sourceOnly.class.fourslash.ts +0 -29
- package/src/tests/fourslash/findDefinitions.sourceOnly.function1.fourslash.ts +0 -28
- package/src/tests/fourslash/findDefinitions.sourceOnly.function2.fourslash.ts +0 -28
- package/src/tests/fourslash/findDefinitions.sourceOnly.relativeImport1.fourslash.ts +0 -22
- package/src/tests/fourslash/findDefinitions.sourceOnly.relativeImport2.fourslash.ts +0 -22
- package/src/tests/fourslash/findDefinitions.stubOnly.fourslash.ts +0 -61
- package/src/tests/fourslash/findDefinitions.stubPackages.fourslash.ts +0 -71
- package/src/tests/fourslash/findDefinitions.typedDict.keys.fourslash.ts +0 -99
- package/src/tests/fourslash/findDefinitions.variables.fourslash.ts +0 -88
- package/src/tests/fourslash/findDefinitions.wildcardimports.fourslash.ts +0 -117
- package/src/tests/fourslash/findTypeDefinitions.builtinClass.fourslash.ts +0 -26
- package/src/tests/fourslash/findTypeDefinitions.classes.fourslash.ts +0 -72
- package/src/tests/fourslash/findTypeDefinitions.unions.fourslash.ts +0 -26
- package/src/tests/fourslash/findallreferences.classPropertyReadWrite.ts +0 -39
- package/src/tests/fourslash/findallreferences.fourslash.ts +0 -34
- package/src/tests/fourslash/findallreferences.importalias.fourslash.ts +0 -34
- package/src/tests/fourslash/findallreferences.invokedFromLibrary.fourslash.ts +0 -52
- package/src/tests/fourslash/findallreferences.module.nested.fourslash.ts +0 -67
- package/src/tests/fourslash/findallreferences.modules.duplicated.fourslash.ts +0 -59
- package/src/tests/fourslash/findallreferences.modules.fourslash.ts +0 -46
- package/src/tests/fourslash/findallreferences.modules.shadow.fourslash.ts +0 -95
- package/src/tests/fourslash/findallreferences.openFiles.fourslash.ts +0 -37
- package/src/tests/fourslash/findallreferences.parameter.fourslash.ts +0 -24
- package/src/tests/fourslash/findallreferences.sourceAndStub.class.fourslash.ts +0 -33
- package/src/tests/fourslash/findallreferences.sourceAndStub.classMethod.fourslash.ts +0 -37
- package/src/tests/fourslash/findallreferences.sourceAndStub.classPropertyReadOnly.fourslash.ts +0 -40
- package/src/tests/fourslash/findallreferences.sourceAndStub.classPropertyReadWrite.fourslash.skip.ts +0 -48
- package/src/tests/fourslash/findallreferences.sourceAndStub.function.fourslash.ts +0 -35
- package/src/tests/fourslash/findallreferences.variable.fourslash.ts +0 -24
- package/src/tests/fourslash/fourslash.ts +0 -411
- package/src/tests/fourslash/highlightreferences.attributes.fourslash.ts +0 -31
- package/src/tests/fourslash/hover.builtinDocstrings.fourslash.ts +0 -64
- package/src/tests/fourslash/hover.classNoInit.fourslash.ts +0 -14
- package/src/tests/fourslash/hover.docFromScr.stringFormat.fourslash.ts +0 -52
- package/src/tests/fourslash/hover.docFromSrc.fourslash.ts +0 -83
- package/src/tests/fourslash/hover.docFromSrc.pkg-vs-module1.fourslash.ts +0 -26
- package/src/tests/fourslash/hover.docFromSrc.pkg-vs-module2.fourslash.ts +0 -26
- package/src/tests/fourslash/hover.docFromSrc.relativeImport1.fourslash.ts +0 -23
- package/src/tests/fourslash/hover.docFromSrc.relativeImport2.fourslash.ts +0 -22
- package/src/tests/fourslash/hover.docFromSrc.relativeImport3.fourslash.ts +0 -46
- package/src/tests/fourslash/hover.docFromSrc.stubs-package.fourslash.ts +0 -29
- package/src/tests/fourslash/hover.docFromSrc.typeshed.fourslash.ts +0 -20
- package/src/tests/fourslash/hover.docstring.links.fourslash.ts +0 -12
- package/src/tests/fourslash/hover.docstring.overloads.fourslash.ts +0 -41
- package/src/tests/fourslash/hover.docstring.split.fourslash.ts +0 -24
- package/src/tests/fourslash/hover.fourslash.ts +0 -20
- package/src/tests/fourslash/hover.import.django.view.fourslash.ts +0 -27
- package/src/tests/fourslash/hover.import.fourslash.ts +0 -11
- package/src/tests/fourslash/hover.inherited.docFromSrc.fourslash.ts +0 -63
- package/src/tests/fourslash/hover.inherited.docFromSrcWithStub.fourslash.ts +0 -54
- package/src/tests/fourslash/hover.inherited.docFromStub.fourslash.ts +0 -42
- package/src/tests/fourslash/hover.inherited.overload.docFromSrcWithStub.fourslash.ts +0 -46
- package/src/tests/fourslash/hover.inherited.overload.docFromStub.fourslash.ts +0 -47
- package/src/tests/fourslash/hover.inherited.property.docFromSrcWithStub.fourslash.ts +0 -87
- package/src/tests/fourslash/hover.inherited.property.docFromStub.fourslash.ts +0 -91
- package/src/tests/fourslash/hover.init.fourslash.ts +0 -39
- package/src/tests/fourslash/hover.libCodeAndStub.fourslash.ts +0 -52
- package/src/tests/fourslash/hover.libCodeNoStub.fourslash.ts +0 -41
- package/src/tests/fourslash/hover.libStub.fourslash.ts +0 -41
- package/src/tests/fourslash/hover.optionalAliasParameter.fourslash.ts +0 -14
- package/src/tests/fourslash/hover.plainText.fourslash.ts +0 -21
- package/src/tests/fourslash/hover.typedDict.key.fourslash.ts +0 -51
- package/src/tests/fourslash/hover.variable.docString.fourslash.ts +0 -41
- package/src/tests/fourslash/hover.wildcardimports.fourslash.ts +0 -80
- package/src/tests/fourslash/import.publicSymbols.fourslash.ts +0 -65
- package/src/tests/fourslash/import.pytyped.dunderAll.fourslash.ts +0 -77
- package/src/tests/fourslash/import.pytyped.privateSymbols.fourslash.ts +0 -65
- package/src/tests/fourslash/import.pytyped.typeCheckingBasic.fourslash.ts +0 -38
- package/src/tests/fourslash/import.pytyped.typeCheckingOff.fourslash.ts +0 -38
- package/src/tests/fourslash/import.wildcard.fourslash.ts +0 -27
- package/src/tests/fourslash/importnotresolved.fourslash.ts +0 -13
- package/src/tests/fourslash/missingModuleSource.disablingInStrictMode.fourslash.ts +0 -20
- package/src/tests/fourslash/missingModuleSource.fourslash.ts +0 -14
- package/src/tests/fourslash/missingTypeStub.codeAction.fourslash.ts +0 -33
- package/src/tests/fourslash/missingTypeStub.command.multipart.fourslash.ts +0 -48
- package/src/tests/fourslash/missingTypeStub.command.singlefile.fourslash.ts +0 -38
- package/src/tests/fourslash/missingTypeStub.command.singlepart.fourslash.ts +0 -38
- package/src/tests/fourslash/missingTypeStub.fourslash.ts +0 -20
- package/src/tests/fourslash/missingTypeStub.invokeCodeAction.fourslash.ts +0 -36
- package/src/tests/fourslash/noerrors.fourslash.ts +0 -9
- package/src/tests/fourslash/orderImports1.command.fourslash.ts +0 -20
- package/src/tests/fourslash/orderImports2.command.fourslash.ts +0 -24
- package/src/tests/fourslash/rename.externallyHidden.fourslash.ts +0 -24
- package/src/tests/fourslash/rename.externallyHidden.params.fourslash.ts +0 -24
- package/src/tests/fourslash/rename.fourslash.ts +0 -29
- package/src/tests/fourslash/rename.library.fourslash.ts +0 -29
- package/src/tests/fourslash/rename.library.sourceAndStub.fourslash.ts +0 -33
- package/src/tests/fourslash/rename.multipleDecl.fourslash.ts +0 -21
- package/src/tests/fourslash/rename.sourceAndStub.fourslash.ts +0 -37
- package/src/tests/fourslash/rename.string.excluded.fourslash.ts +0 -43
- package/src/tests/fourslash/rename.string.fourslash.ts +0 -26
- package/src/tests/fourslash/signature.builtinDocstrings.fourslash.ts +0 -63
- package/src/tests/fourslash/signature.complicated.fourslash.ts +0 -100
- package/src/tests/fourslash/signature.cornercases.fourslash.ts +0 -23
- package/src/tests/fourslash/signature.docstrings.fourslash.ts +0 -43
- package/src/tests/fourslash/signature.docstrings.overloaded.fourslash.ts +0 -50
- package/src/tests/fourslash/signature.docstrings.wildcardimports.fourslash.ts +0 -122
- package/src/tests/fourslash/signature.overload.fourslash.ts +0 -64
- package/src/tests/fourslash/signature.simple.fourslash.ts +0 -104
- package/src/tests/harness/fourslash/fourSlashParser.ts +0 -441
- package/src/tests/harness/fourslash/fourSlashTypes.ts +0 -134
- package/src/tests/harness/fourslash/runner.ts +0 -99
- package/src/tests/harness/fourslash/testLanguageService.ts +0 -142
- package/src/tests/harness/fourslash/testState.Consts.ts +0 -29
- package/src/tests/harness/fourslash/testState.ts +0 -1993
- package/src/tests/harness/testAccessHost.ts +0 -23
- package/src/tests/harness/testHost.ts +0 -177
- package/src/tests/harness/utils.ts +0 -355
- package/src/tests/harness/vfs/factory.ts +0 -199
- package/src/tests/harness/vfs/filesystem.ts +0 -1893
- package/src/tests/harness/vfs/pathValidation.ts +0 -154
- package/src/tests/importAdder.test.ts +0 -1361
- package/src/tests/importResolver.test.ts +0 -534
- package/src/tests/importStatementUtils.test.ts +0 -526
- package/src/tests/indentationUtils.ptvs.test.ts +0 -388
- package/src/tests/indentationUtils.reindent.test.ts +0 -403
- package/src/tests/indentationUtils.test.ts +0 -455
- package/src/tests/ipythonMode.test.ts +0 -365
- package/src/tests/localizer.test.ts +0 -47
- package/src/tests/parseTreeUtils.test.ts +0 -281
- package/src/tests/parser.test.ts +0 -99
- package/src/tests/pathUtils.test.ts +0 -321
- package/src/tests/pyrightFileSystem.test.ts +0 -183
- package/src/tests/renameModule.folder.test.ts +0 -261
- package/src/tests/renameModule.fromImports.test.ts +0 -952
- package/src/tests/renameModule.imports.test.ts +0 -450
- package/src/tests/renameModule.misc.test.ts +0 -765
- package/src/tests/renameModule.relativePath.test.ts +0 -277
- package/src/tests/renameModuleTestUtils.ts +0 -210
- package/src/tests/samples/abstractClass1.py +0 -51
- package/src/tests/samples/abstractClass2.py +0 -25
- package/src/tests/samples/abstractClass3.py +0 -30
- package/src/tests/samples/abstractClass4.py +0 -30
- package/src/tests/samples/abstractClass5.py +0 -42
- package/src/tests/samples/abstractClass6.py +0 -25
- package/src/tests/samples/abstractClass7.py +0 -22
- package/src/tests/samples/abstractClass8.py +0 -27
- package/src/tests/samples/annotated1.py +0 -72
- package/src/tests/samples/annotatedVar1.py +0 -22
- package/src/tests/samples/annotatedVar2.py +0 -28
- package/src/tests/samples/annotatedVar3.py +0 -54
- package/src/tests/samples/annotatedVar4.py +0 -24
- package/src/tests/samples/annotatedVar5.py +0 -37
- package/src/tests/samples/annotatedVar6.py +0 -22
- package/src/tests/samples/annotatedVar7.py +0 -13
- package/src/tests/samples/annotatedVar8.py +0 -29
- package/src/tests/samples/annotations1.py +0 -98
- package/src/tests/samples/annotations2.py +0 -33
- package/src/tests/samples/annotations3.py +0 -43
- package/src/tests/samples/annotations4.py +0 -54
- package/src/tests/samples/annotations5.py +0 -9
- package/src/tests/samples/annotations6.py +0 -29
- package/src/tests/samples/assert1.py +0 -22
- package/src/tests/samples/assertType1.py +0 -46
- package/src/tests/samples/assignment1.py +0 -58
- package/src/tests/samples/assignment10.py +0 -14
- package/src/tests/samples/assignment2.py +0 -40
- package/src/tests/samples/assignment3.py +0 -46
- package/src/tests/samples/assignment4.py +0 -20
- package/src/tests/samples/assignment5.py +0 -16
- package/src/tests/samples/assignment6.py +0 -25
- package/src/tests/samples/assignment7.py +0 -13
- package/src/tests/samples/assignment8.py +0 -40
- package/src/tests/samples/assignment9.py +0 -25
- package/src/tests/samples/assignmentExpr1.py +0 -23
- package/src/tests/samples/assignmentExpr2.py +0 -49
- package/src/tests/samples/assignmentExpr3.py +0 -27
- package/src/tests/samples/assignmentExpr4.py +0 -49
- package/src/tests/samples/assignmentExpr5.py +0 -15
- package/src/tests/samples/assignmentExpr6.py +0 -10
- package/src/tests/samples/assignmentExpr7.py +0 -13
- package/src/tests/samples/assignmentExpr8.py +0 -11
- package/src/tests/samples/assignmentExpr9.py +0 -28
- package/src/tests/samples/async1.py +0 -49
- package/src/tests/samples/augmentedAssignment1.py +0 -62
- package/src/tests/samples/augmentedAssignment2.py +0 -23
- package/src/tests/samples/augmentedAssignment3.py +0 -8
- package/src/tests/samples/await1.py +0 -23
- package/src/tests/samples/await2.py +0 -25
- package/src/tests/samples/badToken1.py +0 -6
- package/src/tests/samples/builtins1.py +0 -2
- package/src/tests/samples/call1.py +0 -93
- package/src/tests/samples/call2.py +0 -118
- package/src/tests/samples/call3.py +0 -168
- package/src/tests/samples/call4.py +0 -13
- package/src/tests/samples/call5.py +0 -95
- package/src/tests/samples/call6.py +0 -35
- package/src/tests/samples/call7.py +0 -57
- package/src/tests/samples/callSite1.py +0 -6
- package/src/tests/samples/callSite2.py +0 -12
- package/src/tests/samples/callable1.py +0 -53
- package/src/tests/samples/callable2.py +0 -58
- package/src/tests/samples/callable3.py +0 -28
- package/src/tests/samples/callable4.py +0 -32
- package/src/tests/samples/callable5.py +0 -40
- package/src/tests/samples/callable6.py +0 -83
- package/src/tests/samples/callbackProtocol1.py +0 -119
- package/src/tests/samples/callbackProtocol2.py +0 -29
- package/src/tests/samples/callbackProtocol3.py +0 -23
- package/src/tests/samples/callbackProtocol4.py +0 -73
- package/src/tests/samples/callbackProtocol5.py +0 -66
- package/src/tests/samples/callbackProtocol6.py +0 -66
- package/src/tests/samples/callbackProtocol7.py +0 -16
- package/src/tests/samples/callbackProtocol8.py +0 -16
- package/src/tests/samples/capturedVariable1.py +0 -106
- package/src/tests/samples/circular1.py +0 -16
- package/src/tests/samples/circular2.py +0 -38
- package/src/tests/samples/circularBaseClass.py +0 -17
- package/src/tests/samples/classGetItem1.py +0 -30
- package/src/tests/samples/classVar1.py +0 -41
- package/src/tests/samples/classVar2.py +0 -29
- package/src/tests/samples/classVar3.py +0 -46
- package/src/tests/samples/classVar4.py +0 -36
- package/src/tests/samples/classes1.py +0 -50
- package/src/tests/samples/classes3.py +0 -48
- package/src/tests/samples/classes4.py +0 -15
- package/src/tests/samples/classes5.py +0 -260
- package/src/tests/samples/classes6.py +0 -16
- package/src/tests/samples/classes7.py +0 -18
- package/src/tests/samples/classes8.py +0 -47
- package/src/tests/samples/codeFlow1.py +0 -65
- package/src/tests/samples/codeFlow2.py +0 -26
- package/src/tests/samples/codeFlow3.py +0 -8
- package/src/tests/samples/codeFlow4.py +0 -133
- package/src/tests/samples/codeFlow5.py +0 -10
- package/src/tests/samples/codeFlow6.py +0 -35
- package/src/tests/samples/codeFlow7.py +0 -35
- package/src/tests/samples/comparison1.py +0 -77
- package/src/tests/samples/comparison2.py +0 -37
- package/src/tests/samples/complex1.py +0 -17
- package/src/tests/samples/constant1.py +0 -40
- package/src/tests/samples/constants1.py +0 -64
- package/src/tests/samples/constructor1.py +0 -30
- package/src/tests/samples/constructor10.py +0 -19
- package/src/tests/samples/constructor11.py +0 -32
- package/src/tests/samples/constructor12.py +0 -20
- package/src/tests/samples/constructor13.py +0 -15
- package/src/tests/samples/constructor2.py +0 -180
- package/src/tests/samples/constructor3.py +0 -18
- package/src/tests/samples/constructor4.py +0 -25
- package/src/tests/samples/constructor5.py +0 -25
- package/src/tests/samples/constructor6.py +0 -70
- package/src/tests/samples/constructor7.py +0 -11
- package/src/tests/samples/constructor8.py +0 -99
- package/src/tests/samples/constructor9.py +0 -19
- package/src/tests/samples/coroutines1.py +0 -60
- package/src/tests/samples/coroutines2.py +0 -20
- package/src/tests/samples/coroutines3.py +0 -37
- package/src/tests/samples/dataclass1.py +0 -44
- package/src/tests/samples/dataclass10.py +0 -45
- package/src/tests/samples/dataclass11.py +0 -53
- package/src/tests/samples/dataclass12.py +0 -32
- package/src/tests/samples/dataclass13.py +0 -42
- package/src/tests/samples/dataclass14.py +0 -38
- package/src/tests/samples/dataclass15.py +0 -58
- package/src/tests/samples/dataclass16.py +0 -21
- package/src/tests/samples/dataclass17.py +0 -46
- package/src/tests/samples/dataclass18.py +0 -57
- package/src/tests/samples/dataclass19.py +0 -44
- package/src/tests/samples/dataclass2.py +0 -30
- package/src/tests/samples/dataclass20.py +0 -71
- package/src/tests/samples/dataclass21.py +0 -13
- package/src/tests/samples/dataclass3.py +0 -18
- package/src/tests/samples/dataclass4.py +0 -64
- package/src/tests/samples/dataclass5.py +0 -81
- package/src/tests/samples/dataclass6.py +0 -29
- package/src/tests/samples/dataclass7.py +0 -93
- package/src/tests/samples/dataclass8.py +0 -22
- package/src/tests/samples/dataclass9.py +0 -24
- package/src/tests/samples/dataclassPostInit1.py +0 -61
- package/src/tests/samples/dataclassTransform1.py +0 -71
- package/src/tests/samples/dataclassTransform2.py +0 -78
- package/src/tests/samples/dataclassTransform3.py +0 -83
- package/src/tests/samples/dataclassTransform4.py +0 -87
- package/src/tests/samples/decorator1.py +0 -20
- package/src/tests/samples/decorator2.py +0 -31
- package/src/tests/samples/decorator3.py +0 -27
- package/src/tests/samples/decorator4.py +0 -37
- package/src/tests/samples/decorator5.py +0 -29
- package/src/tests/samples/decorator6.py +0 -34
- package/src/tests/samples/defaultInitializer1.py +0 -26
- package/src/tests/samples/deprecated1.py +0 -37
- package/src/tests/samples/descriptor1.py +0 -134
- package/src/tests/samples/descriptor2.py +0 -29
- package/src/tests/samples/dictionary1.py +0 -42
- package/src/tests/samples/dictionary2.py +0 -14
- package/src/tests/samples/dictionary3.py +0 -30
- package/src/tests/samples/dictionary4.py +0 -106
- package/src/tests/samples/dunderAll1.py +0 -32
- package/src/tests/samples/dunderAll2.py +0 -16
- package/src/tests/samples/dunderAll3.pyi +0 -16
- package/src/tests/samples/duplicateDeclaration1.py +0 -115
- package/src/tests/samples/duplicateDeclaration2.py +0 -45
- package/src/tests/samples/duplicateImports1.py +0 -13
- package/src/tests/samples/ellipsis1.pyi +0 -48
- package/src/tests/samples/emptyContainers1.py +0 -89
- package/src/tests/samples/enums1.py +0 -52
- package/src/tests/samples/enums2.py +0 -15
- package/src/tests/samples/enums3.py +0 -24
- package/src/tests/samples/enums4.py +0 -23
- package/src/tests/samples/enums5.py +0 -16
- package/src/tests/samples/enums6.py +0 -33
- package/src/tests/samples/enums7.py +0 -54
- package/src/tests/samples/enums8.py +0 -14
- package/src/tests/samples/expressions1.py +0 -54
- package/src/tests/samples/expressions2.py +0 -29
- package/src/tests/samples/expressions3.py +0 -26
- package/src/tests/samples/expressions4.py +0 -23
- package/src/tests/samples/expressions5.py +0 -70
- package/src/tests/samples/expressions6.py +0 -14
- package/src/tests/samples/expressions7.py +0 -40
- package/src/tests/samples/expressions8.py +0 -26
- package/src/tests/samples/expressions9.py +0 -14
- package/src/tests/samples/final1.py +0 -14
- package/src/tests/samples/final2.py +0 -86
- package/src/tests/samples/final3.py +0 -179
- package/src/tests/samples/final4.pyi +0 -21
- package/src/tests/samples/final5.py +0 -18
- package/src/tests/samples/forLoop1.py +0 -88
- package/src/tests/samples/forLoop2.py +0 -48
- package/src/tests/samples/fstring1.py +0 -66
- package/src/tests/samples/fstring2.py +0 -12
- package/src/tests/samples/fstring3.py +0 -35
- package/src/tests/samples/fstring4.py +0 -17
- package/src/tests/samples/fstring5.py +0 -17
- package/src/tests/samples/fstring6.py +0 -14
- package/src/tests/samples/function1.py +0 -12
- package/src/tests/samples/function10.py +0 -20
- package/src/tests/samples/function11.py +0 -36
- package/src/tests/samples/function2.py +0 -7
- package/src/tests/samples/function3.py +0 -82
- package/src/tests/samples/function4.py +0 -13
- package/src/tests/samples/function6.py +0 -24
- package/src/tests/samples/function7.py +0 -13
- package/src/tests/samples/function8.py +0 -38
- package/src/tests/samples/function9.py +0 -75
- package/src/tests/samples/functionAnnotation1.py +0 -61
- package/src/tests/samples/functionAnnotation2.py +0 -26
- package/src/tests/samples/functionAnnotation3.py +0 -37
- package/src/tests/samples/functionAnnotation4.py +0 -22
- package/src/tests/samples/functionMember1.py +0 -18
- package/src/tests/samples/functionMember2.py +0 -45
- package/src/tests/samples/generators1.py +0 -122
- package/src/tests/samples/generators10.py +0 -18
- package/src/tests/samples/generators11.py +0 -27
- package/src/tests/samples/generators12.py +0 -25
- package/src/tests/samples/generators13.py +0 -65
- package/src/tests/samples/generators14.py +0 -19
- package/src/tests/samples/generators15.py +0 -26
- package/src/tests/samples/generators2.py +0 -31
- package/src/tests/samples/generators3.py +0 -42
- package/src/tests/samples/generators4.py +0 -33
- package/src/tests/samples/generators5.py +0 -24
- package/src/tests/samples/generators6.py +0 -14
- package/src/tests/samples/generators7.py +0 -18
- package/src/tests/samples/generators8.py +0 -12
- package/src/tests/samples/generators9.py +0 -19
- package/src/tests/samples/generic1.py +0 -41
- package/src/tests/samples/genericTypes1.py +0 -12
- package/src/tests/samples/genericTypes10.py +0 -38
- package/src/tests/samples/genericTypes11.py +0 -26
- package/src/tests/samples/genericTypes12.py +0 -14
- package/src/tests/samples/genericTypes13.py +0 -27
- package/src/tests/samples/genericTypes14.py +0 -22
- package/src/tests/samples/genericTypes15.py +0 -13
- package/src/tests/samples/genericTypes16.py +0 -15
- package/src/tests/samples/genericTypes17.py +0 -24
- package/src/tests/samples/genericTypes18.py +0 -135
- package/src/tests/samples/genericTypes19.py +0 -32
- package/src/tests/samples/genericTypes2.py +0 -40
- package/src/tests/samples/genericTypes20.py +0 -44
- package/src/tests/samples/genericTypes21.py +0 -29
- package/src/tests/samples/genericTypes22.py +0 -23
- package/src/tests/samples/genericTypes23.py +0 -27
- package/src/tests/samples/genericTypes24.py +0 -32
- package/src/tests/samples/genericTypes25.py +0 -37
- package/src/tests/samples/genericTypes26.py +0 -31
- package/src/tests/samples/genericTypes27.py +0 -14
- package/src/tests/samples/genericTypes28.py +0 -51
- package/src/tests/samples/genericTypes29.py +0 -24
- package/src/tests/samples/genericTypes3.py +0 -13
- package/src/tests/samples/genericTypes30.py +0 -32
- package/src/tests/samples/genericTypes31.py +0 -30
- package/src/tests/samples/genericTypes32.py +0 -25
- package/src/tests/samples/genericTypes33.py +0 -46
- package/src/tests/samples/genericTypes34.py +0 -54
- package/src/tests/samples/genericTypes35.py +0 -45
- package/src/tests/samples/genericTypes36.py +0 -35
- package/src/tests/samples/genericTypes37.py +0 -26
- package/src/tests/samples/genericTypes38.py +0 -15
- package/src/tests/samples/genericTypes39.py +0 -82
- package/src/tests/samples/genericTypes4.py +0 -37
- package/src/tests/samples/genericTypes40.py +0 -38
- package/src/tests/samples/genericTypes41.py +0 -16
- package/src/tests/samples/genericTypes42.py +0 -32
- package/src/tests/samples/genericTypes43.py +0 -24
- package/src/tests/samples/genericTypes44.py +0 -33
- package/src/tests/samples/genericTypes45.py +0 -43
- package/src/tests/samples/genericTypes46.py +0 -66
- package/src/tests/samples/genericTypes47.py +0 -39
- package/src/tests/samples/genericTypes48.py +0 -18
- package/src/tests/samples/genericTypes49.py +0 -41
- package/src/tests/samples/genericTypes5.py +0 -42
- package/src/tests/samples/genericTypes50.py +0 -62
- package/src/tests/samples/genericTypes51.py +0 -55
- package/src/tests/samples/genericTypes52.py +0 -34
- package/src/tests/samples/genericTypes53.py +0 -42
- package/src/tests/samples/genericTypes54.py +0 -31
- package/src/tests/samples/genericTypes55.py +0 -61
- package/src/tests/samples/genericTypes56.py +0 -19
- package/src/tests/samples/genericTypes57.py +0 -30
- package/src/tests/samples/genericTypes58.py +0 -52
- package/src/tests/samples/genericTypes59.py +0 -71
- package/src/tests/samples/genericTypes6.py +0 -49
- package/src/tests/samples/genericTypes60.py +0 -27
- package/src/tests/samples/genericTypes61.py +0 -34
- package/src/tests/samples/genericTypes62.py +0 -26
- package/src/tests/samples/genericTypes63.py +0 -32
- package/src/tests/samples/genericTypes64.py +0 -16
- package/src/tests/samples/genericTypes65.py +0 -15
- package/src/tests/samples/genericTypes66.py +0 -30
- package/src/tests/samples/genericTypes67.py +0 -57
- package/src/tests/samples/genericTypes68.py +0 -14
- package/src/tests/samples/genericTypes69.py +0 -45
- package/src/tests/samples/genericTypes7.py +0 -24
- package/src/tests/samples/genericTypes70.py +0 -31
- package/src/tests/samples/genericTypes71.py +0 -72
- package/src/tests/samples/genericTypes72.py +0 -24
- package/src/tests/samples/genericTypes73.py +0 -14
- package/src/tests/samples/genericTypes74.py +0 -23
- package/src/tests/samples/genericTypes75.py +0 -45
- package/src/tests/samples/genericTypes76.py +0 -107
- package/src/tests/samples/genericTypes77.py +0 -26
- package/src/tests/samples/genericTypes78.py +0 -23
- package/src/tests/samples/genericTypes79.py +0 -37
- package/src/tests/samples/genericTypes8.py +0 -26
- package/src/tests/samples/genericTypes80.py +0 -10
- package/src/tests/samples/genericTypes81.py +0 -32
- package/src/tests/samples/genericTypes82.py +0 -19
- package/src/tests/samples/genericTypes83.py +0 -28
- package/src/tests/samples/genericTypes84.py +0 -11
- package/src/tests/samples/genericTypes85.py +0 -20
- package/src/tests/samples/genericTypes86.py +0 -15
- package/src/tests/samples/genericTypes87.py +0 -21
- package/src/tests/samples/genericTypes88.py +0 -25
- package/src/tests/samples/genericTypes89.py +0 -17
- package/src/tests/samples/genericTypes9.py +0 -109
- package/src/tests/samples/genericTypes90.py +0 -12
- package/src/tests/samples/genericTypes91.py +0 -20
- package/src/tests/samples/import1.py +0 -7
- package/src/tests/samples/import10.py +0 -11
- package/src/tests/samples/import11.py +0 -11
- package/src/tests/samples/import12.py +0 -5
- package/src/tests/samples/import13.py +0 -6
- package/src/tests/samples/import14.py +0 -10
- package/src/tests/samples/import2.py +0 -27
- package/src/tests/samples/import3.py +0 -8
- package/src/tests/samples/import4.py +0 -15
- package/src/tests/samples/import5.py +0 -6
- package/src/tests/samples/import6.py +0 -17
- package/src/tests/samples/import7.py +0 -14
- package/src/tests/samples/import8.py +0 -7
- package/src/tests/samples/import9.py +0 -7
- package/src/tests/samples/inconsistentConstructor1.py +0 -23
- package/src/tests/samples/inconsistentSpaceTab1.py +0 -9
- package/src/tests/samples/inconsistentSpaceTab2.py +0 -10
- package/src/tests/samples/index1.py +0 -97
- package/src/tests/samples/inferredTypes1.py +0 -25
- package/src/tests/samples/initVar1.py +0 -23
- package/src/tests/samples/initsubclass1.py +0 -46
- package/src/tests/samples/initsubclass2.py +0 -16
- package/src/tests/samples/isinstance1.py +0 -57
- package/src/tests/samples/isinstance10.py +0 -15
- package/src/tests/samples/isinstance2.py +0 -28
- package/src/tests/samples/isinstance3.py +0 -59
- package/src/tests/samples/isinstance4.py +0 -57
- package/src/tests/samples/isinstance5.py +0 -8
- package/src/tests/samples/isinstance6.py +0 -19
- package/src/tests/samples/isinstance7.py +0 -42
- package/src/tests/samples/isinstance9.py +0 -26
- package/src/tests/samples/kwargsUnpack1.py +0 -116
- package/src/tests/samples/lambda1.py +0 -77
- package/src/tests/samples/lambda2.py +0 -26
- package/src/tests/samples/lambda3.py +0 -34
- package/src/tests/samples/lambda4.py +0 -70
- package/src/tests/samples/lambda5.py +0 -23
- package/src/tests/samples/lambda6.py +0 -15
- package/src/tests/samples/lines1.py +0 -14
- package/src/tests/samples/list1.py +0 -90
- package/src/tests/samples/listComprehension1.py +0 -45
- package/src/tests/samples/listComprehension2.py +0 -17
- package/src/tests/samples/listComprehension3.py +0 -12
- package/src/tests/samples/listComprehension4.py +0 -15
- package/src/tests/samples/listComprehension5.py +0 -20
- package/src/tests/samples/listComprehension6.py +0 -14
- package/src/tests/samples/listComprehension7.py +0 -15
- package/src/tests/samples/listComprehension8.py +0 -15
- package/src/tests/samples/literalString1.py +0 -43
- package/src/tests/samples/literals1.py +0 -48
- package/src/tests/samples/literals2.py +0 -30
- package/src/tests/samples/literals3.py +0 -40
- package/src/tests/samples/literals4.py +0 -10
- package/src/tests/samples/literals5.py +0 -28
- package/src/tests/samples/literals6.py +0 -90
- package/src/tests/samples/literals7.py +0 -38
- package/src/tests/samples/loops1.py +0 -45
- package/src/tests/samples/loops10.py +0 -11
- package/src/tests/samples/loops11.py +0 -22
- package/src/tests/samples/loops12.py +0 -18
- package/src/tests/samples/loops13.py +0 -13
- package/src/tests/samples/loops14.py +0 -22
- package/src/tests/samples/loops15.py +0 -22
- package/src/tests/samples/loops16.py +0 -322
- package/src/tests/samples/loops17.py +0 -9
- package/src/tests/samples/loops18.py +0 -23
- package/src/tests/samples/loops19.py +0 -14
- package/src/tests/samples/loops2.py +0 -25
- package/src/tests/samples/loops20.py +0 -41
- package/src/tests/samples/loops21.py +0 -18
- package/src/tests/samples/loops22.py +0 -21
- package/src/tests/samples/loops23.py +0 -16
- package/src/tests/samples/loops24.py +0 -12
- package/src/tests/samples/loops25.py +0 -45
- package/src/tests/samples/loops26.py +0 -12
- package/src/tests/samples/loops3.py +0 -11
- package/src/tests/samples/loops4.py +0 -17
- package/src/tests/samples/loops5.py +0 -14
- package/src/tests/samples/loops6.py +0 -25
- package/src/tests/samples/loops7.py +0 -14
- package/src/tests/samples/loops8.py +0 -17
- package/src/tests/samples/loops9.py +0 -25
- package/src/tests/samples/match1.py +0 -190
- package/src/tests/samples/match10.py +0 -67
- package/src/tests/samples/match2.py +0 -340
- package/src/tests/samples/match3.py +0 -364
- package/src/tests/samples/match4.py +0 -100
- package/src/tests/samples/match5.py +0 -70
- package/src/tests/samples/match6.py +0 -64
- package/src/tests/samples/match7.py +0 -65
- package/src/tests/samples/match8.py +0 -19
- package/src/tests/samples/match9.py +0 -53
- package/src/tests/samples/maxParseDepth1.py +0 -499
- package/src/tests/samples/maxParseDepth2.py +0 -16
- package/src/tests/samples/memberAccess1.py +0 -70
- package/src/tests/samples/memberAccess10.py +0 -65
- package/src/tests/samples/memberAccess11.py +0 -37
- package/src/tests/samples/memberAccess12.py +0 -36
- package/src/tests/samples/memberAccess13.py +0 -17
- package/src/tests/samples/memberAccess14.py +0 -63
- package/src/tests/samples/memberAccess15.py +0 -20
- package/src/tests/samples/memberAccess16.py +0 -12
- package/src/tests/samples/memberAccess17.py +0 -31
- package/src/tests/samples/memberAccess18.py +0 -31
- package/src/tests/samples/memberAccess2.py +0 -45
- package/src/tests/samples/memberAccess3.py +0 -64
- package/src/tests/samples/memberAccess4.py +0 -91
- package/src/tests/samples/memberAccess5.py +0 -26
- package/src/tests/samples/memberAccess6.py +0 -52
- package/src/tests/samples/memberAccess7.py +0 -36
- package/src/tests/samples/memberAccess8.py +0 -75
- package/src/tests/samples/memberAccess9.py +0 -11
- package/src/tests/samples/metaclass1.py +0 -7
- package/src/tests/samples/metaclass2.py +0 -35
- package/src/tests/samples/metaclass3.py +0 -43
- package/src/tests/samples/metaclass4.py +0 -26
- package/src/tests/samples/metaclass5.py +0 -33
- package/src/tests/samples/metaclass6.py +0 -15
- package/src/tests/samples/metaclass7.py +0 -38
- package/src/tests/samples/metaclass8.py +0 -20
- package/src/tests/samples/metaclass9.py +0 -77
- package/src/tests/samples/methodOverride1.py +0 -507
- package/src/tests/samples/methodOverride2.py +0 -74
- package/src/tests/samples/methodOverride3.py +0 -111
- package/src/tests/samples/methodOverride4.py +0 -36
- package/src/tests/samples/missingSuper1.py +0 -73
- package/src/tests/samples/module1.py +0 -13
- package/src/tests/samples/module2.py +0 -7
- package/src/tests/samples/mro1.py +0 -16
- package/src/tests/samples/mro2.py +0 -45
- package/src/tests/samples/mro3.py +0 -30
- package/src/tests/samples/mro4.py +0 -30
- package/src/tests/samples/nameBindings1.py +0 -48
- package/src/tests/samples/nameBindings2.py +0 -9
- package/src/tests/samples/nameBindings3.py +0 -36
- package/src/tests/samples/nameBindings4.py +0 -10
- package/src/tests/samples/nameBindings5.py +0 -53
- package/src/tests/samples/namedTuples1.py +0 -103
- package/src/tests/samples/namedTuples2.py +0 -56
- package/src/tests/samples/namedTuples3.py +0 -15
- package/src/tests/samples/namedTuples4.py +0 -24
- package/src/tests/samples/namedTuples5.py +0 -15
- package/src/tests/samples/namedTuples6.py +0 -31
- package/src/tests/samples/namedTuples7.py +0 -27
- package/src/tests/samples/never1.py +0 -12
- package/src/tests/samples/never2.py +0 -43
- package/src/tests/samples/newType1.py +0 -34
- package/src/tests/samples/newType2.py +0 -25
- package/src/tests/samples/newType3.py +0 -34
- package/src/tests/samples/newType4.py +0 -8
- package/src/tests/samples/none1.py +0 -29
- package/src/tests/samples/none2.py +0 -22
- package/src/tests/samples/noreturn1.py +0 -78
- package/src/tests/samples/noreturn2.py +0 -37
- package/src/tests/samples/noreturn3.py +0 -16
- package/src/tests/samples/noreturn4.py +0 -29
- package/src/tests/samples/operators1.py +0 -101
- package/src/tests/samples/operators2.py +0 -30
- package/src/tests/samples/operators3.py +0 -8
- package/src/tests/samples/operators4.py +0 -22
- package/src/tests/samples/operators5.py +0 -5
- package/src/tests/samples/operators6.py +0 -10
- package/src/tests/samples/operators7.py +0 -24
- package/src/tests/samples/operators8.py +0 -125
- package/src/tests/samples/optional1.py +0 -77
- package/src/tests/samples/optional2.py +0 -23
- package/src/tests/samples/overload1.py +0 -50
- package/src/tests/samples/overload10.py +0 -48
- package/src/tests/samples/overload2.py +0 -37
- package/src/tests/samples/overload3.py +0 -29
- package/src/tests/samples/overload4.py +0 -46
- package/src/tests/samples/overload5.py +0 -333
- package/src/tests/samples/overload6.py +0 -64
- package/src/tests/samples/overload7.py +0 -376
- package/src/tests/samples/overload8.py +0 -89
- package/src/tests/samples/overload9.py +0 -19
- package/src/tests/samples/package1/__init__.py +0 -3
- package/src/tests/samples/package1/psyche/pysche.py +0 -4
- package/src/tests/samples/package1/psyche.py +0 -4
- package/src/tests/samples/package1/sub/__init__.py +0 -5
- package/src/tests/samples/package1/sub.py +0 -4
- package/src/tests/samples/package1/sub.pyi +0 -2
- package/src/tests/samples/paramInference1.py +0 -27
- package/src/tests/samples/paramNames1.py +0 -39
- package/src/tests/samples/paramSpec1.py +0 -64
- package/src/tests/samples/paramSpec10.py +0 -57
- package/src/tests/samples/paramSpec11.py +0 -36
- package/src/tests/samples/paramSpec12.py +0 -88
- package/src/tests/samples/paramSpec13.py +0 -112
- package/src/tests/samples/paramSpec14.py +0 -30
- package/src/tests/samples/paramSpec15.py +0 -28
- package/src/tests/samples/paramSpec16.py +0 -28
- package/src/tests/samples/paramSpec17.py +0 -34
- package/src/tests/samples/paramSpec18.py +0 -43
- package/src/tests/samples/paramSpec19.py +0 -93
- package/src/tests/samples/paramSpec2.py +0 -29
- package/src/tests/samples/paramSpec20.py +0 -87
- package/src/tests/samples/paramSpec21.py +0 -58
- package/src/tests/samples/paramSpec22.py +0 -26
- package/src/tests/samples/paramSpec23.py +0 -21
- package/src/tests/samples/paramSpec24.py +0 -67
- package/src/tests/samples/paramSpec25.py +0 -36
- package/src/tests/samples/paramSpec26.py +0 -25
- package/src/tests/samples/paramSpec27.py +0 -57
- package/src/tests/samples/paramSpec28.py +0 -39
- package/src/tests/samples/paramSpec29.py +0 -37
- package/src/tests/samples/paramSpec3.py +0 -71
- package/src/tests/samples/paramSpec30.py +0 -49
- package/src/tests/samples/paramSpec31.py +0 -16
- package/src/tests/samples/paramSpec32.py +0 -57
- package/src/tests/samples/paramSpec33.py +0 -29
- package/src/tests/samples/paramSpec34.py +0 -29
- package/src/tests/samples/paramSpec35.py +0 -24
- package/src/tests/samples/paramSpec36.py +0 -43
- package/src/tests/samples/paramSpec37.py +0 -25
- package/src/tests/samples/paramSpec4.py +0 -109
- package/src/tests/samples/paramSpec5.py +0 -29
- package/src/tests/samples/paramSpec6.py +0 -17
- package/src/tests/samples/paramSpec7.py +0 -22
- package/src/tests/samples/paramSpec8.py +0 -45
- package/src/tests/samples/paramSpec9.py +0 -57
- package/src/tests/samples/paramType1.py +0 -71
- package/src/tests/samples/parameters1.py +0 -16
- package/src/tests/samples/partial1.py +0 -163
- package/src/tests/samples/partial2.py +0 -31
- package/src/tests/samples/private1.py +0 -55
- package/src/tests/samples/private2.py +0 -11
- package/src/tests/samples/project1/pyrightconfig.json +0 -5
- package/src/tests/samples/project1/sample1.py +0 -0
- package/src/tests/samples/project1/subfolder1/sample2.py +0 -0
- package/src/tests/samples/project1/subfolder1/subfolder1-1/sample3.py +0 -0
- package/src/tests/samples/project2/pyrightconfig.json +0 -3
- package/src/tests/samples/project3/pyrightconfig.json +0 -7
- package/src/tests/samples/project4/presentfile.py +0 -0
- package/src/tests/samples/project4/pyrightconfig.json +0 -11
- package/src/tests/samples/project4/subfolder/presentfile2.py +0 -0
- package/src/tests/samples/project4/subfolder/presentfile3.py +0 -0
- package/src/tests/samples/project5/pyrightconfig.json +0 -4
- package/src/tests/samples/project6/app1.py +0 -0
- package/src/tests/samples/project6/app2.py +0 -0
- package/src/tests/samples/project6/projectA/foo/__init__.py +0 -0
- package/src/tests/samples/project6/projectA/foo/bar/__init__.py +0 -0
- package/src/tests/samples/project6/projectB/foo/__init__.py +0 -0
- package/src/tests/samples/project6/projectB/foo/baz/__init__.py +0 -0
- package/src/tests/samples/project_src/src/module1.py +0 -0
- package/src/tests/samples/project_src_is_pkg/src/__init__.py +0 -0
- package/src/tests/samples/project_src_is_pkg/src/module1.py +0 -0
- package/src/tests/samples/project_src_with_config_extra_paths/pyrightconfig.json +0 -3
- package/src/tests/samples/project_src_with_config_extra_paths/src/module1.py +0 -0
- package/src/tests/samples/project_src_with_config_no_extra_paths/pyrightconfig.json +0 -2
- package/src/tests/samples/project_src_with_config_no_extra_paths/src/module1.py +0 -0
- package/src/tests/samples/project_src_with_extra_paths/src/_vendored/vendored1.py +0 -1
- package/src/tests/samples/project_src_with_extra_paths/src/module1.py +0 -2
- package/src/tests/samples/project_with_pyproject_toml/pyproject.toml +0 -7
- package/src/tests/samples/project_with_venv_auto_detect_exclude/myvenv/Lib/site-packages/library1.py +0 -0
- package/src/tests/samples/project_with_venv_auto_detect_exclude/myvenv/pyvenv.cfg +0 -0
- package/src/tests/samples/project_with_venv_auto_detect_exclude/pyrightconfig.json +0 -2
- package/src/tests/samples/project_with_venv_auto_detect_exclude/sample1.py +0 -0
- package/src/tests/samples/project_with_venv_auto_detect_exclude/subfolder1/sample2.py +0 -0
- package/src/tests/samples/project_with_venv_auto_detect_exclude/subfolder1/subfolder1-1/sample3.py +0 -0
- package/src/tests/samples/project_with_venv_auto_detect_include/excluded/excluded1.py +0 -0
- package/src/tests/samples/project_with_venv_auto_detect_include/myvenv/Lib/site-packages/library1.py +0 -0
- package/src/tests/samples/project_with_venv_auto_detect_include/myvenv/pyvenv.cfg +0 -0
- package/src/tests/samples/project_with_venv_auto_detect_include/pyrightconfig.json +0 -3
- package/src/tests/samples/project_with_venv_auto_detect_include/sample1.py +0 -0
- package/src/tests/samples/project_with_venv_auto_detect_include/subfolder1/sample2.py +0 -0
- package/src/tests/samples/project_with_venv_auto_detect_include/subfolder1/subfolder1-1/sample3.py +0 -0
- package/src/tests/samples/properties1.py +0 -64
- package/src/tests/samples/properties10.py +0 -19
- package/src/tests/samples/properties11.py +0 -45
- package/src/tests/samples/properties12.py +0 -23
- package/src/tests/samples/properties13.py +0 -15
- package/src/tests/samples/properties2.py +0 -34
- package/src/tests/samples/properties3.py +0 -93
- package/src/tests/samples/properties4.py +0 -17
- package/src/tests/samples/properties5.py +0 -29
- package/src/tests/samples/properties6.py +0 -35
- package/src/tests/samples/properties7.py +0 -30
- package/src/tests/samples/properties8.py +0 -26
- package/src/tests/samples/properties9.py +0 -24
- package/src/tests/samples/protocol1.py +0 -132
- package/src/tests/samples/protocol10.py +0 -36
- package/src/tests/samples/protocol11.py +0 -32
- package/src/tests/samples/protocol12.py +0 -12
- package/src/tests/samples/protocol13.py +0 -26
- package/src/tests/samples/protocol14.py +0 -27
- package/src/tests/samples/protocol15.py +0 -27
- package/src/tests/samples/protocol16.py +0 -22
- package/src/tests/samples/protocol17.py +0 -94
- package/src/tests/samples/protocol18.py +0 -27
- package/src/tests/samples/protocol19.py +0 -39
- package/src/tests/samples/protocol2.py +0 -38
- package/src/tests/samples/protocol20.py +0 -22
- package/src/tests/samples/protocol21.py +0 -26
- package/src/tests/samples/protocol22.py +0 -43
- package/src/tests/samples/protocol23.py +0 -41
- package/src/tests/samples/protocol24.py +0 -74
- package/src/tests/samples/protocol25.py +0 -31
- package/src/tests/samples/protocol26.py +0 -40
- package/src/tests/samples/protocol27.py +0 -76
- package/src/tests/samples/protocol28.py +0 -32
- package/src/tests/samples/protocol29.py +0 -26
- package/src/tests/samples/protocol3.py +0 -110
- package/src/tests/samples/protocol30.py +0 -30
- package/src/tests/samples/protocol31.py +0 -22
- package/src/tests/samples/protocol32.py +0 -67
- package/src/tests/samples/protocol33.py +0 -39
- package/src/tests/samples/protocol34.py +0 -21
- package/src/tests/samples/protocol4.py +0 -22
- package/src/tests/samples/protocol5.py +0 -25
- package/src/tests/samples/protocol6.py +0 -65
- package/src/tests/samples/protocol7.py +0 -24
- package/src/tests/samples/protocol8.py +0 -34
- package/src/tests/samples/protocol9.py +0 -35
- package/src/tests/samples/protocolModule1.py +0 -15
- package/src/tests/samples/protocolModule2.py +0 -83
- package/src/tests/samples/protocolModule3.py +0 -14
- package/src/tests/samples/protocolModule4.py +0 -26
- package/src/tests/samples/pseudoGeneric1.py +0 -20
- package/src/tests/samples/pyrightIgnore1.py +0 -11
- package/src/tests/samples/pyrightIgnore2.py +0 -24
- package/src/tests/samples/python2.py +0 -31
- package/src/tests/samples/recursiveTypeAlias1.py +0 -79
- package/src/tests/samples/recursiveTypeAlias2.py +0 -32
- package/src/tests/samples/recursiveTypeAlias3.py +0 -26
- package/src/tests/samples/recursiveTypeAlias4.py +0 -55
- package/src/tests/samples/recursiveTypeAlias5.pyi +0 -10
- package/src/tests/samples/recursiveTypeAlias6.py +0 -25
- package/src/tests/samples/recursiveTypeAlias7.py +0 -15
- package/src/tests/samples/recursiveTypeAlias8.py +0 -38
- package/src/tests/samples/recursiveTypeAlias9.py +0 -22
- package/src/tests/samples/required1.py +0 -47
- package/src/tests/samples/required2.py +0 -56
- package/src/tests/samples/required3.py +0 -22
- package/src/tests/samples/returnTypes1.py +0 -26
- package/src/tests/samples/revealedType1.py +0 -30
- package/src/tests/samples/sample1.py +0 -6
- package/src/tests/samples/self1.py +0 -93
- package/src/tests/samples/self2.py +0 -195
- package/src/tests/samples/self3.py +0 -9
- package/src/tests/samples/self4.py +0 -18
- package/src/tests/samples/self5.py +0 -26
- package/src/tests/samples/setComprehension1.py +0 -34
- package/src/tests/samples/slots1.py +0 -63
- package/src/tests/samples/slots2.py +0 -38
- package/src/tests/samples/slots3.py +0 -35
- package/src/tests/samples/specialization1.py +0 -78
- package/src/tests/samples/specialization2.py +0 -51
- package/src/tests/samples/staticExpressions1.py +0 -52
- package/src/tests/samples/strings1.py +0 -22
- package/src/tests/samples/subscript1.py +0 -74
- package/src/tests/samples/subscript2.py +0 -55
- package/src/tests/samples/subscript3.py +0 -135
- package/src/tests/samples/suiteExpectedColon1.py +0 -4
- package/src/tests/samples/suiteExpectedColon2.py +0 -2
- package/src/tests/samples/suiteExpectedColon3.py +0 -2
- package/src/tests/samples/super1.py +0 -57
- package/src/tests/samples/super2.py +0 -29
- package/src/tests/samples/super3.py +0 -10
- package/src/tests/samples/super4.py +0 -24
- package/src/tests/samples/super5.py +0 -28
- package/src/tests/samples/super6.py +0 -17
- package/src/tests/samples/super7.py +0 -52
- package/src/tests/samples/super8.py +0 -7
- package/src/tests/samples/super9.py +0 -36
- package/src/tests/samples/test_file1.py +0 -0
- package/src/tests/samples/threePartVersion1.py +0 -33
- package/src/tests/samples/totalOrdering1.py +0 -52
- package/src/tests/samples/tryExcept1.py +0 -39
- package/src/tests/samples/tryExcept10.py +0 -12
- package/src/tests/samples/tryExcept2.py +0 -16
- package/src/tests/samples/tryExcept3.py +0 -12
- package/src/tests/samples/tryExcept4.py +0 -28
- package/src/tests/samples/tryExcept5.py +0 -30
- package/src/tests/samples/tryExcept6.py +0 -27
- package/src/tests/samples/tryExcept7.py +0 -17
- package/src/tests/samples/tryExcept8.py +0 -69
- package/src/tests/samples/tryExcept9.py +0 -42
- package/src/tests/samples/tupleUnpack1.py +0 -63
- package/src/tests/samples/tupleUnpack2.py +0 -56
- package/src/tests/samples/tupleUnpack3.py +0 -28
- package/src/tests/samples/tuples1.py +0 -185
- package/src/tests/samples/tuples10.py +0 -30
- package/src/tests/samples/tuples11.py +0 -21
- package/src/tests/samples/tuples12.py +0 -31
- package/src/tests/samples/tuples13.py +0 -26
- package/src/tests/samples/tuples15.py +0 -16
- package/src/tests/samples/tuples16.py +0 -14
- package/src/tests/samples/tuples2.py +0 -23
- package/src/tests/samples/tuples3.py +0 -15
- package/src/tests/samples/tuples4.py +0 -21
- package/src/tests/samples/tuples5.py +0 -16
- package/src/tests/samples/tuples6.py +0 -56
- package/src/tests/samples/tuples7.py +0 -61
- package/src/tests/samples/tuples8.py +0 -98
- package/src/tests/samples/tuples9.py +0 -17
- package/src/tests/samples/typeAlias1.py +0 -37
- package/src/tests/samples/typeAlias10.py +0 -45
- package/src/tests/samples/typeAlias11.py +0 -37
- package/src/tests/samples/typeAlias12.py +0 -20
- package/src/tests/samples/typeAlias13.py +0 -53
- package/src/tests/samples/typeAlias14.py +0 -29
- package/src/tests/samples/typeAlias15.py +0 -24
- package/src/tests/samples/typeAlias16.py +0 -24
- package/src/tests/samples/typeAlias2.py +0 -26
- package/src/tests/samples/typeAlias3.py +0 -35
- package/src/tests/samples/typeAlias4.py +0 -68
- package/src/tests/samples/typeAlias5.py +0 -56
- package/src/tests/samples/typeAlias6.py +0 -51
- package/src/tests/samples/typeAlias7.py +0 -50
- package/src/tests/samples/typeAlias8.py +0 -24
- package/src/tests/samples/typeAlias9.py +0 -35
- package/src/tests/samples/typeGuard1.py +0 -68
- package/src/tests/samples/typeGuard2.py +0 -58
- package/src/tests/samples/typeGuard3.py +0 -98
- package/src/tests/samples/typeIgnore1.py +0 -10
- package/src/tests/samples/typeIgnore2.py +0 -20
- package/src/tests/samples/typeIgnore3.py +0 -22
- package/src/tests/samples/typeIgnore4.py +0 -10
- package/src/tests/samples/typeIgnore5.py +0 -7
- package/src/tests/samples/typeNarrowing1.py +0 -56
- package/src/tests/samples/typeNarrowing2.py +0 -14
- package/src/tests/samples/typeNarrowing3.py +0 -47
- package/src/tests/samples/typeNarrowing4.py +0 -24
- package/src/tests/samples/typeNarrowing5.py +0 -19
- package/src/tests/samples/typeNarrowing6.py +0 -27
- package/src/tests/samples/typeNarrowing7.py +0 -71
- package/src/tests/samples/typeNarrowingAssert1.py +0 -24
- package/src/tests/samples/typeNarrowingCallable1.py +0 -78
- package/src/tests/samples/typeNarrowingEnum1.py +0 -58
- package/src/tests/samples/typeNarrowingEnum2.py +0 -71
- package/src/tests/samples/typeNarrowingFalsy1.py +0 -50
- package/src/tests/samples/typeNarrowingIn1.py +0 -97
- package/src/tests/samples/typeNarrowingIsNone1.py +0 -56
- package/src/tests/samples/typeNarrowingIsNone2.py +0 -8
- package/src/tests/samples/typeNarrowingIsNoneTuple1.py +0 -42
- package/src/tests/samples/typeNarrowingIsNoneTuple2.py +0 -35
- package/src/tests/samples/typeNarrowingIsinstance1.py +0 -162
- package/src/tests/samples/typeNarrowingIsinstance2.py +0 -14
- package/src/tests/samples/typeNarrowingIsinstance3.py +0 -78
- package/src/tests/samples/typeNarrowingIsinstance4.py +0 -50
- package/src/tests/samples/typeNarrowingIsinstance5.py +0 -39
- package/src/tests/samples/typeNarrowingIsinstance6.py +0 -77
- package/src/tests/samples/typeNarrowingIsinstance7.py +0 -19
- package/src/tests/samples/typeNarrowingIsinstance8.py +0 -19
- package/src/tests/samples/typeNarrowingLiteral1.py +0 -35
- package/src/tests/samples/typeNarrowingLiteral2.py +0 -63
- package/src/tests/samples/typeNarrowingLiteralMember1.py +0 -140
- package/src/tests/samples/typeNarrowingLocalConst1.py +0 -136
- package/src/tests/samples/typeNarrowingNoneMember1.py +0 -102
- package/src/tests/samples/typeNarrowingTuple1.py +0 -23
- package/src/tests/samples/typeNarrowingTupleLength1.py +0 -47
- package/src/tests/samples/typeNarrowingTypeIs1.py +0 -95
- package/src/tests/samples/typeNarrowingTypedDict1.py +0 -99
- package/src/tests/samples/typeNarrowingTypedDict2.py +0 -35
- package/src/tests/samples/typeNarrowingTypedDict3.py +0 -45
- package/src/tests/samples/typePromotions1.py +0 -30
- package/src/tests/samples/typeVar1.py +0 -23
- package/src/tests/samples/typeVar10.py +0 -21
- package/src/tests/samples/typeVar11.py +0 -12
- package/src/tests/samples/typeVar2.py +0 -26
- package/src/tests/samples/typeVar3.py +0 -73
- package/src/tests/samples/typeVar4.py +0 -45
- package/src/tests/samples/typeVar5.py +0 -75
- package/src/tests/samples/typeVar6.py +0 -115
- package/src/tests/samples/typeVar7.py +0 -171
- package/src/tests/samples/typeVar8.py +0 -30
- package/src/tests/samples/typeVar9.py +0 -118
- package/src/tests/samples/typedDict1.py +0 -63
- package/src/tests/samples/typedDict10.py +0 -34
- package/src/tests/samples/typedDict11.py +0 -12
- package/src/tests/samples/typedDict12.py +0 -103
- package/src/tests/samples/typedDict13.py +0 -14
- package/src/tests/samples/typedDict14.py +0 -25
- package/src/tests/samples/typedDict15.py +0 -53
- package/src/tests/samples/typedDict16.py +0 -103
- package/src/tests/samples/typedDict17.py +0 -24
- package/src/tests/samples/typedDict18.py +0 -43
- package/src/tests/samples/typedDict2.py +0 -56
- package/src/tests/samples/typedDict3.py +0 -40
- package/src/tests/samples/typedDict4.py +0 -68
- package/src/tests/samples/typedDict5.py +0 -50
- package/src/tests/samples/typedDict6.py +0 -77
- package/src/tests/samples/typedDict7.py +0 -22
- package/src/tests/samples/typedDict8.py +0 -19
- package/src/tests/samples/typedDict9.py +0 -22
- package/src/tests/samples/unbound1.py +0 -18
- package/src/tests/samples/unbound2.py +0 -12
- package/src/tests/samples/unbound3.py +0 -13
- package/src/tests/samples/unbound4.py +0 -25
- package/src/tests/samples/unicode1.py +0 -39
- package/src/tests/samples/uninitializedVariable1.py +0 -27
- package/src/tests/samples/unions1.py +0 -79
- package/src/tests/samples/unions2.py +0 -15
- package/src/tests/samples/unions3.py +0 -48
- package/src/tests/samples/unions4.py +0 -20
- package/src/tests/samples/unions5.py +0 -43
- package/src/tests/samples/unnecessaryCast1.py +0 -13
- package/src/tests/samples/unnecessaryIsInstance1.py +0 -91
- package/src/tests/samples/unnecessaryIsSubclass1.py +0 -22
- package/src/tests/samples/unpack1.py +0 -56
- package/src/tests/samples/unpack2.py +0 -27
- package/src/tests/samples/unpack3.py +0 -16
- package/src/tests/samples/unpack4.py +0 -15
- package/src/tests/samples/unreachable1.py +0 -112
- package/src/tests/samples/unusedCallResult1.py +0 -67
- package/src/tests/samples/unusedCoroutine1.py +0 -23
- package/src/tests/samples/unusedExpression1.py +0 -34
- package/src/tests/samples/unusedVariable1.py +0 -21
- package/src/tests/samples/variadicTypeVar1.py +0 -51
- package/src/tests/samples/variadicTypeVar10.py +0 -65
- package/src/tests/samples/variadicTypeVar11.py +0 -72
- package/src/tests/samples/variadicTypeVar12.py +0 -26
- package/src/tests/samples/variadicTypeVar13.py +0 -35
- package/src/tests/samples/variadicTypeVar14.py +0 -72
- package/src/tests/samples/variadicTypeVar2.py +0 -63
- package/src/tests/samples/variadicTypeVar3.py +0 -86
- package/src/tests/samples/variadicTypeVar4.py +0 -71
- package/src/tests/samples/variadicTypeVar5.py +0 -131
- package/src/tests/samples/variadicTypeVar6.py +0 -78
- package/src/tests/samples/variadicTypeVar7.py +0 -59
- package/src/tests/samples/variadicTypeVar8.py +0 -116
- package/src/tests/samples/variadicTypeVar9.py +0 -38
- package/src/tests/samples/with1.py +0 -117
- package/src/tests/samples/with2.py +0 -63
- package/src/tests/samples/with3.py +0 -66
- package/src/tests/samples/with4.py +0 -24
- package/src/tests/samples/with5.py +0 -33
- package/src/tests/samples/zipfs/bad.egg +0 -1
- package/src/tests/samples/zipfs/bad.zip +0 -1
- package/src/tests/samples/zipfs/basic.egg +0 -0
- package/src/tests/samples/zipfs/basic.zip +0 -0
- package/src/tests/samples/zipfs/corrupt.egg +0 -0
- package/src/tests/samples/zipfs/corrupt.zip +0 -0
- package/src/tests/sourceFile.test.ts +0 -25
- package/src/tests/stringUtils.test.ts +0 -63
- package/src/tests/symbolNameUtils.test.ts +0 -77
- package/src/tests/testState.test.ts +0 -579
- package/src/tests/testUtils.ts +0 -251
- package/src/tests/tokenizer.test.ts +0 -1534
- package/src/tests/typeEvaluator1.test.ts +0 -1372
- package/src/tests/typeEvaluator2.test.ts +0 -1253
- package/src/tests/typeEvaluator3.test.ts +0 -1279
- package/src/tests/typeEvaluator4.test.ts +0 -1178
- package/src/tests/updateSymbolReference.test.ts +0 -1107
- package/src/tests/zipfs.test.ts +0 -116
- package/src/workspaceMap.ts +0 -76
@@ -1,1272 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
* localize.ts
|
3
|
-
* Copyright (c) Microsoft Corporation.
|
4
|
-
* Licensed under the MIT license.
|
5
|
-
* Author: Eric Traut
|
6
|
-
*
|
7
|
-
* Code that localizes user-visible strings.
|
8
|
-
*/
|
9
|
-
|
10
|
-
import { fail } from '../common/debug';
|
11
|
-
|
12
|
-
import enUsStrings = require('./package.nls.en-us.json');
|
13
|
-
import deStrings = require('./package.nls.de.json');
|
14
|
-
import esStrings = require('./package.nls.es.json');
|
15
|
-
import frStrings = require('./package.nls.fr.json');
|
16
|
-
import jaStrings = require('./package.nls.ja.json');
|
17
|
-
import ruStrings = require('./package.nls.ru.json');
|
18
|
-
import zhCnStrings = require('./package.nls.zh-cn.json');
|
19
|
-
import zhTwStrings = require('./package.nls.zh-tw.json');
|
20
|
-
|
21
|
-
export class ParameterizedString<T extends {}> {
|
22
|
-
constructor(private _formatString: string) {}
|
23
|
-
|
24
|
-
format(params: T): string {
|
25
|
-
let str = this._formatString;
|
26
|
-
Object.keys(params).forEach((key) => {
|
27
|
-
str = str.replace(`{${key}}`, (params as any)[key].toString());
|
28
|
-
});
|
29
|
-
return str;
|
30
|
-
}
|
31
|
-
|
32
|
-
getFormatString() {
|
33
|
-
return this._formatString;
|
34
|
-
}
|
35
|
-
}
|
36
|
-
|
37
|
-
const defaultLocale = 'en-us';
|
38
|
-
const stringMapsByLocale: Map<string, any> = new Map([
|
39
|
-
['de', deStrings],
|
40
|
-
['en-us', enUsStrings],
|
41
|
-
['es', esStrings],
|
42
|
-
['fr', frStrings],
|
43
|
-
['ja', jaStrings],
|
44
|
-
['ru', ruStrings],
|
45
|
-
['zh-cn', zhCnStrings],
|
46
|
-
['zh-tw', zhTwStrings],
|
47
|
-
]);
|
48
|
-
|
49
|
-
type StringLookupMap = { [key: string]: string | StringLookupMap };
|
50
|
-
let localizedStrings: StringLookupMap | undefined = undefined;
|
51
|
-
let defaultStrings: StringLookupMap = {};
|
52
|
-
|
53
|
-
function getRawString(key: string): string {
|
54
|
-
if (localizedStrings === undefined) {
|
55
|
-
localizedStrings = initialize();
|
56
|
-
}
|
57
|
-
|
58
|
-
const keyParts = key.split('.');
|
59
|
-
|
60
|
-
const str = getRawStringFromMap(localizedStrings, keyParts) || getRawStringFromMap(defaultStrings, keyParts);
|
61
|
-
if (str) {
|
62
|
-
return str;
|
63
|
-
}
|
64
|
-
|
65
|
-
fail(`Missing localized string for key "${key}"`);
|
66
|
-
}
|
67
|
-
|
68
|
-
function getRawStringFromMap(map: StringLookupMap, keyParts: string[]): string | undefined {
|
69
|
-
let curObj: any = map;
|
70
|
-
|
71
|
-
for (const keyPart of keyParts) {
|
72
|
-
if (!curObj[keyPart]) {
|
73
|
-
return undefined;
|
74
|
-
}
|
75
|
-
|
76
|
-
curObj = curObj[keyPart];
|
77
|
-
}
|
78
|
-
|
79
|
-
return curObj as string;
|
80
|
-
}
|
81
|
-
|
82
|
-
function initialize(): StringLookupMap {
|
83
|
-
defaultStrings = loadDefaultStrings();
|
84
|
-
const currentLocale = getLocaleFromEnv();
|
85
|
-
return loadStringsForLocale(currentLocale);
|
86
|
-
}
|
87
|
-
|
88
|
-
declare let navigator: { language: string } | undefined;
|
89
|
-
|
90
|
-
let localeOverride: string | undefined;
|
91
|
-
|
92
|
-
export function setLocaleOverride(locale: string) {
|
93
|
-
localeOverride = locale.toLowerCase();
|
94
|
-
}
|
95
|
-
|
96
|
-
function getLocaleFromEnv() {
|
97
|
-
if (localeOverride) {
|
98
|
-
return localeOverride;
|
99
|
-
}
|
100
|
-
|
101
|
-
try {
|
102
|
-
if (navigator?.language) {
|
103
|
-
return navigator.language.toLowerCase();
|
104
|
-
}
|
105
|
-
} catch {
|
106
|
-
// Fall through
|
107
|
-
}
|
108
|
-
|
109
|
-
const env = process.env;
|
110
|
-
|
111
|
-
// Start with the VSCode environment variables.
|
112
|
-
const vscodeConfigString = env.VSCODE_NLS_CONFIG;
|
113
|
-
if (vscodeConfigString) {
|
114
|
-
try {
|
115
|
-
return JSON.parse(vscodeConfigString).locale;
|
116
|
-
} catch {
|
117
|
-
// Fall through
|
118
|
-
}
|
119
|
-
}
|
120
|
-
|
121
|
-
// See if there is a language env variable.
|
122
|
-
const localeString = env.LC_ALL || env.LC_MESSAGES || env.LANG || env.LANGUAGE;
|
123
|
-
if (localeString) {
|
124
|
-
// This string may contain a local followed by an encoding (e.g. "en-us.UTF-8").
|
125
|
-
const localeStringSplit = localeString.split('.');
|
126
|
-
if (localeStringSplit.length > 0 && localeStringSplit[0]) {
|
127
|
-
return localeStringSplit[0];
|
128
|
-
}
|
129
|
-
}
|
130
|
-
|
131
|
-
// Fall back to the default locale.
|
132
|
-
return defaultLocale;
|
133
|
-
}
|
134
|
-
|
135
|
-
function loadDefaultStrings(): StringLookupMap {
|
136
|
-
const defaultStrings = loadStringsFromJsonFile(defaultLocale);
|
137
|
-
if (defaultStrings) {
|
138
|
-
return defaultStrings;
|
139
|
-
}
|
140
|
-
console.error('Could not load default strings');
|
141
|
-
return {};
|
142
|
-
}
|
143
|
-
|
144
|
-
function loadStringsForLocale(locale: string): StringLookupMap {
|
145
|
-
if (locale === defaultLocale) {
|
146
|
-
// No need to load override if we're using the default.
|
147
|
-
return {};
|
148
|
-
}
|
149
|
-
|
150
|
-
let override = loadStringsFromJsonFile(locale);
|
151
|
-
if (override !== undefined) {
|
152
|
-
return override;
|
153
|
-
}
|
154
|
-
|
155
|
-
// If we couldn't find the requested locale, try to fall back on a more
|
156
|
-
// general version.
|
157
|
-
const localeSplit = locale.split('-');
|
158
|
-
if (localeSplit.length > 0 && localeSplit[0]) {
|
159
|
-
override = loadStringsFromJsonFile(localeSplit[0]);
|
160
|
-
if (override !== undefined) {
|
161
|
-
return override;
|
162
|
-
}
|
163
|
-
}
|
164
|
-
|
165
|
-
return {};
|
166
|
-
}
|
167
|
-
|
168
|
-
function loadStringsFromJsonFile(locale: string): StringLookupMap | undefined {
|
169
|
-
return stringMapsByLocale.get(locale);
|
170
|
-
}
|
171
|
-
|
172
|
-
export namespace Localizer {
|
173
|
-
export namespace Diagnostic {
|
174
|
-
export const annotatedParamCountMismatch = () =>
|
175
|
-
new ParameterizedString<{ expected: number; received: number }>(
|
176
|
-
getRawString('Diagnostic.annotatedParamCountMismatch')
|
177
|
-
);
|
178
|
-
export const annotatedTypeArgMissing = () => getRawString('Diagnostic.annotatedTypeArgMissing');
|
179
|
-
export const annotationFormatString = () => getRawString('Diagnostic.annotationFormatString');
|
180
|
-
export const annotationNotSupported = () => getRawString('Diagnostic.annotationNotSupported');
|
181
|
-
export const annotationSpansStrings = () => getRawString('Diagnostic.annotationSpansStrings');
|
182
|
-
export const annotationStringEscape = () => getRawString('Diagnostic.annotationStringEscape');
|
183
|
-
export const argAssignment = () =>
|
184
|
-
new ParameterizedString<{ argType: string; paramType: string }>(getRawString('Diagnostic.argAssignment'));
|
185
|
-
export const argAssignmentFunction = () =>
|
186
|
-
new ParameterizedString<{ argType: string; paramType: string; functionName: string }>(
|
187
|
-
getRawString('Diagnostic.argAssignmentFunction')
|
188
|
-
);
|
189
|
-
export const argAssignmentParam = () =>
|
190
|
-
new ParameterizedString<{ argType: string; paramType: string; paramName: string }>(
|
191
|
-
getRawString('Diagnostic.argAssignmentParam')
|
192
|
-
);
|
193
|
-
export const argAssignmentParamFunction = () =>
|
194
|
-
new ParameterizedString<{ argType: string; paramType: string; paramName: string; functionName: string }>(
|
195
|
-
getRawString('Diagnostic.argAssignmentParamFunction')
|
196
|
-
);
|
197
|
-
export const argMissingForParam = () =>
|
198
|
-
new ParameterizedString<{ name: string }>(getRawString('Diagnostic.argMissingForParam'));
|
199
|
-
export const argMissingForParams = () =>
|
200
|
-
new ParameterizedString<{ names: string }>(getRawString('Diagnostic.argMissingForParams'));
|
201
|
-
export const argMorePositionalExpectedCount = () =>
|
202
|
-
new ParameterizedString<{ expected: number }>(getRawString('Diagnostic.argMorePositionalExpectedCount'));
|
203
|
-
export const argMorePositionalExpectedOne = () => getRawString('Diagnostic.argMorePositionalExpectedOne');
|
204
|
-
export const argPositional = () => getRawString('Diagnostic.argPositional');
|
205
|
-
export const argPositionalExpectedCount = () =>
|
206
|
-
new ParameterizedString<{ expected: number }>(getRawString('Diagnostic.argPositionalExpectedCount'));
|
207
|
-
export const argPositionalExpectedOne = () => getRawString('Diagnostic.argPositionalExpectedOne');
|
208
|
-
export const argTypePartiallyUnknown = () => getRawString('Diagnostic.argTypePartiallyUnknown');
|
209
|
-
export const argTypeUnknown = () => getRawString('Diagnostic.argTypeUnknown');
|
210
|
-
export const assertAlwaysTrue = () => getRawString('Diagnostic.assertAlwaysTrue');
|
211
|
-
export const assertTypeArgs = () => getRawString('Diagnostic.assertTypeArgs');
|
212
|
-
export const assertTypeTypeMismatch = () =>
|
213
|
-
new ParameterizedString<{ expected: string; received: string }>(
|
214
|
-
getRawString('Diagnostic.assertTypeTypeMismatch')
|
215
|
-
);
|
216
|
-
export const assignmentExprContext = () => getRawString('Diagnostic.assignmentExprContext');
|
217
|
-
export const assignmentExprComprehension = () =>
|
218
|
-
new ParameterizedString<{ name: string }>(getRawString('Diagnostic.assignmentExprComprehension'));
|
219
|
-
export const assignmentExprInSubscript = () => getRawString('Diagnostic.assignmentExprInSubscript');
|
220
|
-
export const assignmentInProtocol = () => getRawString('Diagnostic.assignmentInProtocol');
|
221
|
-
export const assignmentTargetExpr = () => getRawString('Diagnostic.assignmentTargetExpr');
|
222
|
-
export const asyncNotInAsyncFunction = () => getRawString('Diagnostic.asyncNotInAsyncFunction');
|
223
|
-
export const awaitIllegal = () => getRawString('Diagnostic.awaitIllegal');
|
224
|
-
export const awaitNotInAsync = () => getRawString('Diagnostic.awaitNotInAsync');
|
225
|
-
export const backticksIllegal = () => getRawString('Diagnostic.backticksIllegal');
|
226
|
-
export const baseClassCircular = () => getRawString('Diagnostic.baseClassCircular');
|
227
|
-
export const baseClassInvalid = () => getRawString('Diagnostic.baseClassInvalid');
|
228
|
-
export const baseClassFinal = () =>
|
229
|
-
new ParameterizedString<{ type: string }>(getRawString('Diagnostic.baseClassFinal'));
|
230
|
-
export const baseClassMethodTypeIncompatible = () =>
|
231
|
-
new ParameterizedString<{ classType: string; name: string }>(
|
232
|
-
getRawString('Diagnostic.baseClassMethodTypeIncompatible')
|
233
|
-
);
|
234
|
-
export const baseClassVariableTypeIncompatible = () =>
|
235
|
-
new ParameterizedString<{ classType: string; name: string }>(
|
236
|
-
getRawString('Diagnostic.baseClassVariableTypeIncompatible')
|
237
|
-
);
|
238
|
-
export const baseClassUnknown = () => getRawString('Diagnostic.baseClassUnknown');
|
239
|
-
export const bindTypeMismatch = () =>
|
240
|
-
new ParameterizedString<{ type: string; methodName: string; paramName: string }>(
|
241
|
-
getRawString('Diagnostic.bindTypeMismatch')
|
242
|
-
);
|
243
|
-
export const breakOutsideLoop = () => getRawString('Diagnostic.breakOutsideLoop');
|
244
|
-
export const callableExtraArgs = () => getRawString('Diagnostic.callableExtraArgs');
|
245
|
-
export const callableFirstArg = () => getRawString('Diagnostic.callableFirstArg');
|
246
|
-
export const callableSecondArg = () => getRawString('Diagnostic.callableSecondArg');
|
247
|
-
export const casePatternIsIrrefutable = () => getRawString('Diagnostic.casePatternIsIrrefutable');
|
248
|
-
export const classAlreadySpecialized = () =>
|
249
|
-
new ParameterizedString<{ type: string }>(getRawString('Diagnostic.classAlreadySpecialized'));
|
250
|
-
export const classDecoratorTypeUnknown = () => getRawString('Diagnostic.classDecoratorTypeUnknown');
|
251
|
-
export const classDefinitionCycle = () =>
|
252
|
-
new ParameterizedString<{ name: string }>(getRawString('Diagnostic.classDefinitionCycle'));
|
253
|
-
export const classGetItemClsParam = () => getRawString('Diagnostic.classGetItemClsParam');
|
254
|
-
export const classMethodClsParam = () => getRawString('Diagnostic.classMethodClsParam');
|
255
|
-
export const classNotRuntimeSubscriptable = () =>
|
256
|
-
new ParameterizedString<{ name: string }>(getRawString('Diagnostic.classNotRuntimeSubscriptable'));
|
257
|
-
export const classPatternBuiltInArgCount = () => getRawString('Diagnostic.classPatternBuiltInArgCount');
|
258
|
-
export const classPatternBuiltInArgPositional = () =>
|
259
|
-
getRawString('Diagnostic.classPatternBuiltInArgPositional');
|
260
|
-
export const classPatternTypeAlias = () =>
|
261
|
-
new ParameterizedString<{ type: string }>(getRawString('Diagnostic.classPatternTypeAlias'));
|
262
|
-
export const classVarNotAllowed = () => getRawString('Diagnostic.classVarNotAllowed');
|
263
|
-
export const classVarFirstArgMissing = () => getRawString('Diagnostic.classVarFirstArgMissing');
|
264
|
-
export const classVarOverridesInstanceVar = () =>
|
265
|
-
new ParameterizedString<{ name: string; className: string }>(
|
266
|
-
getRawString('Diagnostic.classVarOverridesInstanceVar')
|
267
|
-
);
|
268
|
-
export const classVarTooManyArgs = () => getRawString('Diagnostic.classVarTooManyArgs');
|
269
|
-
export const classVarWithTypeVar = () => getRawString('Diagnostic.classVarWithTypeVar');
|
270
|
-
export const clsSelfParamTypeMismatch = () =>
|
271
|
-
new ParameterizedString<{ name: string; classType: string }>(
|
272
|
-
getRawString('Diagnostic.clsSelfParamTypeMismatch')
|
273
|
-
);
|
274
|
-
export const codeTooComplexToAnalyze = () => getRawString('Diagnostic.codeTooComplexToAnalyze');
|
275
|
-
export const comparisonAlwaysFalse = () =>
|
276
|
-
new ParameterizedString<{ leftType: string; rightType: string }>(
|
277
|
-
getRawString('Diagnostic.comparisonAlwaysFalse')
|
278
|
-
);
|
279
|
-
export const comparisonAlwaysTrue = () =>
|
280
|
-
new ParameterizedString<{ leftType: string; rightType: string }>(
|
281
|
-
getRawString('Diagnostic.comparisonAlwaysTrue')
|
282
|
-
);
|
283
|
-
export const comprehensionInDict = () => getRawString('Diagnostic.comprehensionInDict');
|
284
|
-
export const comprehensionInSet = () => getRawString('Diagnostic.comprehensionInSet');
|
285
|
-
export const concatenateParamSpecMissing = () => getRawString('Diagnostic.concatenateParamSpecMissing');
|
286
|
-
export const concatenateTypeArgsMissing = () => getRawString('Diagnostic.concatenateTypeArgsMissing');
|
287
|
-
export const constantRedefinition = () =>
|
288
|
-
new ParameterizedString<{ name: string }>(getRawString('Diagnostic.constantRedefinition'));
|
289
|
-
export const constructorNoArgs = () =>
|
290
|
-
new ParameterizedString<{ type: string }>(getRawString('Diagnostic.constructorNoArgs'));
|
291
|
-
export const constructorParametersMismatch = () =>
|
292
|
-
new ParameterizedString<{ classType: string }>(getRawString('Diagnostic.constructorParametersMismatch'));
|
293
|
-
export const continueInFinally = () => getRawString('Diagnostic.continueInFinally');
|
294
|
-
export const continueOutsideLoop = () => getRawString('Diagnostic.continueOutsideLoop');
|
295
|
-
export const dataClassBaseClassNotFrozen = () => getRawString('Diagnostic.dataClassBaseClassNotFrozen');
|
296
|
-
export const dataClassFieldWithDefault = () => getRawString('Diagnostic.dataClassFieldWithDefault');
|
297
|
-
export const dataClassFieldWithoutAnnotation = () => getRawString('Diagnostic.dataClassFieldWithoutAnnotation');
|
298
|
-
export const dataClassPostInitParamCount = () =>
|
299
|
-
new ParameterizedString<{ expected: number }>(getRawString('Diagnostic.dataClassPostInitParamCount'));
|
300
|
-
export const dataClassPostInitType = () =>
|
301
|
-
new ParameterizedString<{ fieldName: string }>(getRawString('Diagnostic.dataClassPostInitType'));
|
302
|
-
export const dataClassSlotsOverwrite = () => getRawString('Diagnostic.dataClassSlotsOverwrite');
|
303
|
-
export const dataClassTransformExpectedBoolLiteral = () =>
|
304
|
-
getRawString('Diagnostic.dataClassTransformExpectedBoolLiteral');
|
305
|
-
export const dataClassTransformFieldSpecifier = () =>
|
306
|
-
new ParameterizedString<{ type: string }>(getRawString('Diagnostic.dataClassTransformFieldSpecifier'));
|
307
|
-
export const dataClassTransformPositionalParam = () =>
|
308
|
-
getRawString('Diagnostic.dataClassTransformPositionalParam');
|
309
|
-
export const dataClassTransformUnknownArgument = () =>
|
310
|
-
new ParameterizedString<{ name: string }>(getRawString('Diagnostic.dataClassTransformUnknownArgument'));
|
311
|
-
export const declaredReturnTypePartiallyUnknown = () =>
|
312
|
-
new ParameterizedString<{ returnType: string }>(
|
313
|
-
getRawString('Diagnostic.declaredReturnTypePartiallyUnknown')
|
314
|
-
);
|
315
|
-
export const declaredReturnTypeUnknown = () => getRawString('Diagnostic.declaredReturnTypeUnknown');
|
316
|
-
export const defaultValueContainsCall = () => getRawString('Diagnostic.defaultValueContainsCall');
|
317
|
-
export const defaultValueNotAllowed = () => getRawString('Diagnostic.defaultValueNotAllowed');
|
318
|
-
export const defaultValueNotEllipsis = () => getRawString('Diagnostic.defaultValueNotEllipsis');
|
319
|
-
export const deprecatedType = () =>
|
320
|
-
new ParameterizedString<{ version: string; replacement: string }>(
|
321
|
-
getRawString('Diagnostic.deprecatedType')
|
322
|
-
);
|
323
|
-
export const dictExpandIllegalInComprehension = () =>
|
324
|
-
getRawString('Diagnostic.dictExpandIllegalInComprehension');
|
325
|
-
export const dictInAnnotation = () => getRawString('Diagnostic.dictInAnnotation');
|
326
|
-
export const dictKeyValuePairs = () => getRawString('Diagnostic.dictKeyValuePairs');
|
327
|
-
export const dictUnpackIsNotMapping = () => getRawString('Diagnostic.dictUnpackIsNotMapping');
|
328
|
-
export const delTargetExpr = () => getRawString('Diagnostic.delTargetExpr');
|
329
|
-
export const dunderAllSymbolNotPresent = () =>
|
330
|
-
new ParameterizedString<{ name: string }>(getRawString('Diagnostic.dunderAllSymbolNotPresent'));
|
331
|
-
export const duplicateArgsParam = () => getRawString('Diagnostic.duplicateArgsParam');
|
332
|
-
export const duplicateBaseClass = () => getRawString('Diagnostic.duplicateBaseClass');
|
333
|
-
export const duplicateCatchAll = () => getRawString('Diagnostic.duplicateCatchAll');
|
334
|
-
export const duplicateEnumMember = () =>
|
335
|
-
new ParameterizedString<{ name: string }>(getRawString('Diagnostic.duplicateEnumMember'));
|
336
|
-
export const duplicateGenericAndProtocolBase = () => getRawString('Diagnostic.duplicateGenericAndProtocolBase');
|
337
|
-
export const duplicateImport = () =>
|
338
|
-
new ParameterizedString<{ importName: string }>(getRawString('Diagnostic.duplicateImport'));
|
339
|
-
export const duplicateKwargsParam = () => getRawString('Diagnostic.duplicateKwargsParam');
|
340
|
-
export const duplicateKeywordOnly = () => getRawString('Diagnostic.duplicateKeywordOnly');
|
341
|
-
export const duplicateParam = () =>
|
342
|
-
new ParameterizedString<{ name: string }>(getRawString('Diagnostic.duplicateParam'));
|
343
|
-
export const duplicateCapturePatternTarget = () =>
|
344
|
-
new ParameterizedString<{ name: string }>(getRawString('Diagnostic.duplicateCapturePatternTarget'));
|
345
|
-
export const duplicateStarPattern = () => getRawString('Diagnostic.duplicateStarPattern');
|
346
|
-
export const duplicateStarStarPattern = () => getRawString('Diagnostic.duplicateStarStarPattern');
|
347
|
-
export const duplicatePositionOnly = () => getRawString('Diagnostic.duplicatePositionOnly');
|
348
|
-
export const duplicateUnpack = () => getRawString('Diagnostic.duplicateUnpack');
|
349
|
-
export const ellipsisContext = () => getRawString('Diagnostic.ellipsisContext');
|
350
|
-
export const ellipsisSecondArg = () => getRawString('Diagnostic.ellipsisSecondArg');
|
351
|
-
export const enumClassOverride = () =>
|
352
|
-
new ParameterizedString<{ name: string }>(getRawString('Diagnostic.enumClassOverride'));
|
353
|
-
export const exceptionGroupIncompatible = () => getRawString('Diagnostic.exceptionGroupIncompatible');
|
354
|
-
export const exceptionTypeIncorrect = () =>
|
355
|
-
new ParameterizedString<{ type: string }>(getRawString('Diagnostic.exceptionTypeIncorrect'));
|
356
|
-
export const exceptionTypeNotClass = () =>
|
357
|
-
new ParameterizedString<{ type: string }>(getRawString('Diagnostic.exceptionTypeNotClass'));
|
358
|
-
export const exceptionTypeNotInstantiable = () =>
|
359
|
-
new ParameterizedString<{ type: string }>(getRawString('Diagnostic.exceptionTypeNotInstantiable'));
|
360
|
-
export const expectedAfterDecorator = () => getRawString('Diagnostic.expectedAfterDecorator');
|
361
|
-
export const expectedArrow = () => getRawString('Diagnostic.expectedArrow');
|
362
|
-
export const expectedAsAfterException = () => getRawString('Diagnostic.expectedAsAfterException');
|
363
|
-
export const expectedAssignRightHandExpr = () => getRawString('Diagnostic.expectedAssignRightHandExpr');
|
364
|
-
export const expectedBinaryRightHandExpr = () => getRawString('Diagnostic.expectedBinaryRightHandExpr');
|
365
|
-
export const expectedBoolLiteral = () => getRawString('Diagnostic.expectedBoolLiteral');
|
366
|
-
export const expectedCase = () => getRawString('Diagnostic.expectedCase');
|
367
|
-
export const expectedClassName = () => getRawString('Diagnostic.expectedClassName');
|
368
|
-
export const expectedCloseBrace = () => getRawString('Diagnostic.expectedCloseBrace');
|
369
|
-
export const expectedCloseBracket = () => getRawString('Diagnostic.expectedCloseBracket');
|
370
|
-
export const expectedCloseParen = () => getRawString('Diagnostic.expectedCloseParen');
|
371
|
-
export const expectedColon = () => getRawString('Diagnostic.expectedColon');
|
372
|
-
export const expectedComplexNumberLiteral = () => getRawString('Diagnostic.expectedComplexNumberLiteral');
|
373
|
-
export const expectedDecoratorExpr = () => getRawString('Diagnostic.expectedDecoratorExpr');
|
374
|
-
export const expectedDecoratorName = () => getRawString('Diagnostic.expectedDecoratorName');
|
375
|
-
export const expectedDecoratorNewline = () => getRawString('Diagnostic.expectedDecoratorNewline');
|
376
|
-
export const expectedDelExpr = () => getRawString('Diagnostic.expectedDelExpr');
|
377
|
-
export const expectedElse = () => getRawString('Diagnostic.expectedElse');
|
378
|
-
export const expectedExceptionClass = () => getRawString('Diagnostic.expectedExceptionClass');
|
379
|
-
export const expectedExceptionObj = () => getRawString('Diagnostic.expectedExceptionObj');
|
380
|
-
export const expectedExpr = () => getRawString('Diagnostic.expectedExpr');
|
381
|
-
export const expectedImport = () => getRawString('Diagnostic.expectedImport');
|
382
|
-
export const expectedImportAlias = () => getRawString('Diagnostic.expectedImportAlias');
|
383
|
-
export const expectedImportSymbols = () => getRawString('Diagnostic.expectedImportSymbols');
|
384
|
-
export const expectedIdentifier = () => getRawString('Diagnostic.expectedIdentifier');
|
385
|
-
export const expectedIndentedBlock = () => getRawString('Diagnostic.expectedIndentedBlock');
|
386
|
-
export const expectedIn = () => getRawString('Diagnostic.expectedIn');
|
387
|
-
export const expectedInExpr = () => getRawString('Diagnostic.expectedInExpr');
|
388
|
-
export const expectedFunctionAfterAsync = () => getRawString('Diagnostic.expectedFunctionAfterAsync');
|
389
|
-
export const expectedFunctionName = () => getRawString('Diagnostic.expectedFunctionName');
|
390
|
-
export const expectedMemberName = () => getRawString('Diagnostic.expectedMemberName');
|
391
|
-
export const expectedModuleName = () => getRawString('Diagnostic.expectedModuleName');
|
392
|
-
export const expectedNameAfterAs = () => getRawString('Diagnostic.expectedNameAfterAs');
|
393
|
-
export const expectedNamedParameter = () => getRawString('Diagnostic.expectedNamedParameter');
|
394
|
-
export const expectedNewline = () => getRawString('Diagnostic.expectedNewline');
|
395
|
-
export const expectedNewlineOrSemicolon = () => getRawString('Diagnostic.expectedNewlineOrSemicolon');
|
396
|
-
export const expectedOpenParen = () => getRawString('Diagnostic.expectedOpenParen');
|
397
|
-
export const expectedParamName = () => getRawString('Diagnostic.expectedParamName');
|
398
|
-
export const expectedPatternExpr = () => getRawString('Diagnostic.expectedPatternExpr');
|
399
|
-
export const expectedPatternSubjectExpr = () => getRawString('Diagnostic.expectedPatternSubjectExpr');
|
400
|
-
export const expectedPatternValue = () => getRawString('Diagnostic.expectedPatternValue');
|
401
|
-
export const expectedReturnExpr = () => getRawString('Diagnostic.expectedReturnExpr');
|
402
|
-
export const expectedSliceIndex = () => getRawString('Diagnostic.expectedSliceIndex');
|
403
|
-
export const expectedTypeNotString = () => getRawString('Diagnostic.expectedTypeNotString');
|
404
|
-
export const expectedYieldExpr = () => getRawString('Diagnostic.expectedYieldExpr');
|
405
|
-
export const finalClassIsAbstract = () =>
|
406
|
-
new ParameterizedString<{ type: string }>(getRawString('Diagnostic.finalClassIsAbstract'));
|
407
|
-
export const finalContext = () => getRawString('Diagnostic.finalContext');
|
408
|
-
export const finalMethodOverride = () =>
|
409
|
-
new ParameterizedString<{ name: string; className: string }>(
|
410
|
-
getRawString('Diagnostic.finalMethodOverride')
|
411
|
-
);
|
412
|
-
export const finalReassigned = () =>
|
413
|
-
new ParameterizedString<{ name: string }>(getRawString('Diagnostic.finalReassigned'));
|
414
|
-
export const finalRedeclaration = () =>
|
415
|
-
new ParameterizedString<{ name: string }>(getRawString('Diagnostic.finalRedeclaration'));
|
416
|
-
export const finalRedeclarationBySubclass = () =>
|
417
|
-
new ParameterizedString<{ name: string; className: string }>(
|
418
|
-
getRawString('Diagnostic.finalRedeclarationBySubclass')
|
419
|
-
);
|
420
|
-
export const finalTooManyArgs = () => getRawString('Diagnostic.finalTooManyArgs');
|
421
|
-
export const finalUnassigned = () =>
|
422
|
-
new ParameterizedString<{ name: string }>(getRawString('Diagnostic.finalUnassigned'));
|
423
|
-
export const formatStringBrace = () => getRawString('Diagnostic.formatStringBrace');
|
424
|
-
export const formatStringBytes = () => getRawString('Diagnostic.formatStringBytes');
|
425
|
-
export const formatStringEscape = () => getRawString('Diagnostic.formatStringEscape');
|
426
|
-
export const formatStringInPattern = () => getRawString('Diagnostic.formatStringInPattern');
|
427
|
-
export const formatStringIllegal = () => getRawString('Diagnostic.formatStringIllegal');
|
428
|
-
export const formatStringUnicode = () => getRawString('Diagnostic.formatStringUnicode');
|
429
|
-
export const formatStringUnterminated = () => getRawString('Diagnostic.formatStringUnterminated');
|
430
|
-
export const functionDecoratorTypeUnknown = () => getRawString('Diagnostic.functionDecoratorTypeUnknown');
|
431
|
-
export const functionInConditionalExpression = () => getRawString('Diagnostic.functionInConditionalExpression');
|
432
|
-
export const generatorAsyncReturnType = () => getRawString('Diagnostic.generatorAsyncReturnType');
|
433
|
-
export const generatorNotParenthesized = () => getRawString('Diagnostic.generatorNotParenthesized');
|
434
|
-
export const generatorSyncReturnType = () => getRawString('Diagnostic.generatorSyncReturnType');
|
435
|
-
export const genericClassAssigned = () => getRawString('Diagnostic.genericClassAssigned');
|
436
|
-
export const genericClassDeleted = () => getRawString('Diagnostic.genericClassDeleted');
|
437
|
-
export const genericNotAllowed = () => getRawString('Diagnostic.genericNotAllowed');
|
438
|
-
export const genericTypeAliasBoundTypeVar = () =>
|
439
|
-
new ParameterizedString<{ names: string }>(getRawString('Diagnostic.genericTypeAliasBoundTypeVar'));
|
440
|
-
export const genericTypeArgMissing = () => getRawString('Diagnostic.genericTypeArgMissing');
|
441
|
-
export const genericTypeArgTypeVar = () => getRawString('Diagnostic.genericTypeArgTypeVar');
|
442
|
-
export const genericTypeArgUnique = () => getRawString('Diagnostic.genericTypeArgUnique');
|
443
|
-
export const globalReassignment = () =>
|
444
|
-
new ParameterizedString<{ name: string }>(getRawString('Diagnostic.globalReassignment'));
|
445
|
-
export const globalRedefinition = () =>
|
446
|
-
new ParameterizedString<{ name: string }>(getRawString('Diagnostic.globalRedefinition'));
|
447
|
-
export const implicitStringConcat = () => getRawString('Diagnostic.implicitStringConcat');
|
448
|
-
export const importCycleDetected = () => getRawString('Diagnostic.importCycleDetected');
|
449
|
-
export const importDepthExceeded = () =>
|
450
|
-
new ParameterizedString<{ depth: number }>(getRawString('Diagnostic.importDepthExceeded'));
|
451
|
-
export const importResolveFailure = () =>
|
452
|
-
new ParameterizedString<{ importName: string }>(getRawString('Diagnostic.importResolveFailure'));
|
453
|
-
export const importSourceResolveFailure = () =>
|
454
|
-
new ParameterizedString<{ importName: string }>(getRawString('Diagnostic.importSourceResolveFailure'));
|
455
|
-
export const importSymbolUnknown = () =>
|
456
|
-
new ParameterizedString<{ name: string }>(getRawString('Diagnostic.importSymbolUnknown'));
|
457
|
-
export const incompatibleMethodOverride = () =>
|
458
|
-
new ParameterizedString<{ name: string; className: string }>(
|
459
|
-
getRawString('Diagnostic.incompatibleMethodOverride')
|
460
|
-
);
|
461
|
-
export const inconsistentIndent = () => getRawString('Diagnostic.inconsistentIndent');
|
462
|
-
export const inconsistentTabs = () => getRawString('Diagnostic.inconsistentTabs');
|
463
|
-
export const initMustReturnNone = () => getRawString('Diagnostic.initMustReturnNone');
|
464
|
-
export const initSubclassClsParam = () => getRawString('Diagnostic.initSubclassClsParam');
|
465
|
-
export const instanceMethodSelfParam = () => getRawString('Diagnostic.instanceMethodSelfParam');
|
466
|
-
export const instanceVarOverridesClassVar = () =>
|
467
|
-
new ParameterizedString<{ name: string; className: string }>(
|
468
|
-
getRawString('Diagnostic.instanceVarOverridesClassVar')
|
469
|
-
);
|
470
|
-
export const instantiateAbstract = () =>
|
471
|
-
new ParameterizedString<{ type: string }>(getRawString('Diagnostic.instantiateAbstract'));
|
472
|
-
export const instantiateProtocol = () =>
|
473
|
-
new ParameterizedString<{ type: string }>(getRawString('Diagnostic.instantiateProtocol'));
|
474
|
-
export const internalBindError = () =>
|
475
|
-
new ParameterizedString<{ file: string; message: string }>(getRawString('Diagnostic.internalBindError'));
|
476
|
-
export const internalParseError = () =>
|
477
|
-
new ParameterizedString<{ file: string; message: string }>(getRawString('Diagnostic.internalParseError'));
|
478
|
-
export const internalTypeCheckingError = () =>
|
479
|
-
new ParameterizedString<{ file: string; message: string }>(
|
480
|
-
getRawString('Diagnostic.internalTypeCheckingError')
|
481
|
-
);
|
482
|
-
export const invalidIdentifierChar = () => getRawString('Diagnostic.invalidIdentifierChar');
|
483
|
-
export const invalidStubStatement = () => getRawString('Diagnostic.invalidStubStatement');
|
484
|
-
export const invalidTokenChars = () =>
|
485
|
-
new ParameterizedString<{ text: string }>(getRawString('Diagnostic.invalidTokenChars'));
|
486
|
-
export const isInstanceInvalidType = () =>
|
487
|
-
new ParameterizedString<{ type: string }>(getRawString('Diagnostic.isInstanceInvalidType'));
|
488
|
-
export const isSubclassInvalidType = () =>
|
489
|
-
new ParameterizedString<{ type: string }>(getRawString('Diagnostic.isSubclassInvalidType'));
|
490
|
-
export const keyValueInSet = () => getRawString('Diagnostic.keyValueInSet');
|
491
|
-
export const keywordArgInTypeArgument = () => getRawString('Diagnostic.keywordArgInTypeArgument');
|
492
|
-
export const keywordOnlyAfterArgs = () => getRawString('Diagnostic.keywordOnlyAfterArgs');
|
493
|
-
export const keywordSubscriptIllegal = () => getRawString('Diagnostic.keywordSubscriptIllegal');
|
494
|
-
export const lambdaReturnTypeUnknown = () => getRawString('Diagnostic.lambdaReturnTypeUnknown');
|
495
|
-
export const lambdaReturnTypePartiallyUnknown = () =>
|
496
|
-
new ParameterizedString<{ returnType: string }>(
|
497
|
-
getRawString('Diagnostic.lambdaReturnTypePartiallyUnknown')
|
498
|
-
);
|
499
|
-
export const listAssignmentMismatch = () =>
|
500
|
-
new ParameterizedString<{ type: string }>(getRawString('Diagnostic.listAssignmentMismatch'));
|
501
|
-
export const listInAnnotation = () => getRawString('Diagnostic.listInAnnotation');
|
502
|
-
export const literalUnsupportedType = () => getRawString('Diagnostic.literalUnsupportedType');
|
503
|
-
export const literalEmptyArgs = () => getRawString('Diagnostic.literalEmptyArgs');
|
504
|
-
export const literalNotCallable = () => getRawString('Diagnostic.literalNotCallable');
|
505
|
-
export const matchIncompatible = () => getRawString('Diagnostic.matchIncompatible');
|
506
|
-
export const matchIsNotExhaustive = () => getRawString('Diagnostic.matchIsNotExhaustive');
|
507
|
-
export const maxParseDepthExceeded = () => getRawString('Diagnostic.maxParseDepthExceeded');
|
508
|
-
export const memberAccess = () =>
|
509
|
-
new ParameterizedString<{ name: string; type: string }>(getRawString('Diagnostic.memberAccess'));
|
510
|
-
export const memberDelete = () =>
|
511
|
-
new ParameterizedString<{ name: string; type: string }>(getRawString('Diagnostic.memberDelete'));
|
512
|
-
export const memberSet = () =>
|
513
|
-
new ParameterizedString<{ name: string; type: string }>(getRawString('Diagnostic.memberSet'));
|
514
|
-
export const metaclassConflict = () => getRawString('Diagnostic.metaclassConflict');
|
515
|
-
export const metaclassDuplicate = () => getRawString('Diagnostic.metaclassDuplicate');
|
516
|
-
export const metaclassIsGeneric = () => getRawString('Diagnostic.metaclassIsGeneric');
|
517
|
-
export const methodNotDefined = () =>
|
518
|
-
new ParameterizedString<{ name: string }>(getRawString('Diagnostic.methodNotDefined'));
|
519
|
-
export const methodNotDefinedOnType = () =>
|
520
|
-
new ParameterizedString<{ name: string; type: string }>(getRawString('Diagnostic.methodNotDefinedOnType'));
|
521
|
-
export const methodOrdering = () => getRawString('Diagnostic.methodOrdering');
|
522
|
-
export const methodOverridden = () =>
|
523
|
-
new ParameterizedString<{ name: string; className: string; type: string }>(
|
524
|
-
getRawString('Diagnostic.methodOverridden')
|
525
|
-
);
|
526
|
-
export const methodReturnsNonObject = () =>
|
527
|
-
new ParameterizedString<{ name: string }>(getRawString('Diagnostic.methodReturnsNonObject'));
|
528
|
-
export const missingProtocolMembers = () => getRawString('Diagnostic.missingProtocolMembers');
|
529
|
-
export const missingSuperCall = () =>
|
530
|
-
new ParameterizedString<{ methodName: string }>(getRawString('Diagnostic.missingSuperCall'));
|
531
|
-
export const moduleAsType = () => getRawString('Diagnostic.moduleAsType');
|
532
|
-
export const moduleNotCallable = () => getRawString('Diagnostic.moduleNotCallable');
|
533
|
-
export const moduleUnknownMember = () =>
|
534
|
-
new ParameterizedString<{ name: string }>(getRawString('Diagnostic.moduleUnknownMember'));
|
535
|
-
export const namedExceptAfterCatchAll = () => getRawString('Diagnostic.namedExceptAfterCatchAll');
|
536
|
-
export const namedParamAfterParamSpecArgs = () =>
|
537
|
-
new ParameterizedString<{ name: string }>(getRawString('Diagnostic.namedParamAfterParamSpecArgs'));
|
538
|
-
export const namedTupleEmptyName = () => getRawString('Diagnostic.namedTupleEmptyName');
|
539
|
-
export const namedTupleFirstArg = () => getRawString('Diagnostic.namedTupleFirstArg');
|
540
|
-
export const namedTupleMultipleInheritance = () => getRawString('Diagnostic.namedTupleMultipleInheritance');
|
541
|
-
export const namedTupleNameType = () => getRawString('Diagnostic.namedTupleNameType');
|
542
|
-
export const namedTupleNameUnique = () => getRawString('Diagnostic.namedTupleNameUnique');
|
543
|
-
export const namedTupleNoTypes = () => getRawString('Diagnostic.namedTupleNoTypes');
|
544
|
-
export const namedTupleSecondArg = () => getRawString('Diagnostic.namedTupleSecondArg');
|
545
|
-
export const newClsParam = () => getRawString('Diagnostic.newClsParam');
|
546
|
-
export const newTypeLiteral = () => getRawString('Diagnostic.newTypeLiteral');
|
547
|
-
export const newTypeNotAClass = () => getRawString('Diagnostic.newTypeNotAClass');
|
548
|
-
export const newTypeProtocolClass = () => getRawString('Diagnostic.newTypeProtocolClass');
|
549
|
-
export const nonDefaultAfterDefault = () => getRawString('Diagnostic.nonDefaultAfterDefault');
|
550
|
-
export const noneNotCallable = () => getRawString('Diagnostic.noneNotCallable');
|
551
|
-
export const noneNotIterable = () => getRawString('Diagnostic.noneNotIterable');
|
552
|
-
export const noneNotSubscriptable = () => getRawString('Diagnostic.noneNotSubscriptable');
|
553
|
-
export const noneNotUsableWith = () => getRawString('Diagnostic.noneNotUsableWith');
|
554
|
-
export const noneOperator = () =>
|
555
|
-
new ParameterizedString<{ operator: string }>(getRawString('Diagnostic.noneOperator'));
|
556
|
-
export const noneUnknownMember = () =>
|
557
|
-
new ParameterizedString<{ name: string }>(getRawString('Diagnostic.noneUnknownMember'));
|
558
|
-
export const nonLocalNoBinding = () =>
|
559
|
-
new ParameterizedString<{ name: string }>(getRawString('Diagnostic.nonLocalNoBinding'));
|
560
|
-
export const nonLocalReassignment = () =>
|
561
|
-
new ParameterizedString<{ name: string }>(getRawString('Diagnostic.nonLocalReassignment'));
|
562
|
-
export const nonLocalRedefinition = () =>
|
563
|
-
new ParameterizedString<{ name: string }>(getRawString('Diagnostic.nonLocalRedefinition'));
|
564
|
-
export const nonLocalInModule = () => getRawString('Diagnostic.nonLocalInModule');
|
565
|
-
export const noOverload = () =>
|
566
|
-
new ParameterizedString<{ name: string }>(getRawString('Diagnostic.noOverload'));
|
567
|
-
export const noReturnContainsReturn = () => getRawString('Diagnostic.noReturnContainsReturn');
|
568
|
-
export const noReturnContainsYield = () => getRawString('Diagnostic.noReturnContainsYield');
|
569
|
-
export const noReturnReturnsNone = () => getRawString('Diagnostic.noReturnReturnsNone');
|
570
|
-
export const notRequiredArgCount = () => getRawString('Diagnostic.notRequiredArgCount');
|
571
|
-
export const notRequiredNotInTypedDict = () => getRawString('Diagnostic.notRequiredNotInTypedDict');
|
572
|
-
export const objectNotCallable = () =>
|
573
|
-
new ParameterizedString<{ type: string }>(getRawString('Diagnostic.objectNotCallable'));
|
574
|
-
export const obscuredClassDeclaration = () =>
|
575
|
-
new ParameterizedString<{ name: string }>(getRawString('Diagnostic.obscuredClassDeclaration'));
|
576
|
-
export const obscuredFunctionDeclaration = () =>
|
577
|
-
new ParameterizedString<{ name: string }>(getRawString('Diagnostic.obscuredFunctionDeclaration'));
|
578
|
-
export const obscuredMethodDeclaration = () =>
|
579
|
-
new ParameterizedString<{ name: string }>(getRawString('Diagnostic.obscuredMethodDeclaration'));
|
580
|
-
export const obscuredParameterDeclaration = () =>
|
581
|
-
new ParameterizedString<{ name: string }>(getRawString('Diagnostic.obscuredParameterDeclaration'));
|
582
|
-
export const obscuredVariableDeclaration = () =>
|
583
|
-
new ParameterizedString<{ name: string }>(getRawString('Diagnostic.obscuredVariableDeclaration'));
|
584
|
-
export const operatorLessOrGreaterDeprecated = () => getRawString('Diagnostic.operatorLessOrGreaterDeprecated');
|
585
|
-
export const optionalExtraArgs = () => getRawString('Diagnostic.optionalExtraArgs');
|
586
|
-
export const orPatternIrrefutable = () => getRawString('Diagnostic.orPatternIrrefutable');
|
587
|
-
export const orPatternMissingName = () => getRawString('Diagnostic.orPatternMissingName');
|
588
|
-
export const overlappingOverload = () =>
|
589
|
-
new ParameterizedString<{ name: string; obscured: number; obscuredBy: number }>(
|
590
|
-
getRawString('Diagnostic.overlappingOverload')
|
591
|
-
);
|
592
|
-
export const overloadAbstractMismatch = () =>
|
593
|
-
new ParameterizedString<{ name: string }>(getRawString('Diagnostic.overloadAbstractMismatch'));
|
594
|
-
export const overloadImplementationMismatch = () =>
|
595
|
-
new ParameterizedString<{ name: string; index: number }>(
|
596
|
-
getRawString('Diagnostic.overloadImplementationMismatch')
|
597
|
-
);
|
598
|
-
export const overloadReturnTypeMismatch = () =>
|
599
|
-
new ParameterizedString<{ name: string; newIndex: number; prevIndex: number }>(
|
600
|
-
getRawString('Diagnostic.overloadReturnTypeMismatch')
|
601
|
-
);
|
602
|
-
export const overloadWithImplementation = () =>
|
603
|
-
new ParameterizedString<{ name: string }>(getRawString('Diagnostic.overloadWithImplementation'));
|
604
|
-
export const overloadWithoutImplementation = () =>
|
605
|
-
new ParameterizedString<{ name: string }>(getRawString('Diagnostic.overloadWithoutImplementation'));
|
606
|
-
export const paramAfterKwargsParam = () => getRawString('Diagnostic.paramAfterKwargsParam');
|
607
|
-
export const paramAlreadyAssigned = () =>
|
608
|
-
new ParameterizedString<{ name: string }>(getRawString('Diagnostic.paramAlreadyAssigned'));
|
609
|
-
export const paramAnnotationMissing = () =>
|
610
|
-
new ParameterizedString<{ name: string }>(getRawString('Diagnostic.paramAnnotationMissing'));
|
611
|
-
export const paramNameMissing = () =>
|
612
|
-
new ParameterizedString<{ name: string }>(getRawString('Diagnostic.paramNameMissing'));
|
613
|
-
export const paramSpecArgsKwargsUsage = () => getRawString('Diagnostic.paramSpecArgsKwargsUsage');
|
614
|
-
export const paramSpecArgsMissing = () =>
|
615
|
-
new ParameterizedString<{ type: string }>(getRawString('Diagnostic.paramSpecArgsMissing'));
|
616
|
-
export const paramSpecArgsUsage = () => getRawString('Diagnostic.paramSpecArgsUsage');
|
617
|
-
export const paramSpecAssignedName = () =>
|
618
|
-
new ParameterizedString<{ name: string }>(getRawString('Diagnostic.paramSpecAssignedName'));
|
619
|
-
export const paramSpecContext = () => getRawString('Diagnostic.paramSpecContext');
|
620
|
-
export const paramSpecFirstArg = () => getRawString('Diagnostic.paramSpecFirstArg');
|
621
|
-
export const paramSpecKwargsUsage = () => getRawString('Diagnostic.paramSpecKwargsUsage');
|
622
|
-
export const paramSpecNotBound = () =>
|
623
|
-
new ParameterizedString<{ type: string }>(getRawString('Diagnostic.paramSpecNotBound'));
|
624
|
-
export const paramSpecNotUsedByOuterScope = () =>
|
625
|
-
new ParameterizedString<{ name: string }>(getRawString('Diagnostic.paramSpecNotUsedByOuterScope'));
|
626
|
-
export const paramSpecUnknownArg = () => getRawString('Diagnostic.paramSpecUnknownArg');
|
627
|
-
export const paramSpecUnknownMember = () =>
|
628
|
-
new ParameterizedString<{ name: string }>(getRawString('Diagnostic.paramSpecUnknownMember'));
|
629
|
-
export const paramSpecUnknownParam = () =>
|
630
|
-
new ParameterizedString<{ name: string }>(getRawString('Diagnostic.paramSpecUnknownParam'));
|
631
|
-
export const paramTypeCovariant = () => getRawString('Diagnostic.paramTypeCovariant');
|
632
|
-
export const paramTypeUnknown = () =>
|
633
|
-
new ParameterizedString<{ paramName: string }>(getRawString('Diagnostic.paramTypeUnknown'));
|
634
|
-
export const paramAssignmentMismatch = () =>
|
635
|
-
new ParameterizedString<{ sourceType: string; paramType: string }>(
|
636
|
-
getRawString('Diagnostic.paramAssignmentMismatch')
|
637
|
-
);
|
638
|
-
export const paramTypePartiallyUnknown = () =>
|
639
|
-
new ParameterizedString<{ paramName: string }>(getRawString('Diagnostic.paramTypePartiallyUnknown'));
|
640
|
-
export const parenthesizedContextManagerIllegal = () =>
|
641
|
-
getRawString('Diagnostic.parenthesizedContextManagerIllegal');
|
642
|
-
export const positionArgAfterNamedArg = () => getRawString('Diagnostic.positionArgAfterNamedArg');
|
643
|
-
export const privateImportFromPyTypedModule = () =>
|
644
|
-
new ParameterizedString<{ name: string; module: string }>(
|
645
|
-
getRawString('Diagnostic.privateImportFromPyTypedModule')
|
646
|
-
);
|
647
|
-
export const positionOnlyAfterArgs = () => getRawString('Diagnostic.positionOnlyAfterArgs');
|
648
|
-
export const positionOnlyAfterKeywordOnly = () => getRawString('Diagnostic.positionOnlyAfterKeywordOnly');
|
649
|
-
export const positionOnlyIncompatible = () => getRawString('Diagnostic.positionOnlyIncompatible');
|
650
|
-
export const positionOnlyFirstParam = () => getRawString('Diagnostic.positionOnlyFirstParam');
|
651
|
-
export const privateUsedOutsideOfClass = () =>
|
652
|
-
new ParameterizedString<{ name: string }>(getRawString('Diagnostic.privateUsedOutsideOfClass'));
|
653
|
-
export const privateUsedOutsideOfModule = () =>
|
654
|
-
new ParameterizedString<{ name: string }>(getRawString('Diagnostic.privateUsedOutsideOfModule'));
|
655
|
-
export const propertyOverridden = () =>
|
656
|
-
new ParameterizedString<{ name: string; className: string }>(getRawString('Diagnostic.propertyOverridden'));
|
657
|
-
export const propertyStaticMethod = () => getRawString('Diagnostic.propertyStaticMethod');
|
658
|
-
export const protectedUsedOutsideOfClass = () =>
|
659
|
-
new ParameterizedString<{ name: string }>(getRawString('Diagnostic.protectedUsedOutsideOfClass'));
|
660
|
-
export const protocolBaseClass = () =>
|
661
|
-
new ParameterizedString<{ classType: string; baseType: string }>(
|
662
|
-
getRawString('Diagnostic.protocolBaseClass')
|
663
|
-
);
|
664
|
-
export const protocolIllegal = () => getRawString('Diagnostic.protocolIllegal');
|
665
|
-
export const protocolMemberNotClassVar = () =>
|
666
|
-
new ParameterizedString<{ className: string; memberName: string }>(
|
667
|
-
getRawString('Diagnostic.protocolMemberNotClassVar')
|
668
|
-
);
|
669
|
-
export const protocolNotAllowedInTypeArgument = () =>
|
670
|
-
getRawString('Diagnostic.protocolNotAllowedInTypeArgument');
|
671
|
-
export const protocolUsedInCall = () =>
|
672
|
-
new ParameterizedString<{ name: string }>(getRawString('Diagnostic.protocolUsedInCall'));
|
673
|
-
export const protocolVarianceContravariant = () =>
|
674
|
-
new ParameterizedString<{ variable: string; class: string }>(
|
675
|
-
getRawString('Diagnostic.protocolVarianceContravariant')
|
676
|
-
);
|
677
|
-
export const protocolVarianceCovariant = () =>
|
678
|
-
new ParameterizedString<{ variable: string; class: string }>(
|
679
|
-
getRawString('Diagnostic.protocolVarianceCovariant')
|
680
|
-
);
|
681
|
-
export const protocolVarianceInvariant = () =>
|
682
|
-
new ParameterizedString<{ variable: string; class: string }>(
|
683
|
-
getRawString('Diagnostic.protocolVarianceInvariant')
|
684
|
-
);
|
685
|
-
export const recursiveDefinition = () =>
|
686
|
-
new ParameterizedString<{ name: string }>(getRawString('Diagnostic.recursiveDefinition'));
|
687
|
-
export const relativeImportNotAllowed = () => getRawString('Diagnostic.relativeImportNotAllowed');
|
688
|
-
export const requiredArgCount = () => getRawString('Diagnostic.requiredArgCount');
|
689
|
-
export const requiredNotInTypedDict = () => getRawString('Diagnostic.requiredNotInTypedDict');
|
690
|
-
export const returnMissing = () =>
|
691
|
-
new ParameterizedString<{ returnType: string }>(getRawString('Diagnostic.returnMissing'));
|
692
|
-
export const returnOutsideFunction = () => getRawString('Diagnostic.returnOutsideFunction');
|
693
|
-
export const returnTypeContravariant = () => getRawString('Diagnostic.returnTypeContravariant');
|
694
|
-
export const returnTypeMismatch = () =>
|
695
|
-
new ParameterizedString<{ exprType: string; returnType: string }>(
|
696
|
-
getRawString('Diagnostic.returnTypeMismatch')
|
697
|
-
);
|
698
|
-
export const returnTypeUnknown = () => getRawString('Diagnostic.returnTypeUnknown');
|
699
|
-
export const returnTypePartiallyUnknown = () =>
|
700
|
-
new ParameterizedString<{ returnType: string }>(getRawString('Diagnostic.returnTypePartiallyUnknown'));
|
701
|
-
export const revealLocalsArgs = () => getRawString('Diagnostic.revealLocalsArgs');
|
702
|
-
export const revealLocalsNone = () => getRawString('Diagnostic.revealLocalsNone');
|
703
|
-
export const revealTypeArgs = () => getRawString('Diagnostic.revealTypeArgs');
|
704
|
-
export const revealTypeExpectedTextArg = () => getRawString('Diagnostic.revealTypeExpectedTextArg');
|
705
|
-
export const revealTypeExpectedTextMismatch = () =>
|
706
|
-
new ParameterizedString<{ expected: string; received: string }>(
|
707
|
-
getRawString('Diagnostic.revealTypeExpectedTextMismatch')
|
708
|
-
);
|
709
|
-
export const revealTypeExpectedTypeMismatch = () =>
|
710
|
-
new ParameterizedString<{ expected: string; received: string }>(
|
711
|
-
getRawString('Diagnostic.revealTypeExpectedTypeMismatch')
|
712
|
-
);
|
713
|
-
export const selfTypeContext = () => getRawString('Diagnostic.selfTypeContext');
|
714
|
-
export const selfTypeWithTypedSelfOrCls = () => getRawString('Diagnostic.selfTypeWithTypedSelfOrCls');
|
715
|
-
export const setterGetterTypeMismatch = () => getRawString('Diagnostic.setterGetterTypeMismatch');
|
716
|
-
export const starPatternInAsPattern = () => getRawString('Diagnostic.starPatternInAsPattern');
|
717
|
-
export const starPatternInOrPattern = () => getRawString('Diagnostic.starPatternInOrPattern');
|
718
|
-
export const singleOverload = () =>
|
719
|
-
new ParameterizedString<{ name: string }>(getRawString('Diagnostic.singleOverload'));
|
720
|
-
export const slotsAttributeError = () =>
|
721
|
-
new ParameterizedString<{ name: string }>(getRawString('Diagnostic.slotsAttributeError'));
|
722
|
-
export const slotsClassVarConflict = () =>
|
723
|
-
new ParameterizedString<{ name: string }>(getRawString('Diagnostic.slotsClassVarConflict'));
|
724
|
-
export const starStarWildcardNotAllowed = () => getRawString('Diagnostic.starStarWildcardNotAllowed');
|
725
|
-
export const staticClsSelfParam = () => getRawString('Diagnostic.staticClsSelfParam');
|
726
|
-
export const strictTypeGuardReturnType = () =>
|
727
|
-
new ParameterizedString<{ type: string; returnType: string }>(
|
728
|
-
getRawString('Diagnostic.strictTypeGuardReturnType')
|
729
|
-
);
|
730
|
-
export const stringNonAsciiBytes = () => getRawString('Diagnostic.stringNonAsciiBytes');
|
731
|
-
export const stringNotSubscriptable = () => getRawString('Diagnostic.stringNotSubscriptable');
|
732
|
-
export const stringUnsupportedEscape = () => getRawString('Diagnostic.stringUnsupportedEscape');
|
733
|
-
export const stringUnterminated = () => getRawString('Diagnostic.stringUnterminated');
|
734
|
-
export const stubFileMissing = () =>
|
735
|
-
new ParameterizedString<{ importName: string }>(getRawString('Diagnostic.stubFileMissing'));
|
736
|
-
export const stubUsesGetAttr = () => getRawString('Diagnostic.stubUsesGetAttr');
|
737
|
-
export const sublistParamsIncompatible = () => getRawString('Diagnostic.sublistParamsIncompatible');
|
738
|
-
export const superCallArgCount = () => getRawString('Diagnostic.superCallArgCount');
|
739
|
-
export const superCallFirstArg = () =>
|
740
|
-
new ParameterizedString<{ type: string }>(getRawString('Diagnostic.superCallFirstArg'));
|
741
|
-
export const superCallSecondArg = () =>
|
742
|
-
new ParameterizedString<{ type: string }>(getRawString('Diagnostic.superCallSecondArg'));
|
743
|
-
export const superCallZeroArgForm = () => getRawString('Diagnostic.superCallZeroArgForm');
|
744
|
-
export const symbolIsUnbound = () =>
|
745
|
-
new ParameterizedString<{ name: string }>(getRawString('Diagnostic.symbolIsUnbound'));
|
746
|
-
export const symbolIsUndefined = () =>
|
747
|
-
new ParameterizedString<{ name: string }>(getRawString('Diagnostic.symbolIsUndefined'));
|
748
|
-
export const symbolIsPossiblyUnbound = () =>
|
749
|
-
new ParameterizedString<{ name: string }>(getRawString('Diagnostic.symbolIsPossiblyUnbound'));
|
750
|
-
export const symbolOverridden = () =>
|
751
|
-
new ParameterizedString<{ name: string; className: string }>(getRawString('Diagnostic.symbolOverridden'));
|
752
|
-
export const totalOrderingMissingMethod = () => getRawString('Diagnostic.totalOrderingMissingMethod');
|
753
|
-
export const trailingCommaInFromImport = () => getRawString('Diagnostic.trailingCommaInFromImport');
|
754
|
-
export const tryWithoutExcept = () => getRawString('Diagnostic.tryWithoutExcept');
|
755
|
-
export const tupleAssignmentMismatch = () =>
|
756
|
-
new ParameterizedString<{ type: string }>(getRawString('Diagnostic.tupleAssignmentMismatch'));
|
757
|
-
export const tupleInAnnotation = () => getRawString('Diagnostic.tupleInAnnotation');
|
758
|
-
export const tupleIndexOutOfRange = () =>
|
759
|
-
new ParameterizedString<{ type: string; index: number }>(getRawString('Diagnostic.tupleIndexOutOfRange'));
|
760
|
-
export const typeAliasIsRecursiveDirect = () =>
|
761
|
-
new ParameterizedString<{ name: string }>(getRawString('Diagnostic.typeAliasIsRecursiveDirect'));
|
762
|
-
export const typeAliasIsRecursiveIndirect = () =>
|
763
|
-
new ParameterizedString<{ name: string }>(getRawString('Diagnostic.typeAliasIsRecursiveIndirect'));
|
764
|
-
export const typeAliasNotInModuleOrClass = () => getRawString('Diagnostic.typeAliasNotInModuleOrClass');
|
765
|
-
export const typeAliasRedeclared = () =>
|
766
|
-
new ParameterizedString<{ name: string }>(getRawString('Diagnostic.typeAliasRedeclared'));
|
767
|
-
export const typeAnnotationCall = () => getRawString('Diagnostic.typeAnnotationCall');
|
768
|
-
export const typeAnnotationVariable = () => getRawString('Diagnostic.typeAnnotationVariable');
|
769
|
-
export const typeArgListExpected = () => getRawString('Diagnostic.typeArgListExpected');
|
770
|
-
export const typeArgListNotAllowed = () => getRawString('Diagnostic.typeArgListNotAllowed');
|
771
|
-
export const typeArgsExpectingNone = () =>
|
772
|
-
new ParameterizedString<{ name: string }>(getRawString('Diagnostic.typeArgsExpectingNone'));
|
773
|
-
export const typeArgsMismatchOne = () =>
|
774
|
-
new ParameterizedString<{ received: number }>(getRawString('Diagnostic.typeArgsMismatchOne'));
|
775
|
-
export const typeArgsMissingForAlias = () =>
|
776
|
-
new ParameterizedString<{ name: string }>(getRawString('Diagnostic.typeArgsMissingForAlias'));
|
777
|
-
export const typeArgsMissingForClass = () =>
|
778
|
-
new ParameterizedString<{ name: string }>(getRawString('Diagnostic.typeArgsMissingForClass'));
|
779
|
-
export const typeArgsTooFew = () =>
|
780
|
-
new ParameterizedString<{ name: string; expected: number; received: number }>(
|
781
|
-
getRawString('Diagnostic.typeArgsTooFew')
|
782
|
-
);
|
783
|
-
export const typeArgsTooMany = () =>
|
784
|
-
new ParameterizedString<{ name: string; expected: number; received: number }>(
|
785
|
-
getRawString('Diagnostic.typeArgsTooMany')
|
786
|
-
);
|
787
|
-
export const typeAssignmentMismatch = () =>
|
788
|
-
new ParameterizedString<{ sourceType: string; destType: string }>(
|
789
|
-
getRawString('Diagnostic.typeAssignmentMismatch')
|
790
|
-
);
|
791
|
-
export const typeCallNotAllowed = () => getRawString('Diagnostic.typeCallNotAllowed');
|
792
|
-
export const typeCommentDeprecated = () => getRawString('Diagnostic.typeCommentDeprecated');
|
793
|
-
export const typedDictAccess = () => getRawString('Diagnostic.typedDictAccess');
|
794
|
-
export const typedDictBadVar = () => getRawString('Diagnostic.typedDictBadVar');
|
795
|
-
export const typedDictBaseClass = () => getRawString('Diagnostic.typedDictBaseClass');
|
796
|
-
export const typedDictDelete = () => getRawString('Diagnostic.typedDictDelete');
|
797
|
-
export const typedDictEmptyName = () => getRawString('Diagnostic.typedDictEmptyName');
|
798
|
-
export const typedDictEntryName = () => getRawString('Diagnostic.typedDictEntryName');
|
799
|
-
export const typedDictEntryUnique = () => getRawString('Diagnostic.typedDictEntryUnique');
|
800
|
-
export const typedDictExtraArgs = () => getRawString('Diagnostic.typedDictExtraArgs');
|
801
|
-
export const typedDictFieldRedefinition = () =>
|
802
|
-
new ParameterizedString<{ name: string }>(getRawString('Diagnostic.typedDictFieldRedefinition'));
|
803
|
-
export const typedDictFirstArg = () => getRawString('Diagnostic.typedDictFirstArg');
|
804
|
-
export const typedDictSecondArgDict = () => getRawString('Diagnostic.typedDictSecondArgDict');
|
805
|
-
export const typedDictSecondArgDictEntry = () => getRawString('Diagnostic.typedDictSecondArgDictEntry');
|
806
|
-
export const typedDictSet = () => getRawString('Diagnostic.typedDictSet');
|
807
|
-
export const typedDictTotalParam = () => getRawString('Diagnostic.typedDictTotalParam');
|
808
|
-
export const typeExpectedClass = () =>
|
809
|
-
new ParameterizedString<{ type: string }>(getRawString('Diagnostic.typeExpectedClass'));
|
810
|
-
export const typeGuardArgCount = () => getRawString('Diagnostic.typeGuardArgCount');
|
811
|
-
export const typeNotAwaitable = () =>
|
812
|
-
new ParameterizedString<{ type: string }>(getRawString('Diagnostic.typeNotAwaitable'));
|
813
|
-
export const typeNotCallable = () =>
|
814
|
-
new ParameterizedString<{ expression: string; type: string }>(getRawString('Diagnostic.typeNotCallable'));
|
815
|
-
export const typeNotIntantiable = () =>
|
816
|
-
new ParameterizedString<{ type: string }>(getRawString('Diagnostic.typeNotIntantiable'));
|
817
|
-
export const typeNotIterable = () =>
|
818
|
-
new ParameterizedString<{ type: string }>(getRawString('Diagnostic.typeNotIterable'));
|
819
|
-
export const typeNotSpecializable = () =>
|
820
|
-
new ParameterizedString<{ type: string }>(getRawString('Diagnostic.typeNotSpecializable'));
|
821
|
-
export const typeNotSubscriptable = () =>
|
822
|
-
new ParameterizedString<{ type: string }>(getRawString('Diagnostic.typeNotSubscriptable'));
|
823
|
-
export const typeNotUsableWith = () =>
|
824
|
-
new ParameterizedString<{ type: string; method: string }>(getRawString('Diagnostic.typeNotUsableWith'));
|
825
|
-
export const typeNotSupportBinaryOperator = () =>
|
826
|
-
new ParameterizedString<{ leftType: string; rightType: string; operator: string }>(
|
827
|
-
getRawString('Diagnostic.typeNotSupportBinaryOperator')
|
828
|
-
);
|
829
|
-
export const typeNotSupportBinaryOperatorBidirectional = () =>
|
830
|
-
new ParameterizedString<{ leftType: string; rightType: string; expectedType: string; operator: string }>(
|
831
|
-
getRawString('Diagnostic.typeNotSupportBinaryOperatorBidirectional')
|
832
|
-
);
|
833
|
-
export const typeNotSupportUnaryOperator = () =>
|
834
|
-
new ParameterizedString<{ type: string; operator: string }>(
|
835
|
-
getRawString('Diagnostic.typeNotSupportUnaryOperator')
|
836
|
-
);
|
837
|
-
export const typeNotSupportUnaryOperatorBidirectional = () =>
|
838
|
-
new ParameterizedString<{ type: string; expectedType: string; operator: string }>(
|
839
|
-
getRawString('Diagnostic.typeNotSupportUnaryOperatorBidirectional')
|
840
|
-
);
|
841
|
-
export const typePartiallyUnknown = () =>
|
842
|
-
new ParameterizedString<{ name: string }>(getRawString('Diagnostic.typePartiallyUnknown'));
|
843
|
-
export const typeUnknown = () =>
|
844
|
-
new ParameterizedString<{ name: string }>(getRawString('Diagnostic.typeUnknown'));
|
845
|
-
export const typeVarAssignedName = () =>
|
846
|
-
new ParameterizedString<{ name: string }>(getRawString('Diagnostic.typeVarAssignedName'));
|
847
|
-
export const typeVarAssignmentMismatch = () =>
|
848
|
-
new ParameterizedString<{ type: string; name: string }>(
|
849
|
-
getRawString('Diagnostic.typeVarAssignmentMismatch')
|
850
|
-
);
|
851
|
-
export const typeVarBoundAndConstrained = () => getRawString('Diagnostic.typeVarBoundAndConstrained');
|
852
|
-
export const typeVarFirstArg = () => getRawString('Diagnostic.typeVarFirstArg');
|
853
|
-
export const typeVarGeneric = () => getRawString('Diagnostic.typeVarGeneric');
|
854
|
-
export const typeVarNoMember = () =>
|
855
|
-
new ParameterizedString<{ type: string; name: string }>(getRawString('Diagnostic.typeVarNoMember'));
|
856
|
-
export const typeVarNotSubscriptable = () =>
|
857
|
-
new ParameterizedString<{ type: string }>(getRawString('Diagnostic.typeVarNotSubscriptable'));
|
858
|
-
export const typeVarNotUsedByOuterScope = () =>
|
859
|
-
new ParameterizedString<{ name: string }>(getRawString('Diagnostic.typeVarNotUsedByOuterScope'));
|
860
|
-
export const typeVarPossiblyUnsolvable = () =>
|
861
|
-
new ParameterizedString<{ name: string; param: string }>(
|
862
|
-
getRawString('Diagnostic.typeVarPossiblyUnsolvable')
|
863
|
-
);
|
864
|
-
export const typeVarSingleConstraint = () => getRawString('Diagnostic.typeVarSingleConstraint');
|
865
|
-
export const typeVarsNotInGenericOrProtocol = () => getRawString('Diagnostic.typeVarsNotInGenericOrProtocol');
|
866
|
-
export const typeVarTupleMustBeUnpacked = () => getRawString('Diagnostic.typeVarTupleMustBeUnpacked');
|
867
|
-
export const typeVarTupleContext = () => getRawString('Diagnostic.typeVarTupleContext');
|
868
|
-
export const typeVarUnknownParam = () =>
|
869
|
-
new ParameterizedString<{ name: string }>(getRawString('Diagnostic.typeVarUnknownParam'));
|
870
|
-
export const typeVarUsedByOuterScope = () =>
|
871
|
-
new ParameterizedString<{ name: string }>(getRawString('Diagnostic.typeVarUsedByOuterScope'));
|
872
|
-
export const typeVarUsedOnlyOnce = () =>
|
873
|
-
new ParameterizedString<{ name: string }>(getRawString('Diagnostic.typeVarUsedOnlyOnce'));
|
874
|
-
export const typeVarVariance = () => getRawString('Diagnostic.typeVarVariance');
|
875
|
-
export const unaccessedClass = () =>
|
876
|
-
new ParameterizedString<{ name: string }>(getRawString('Diagnostic.unaccessedClass'));
|
877
|
-
export const unaccessedFunction = () =>
|
878
|
-
new ParameterizedString<{ name: string }>(getRawString('Diagnostic.unaccessedFunction'));
|
879
|
-
export const unaccessedImport = () =>
|
880
|
-
new ParameterizedString<{ name: string }>(getRawString('Diagnostic.unaccessedImport'));
|
881
|
-
export const unaccessedSymbol = () =>
|
882
|
-
new ParameterizedString<{ name: string }>(getRawString('Diagnostic.unaccessedSymbol'));
|
883
|
-
export const unaccessedVariable = () =>
|
884
|
-
new ParameterizedString<{ name: string }>(getRawString('Diagnostic.unaccessedVariable'));
|
885
|
-
export const unexpectedAsyncToken = () => getRawString('Diagnostic.unexpectedAsyncToken');
|
886
|
-
export const unexpectedExprToken = () => getRawString('Diagnostic.unexpectedExprToken');
|
887
|
-
export const unexpectedIndent = () => getRawString('Diagnostic.unexpectedIndent');
|
888
|
-
export const unexpectedUnindent = () => getRawString('Diagnostic.unexpectedUnindent');
|
889
|
-
export const unionSyntaxIllegal = () => getRawString('Diagnostic.unionSyntaxIllegal');
|
890
|
-
export const unionTypeArgCount = () => getRawString('Diagnostic.unionTypeArgCount');
|
891
|
-
export const uninitializedInstanceVariable = () =>
|
892
|
-
new ParameterizedString<{ name: string }>(getRawString('Diagnostic.uninitializedInstanceVariable'));
|
893
|
-
export const unnecessaryCast = () =>
|
894
|
-
new ParameterizedString<{ type: string }>(getRawString('Diagnostic.unnecessaryCast'));
|
895
|
-
export const unnecessaryIsInstanceAlways = () =>
|
896
|
-
new ParameterizedString<{ testType: string; classType: string }>(
|
897
|
-
getRawString('Diagnostic.unnecessaryIsInstanceAlways')
|
898
|
-
);
|
899
|
-
export const unnecessaryIsSubclassAlways = () =>
|
900
|
-
new ParameterizedString<{ testType: string; classType: string }>(
|
901
|
-
getRawString('Diagnostic.unnecessaryIsSubclassAlways')
|
902
|
-
);
|
903
|
-
export const unnecessaryPyrightIgnore = () => getRawString('Diagnostic.unnecessaryPyrightIgnore');
|
904
|
-
export const unnecessaryPyrightIgnoreRule = () =>
|
905
|
-
new ParameterizedString<{ name: string }>(getRawString('Diagnostic.unnecessaryPyrightIgnoreRule'));
|
906
|
-
export const unnecessaryTypeIgnore = () => getRawString('Diagnostic.unnecessaryTypeIgnore');
|
907
|
-
export const unpackArgCount = () => getRawString('Diagnostic.unpackArgCount');
|
908
|
-
export const unpackedArgInTypeArgument = () => getRawString('Diagnostic.unpackedArgInTypeArgument');
|
909
|
-
export const unpackedArgWithVariadicParam = () => getRawString('Diagnostic.unpackedArgWithVariadicParam');
|
910
|
-
export const unpackedDictArgumentNotMapping = () => getRawString('Diagnostic.unpackedDictArgumentNotMapping');
|
911
|
-
export const unpackedSubscriptIllegal = () => getRawString('Diagnostic.unpackedSubscriptIllegal');
|
912
|
-
export const unpackedTypedDictArgument = () => getRawString('Diagnostic.unpackedTypedDictArgument');
|
913
|
-
export const unpackedTypeVarTupleExpected = () =>
|
914
|
-
new ParameterizedString<{ name1: string; name2: string }>(
|
915
|
-
getRawString('Diagnostic.unpackedTypeVarTupleExpected')
|
916
|
-
);
|
917
|
-
export const unpackExpectedTypedDict = () => getRawString('Diagnostic.unpackExpectedTypedDict');
|
918
|
-
export const unpackExpectedTypeVarTuple = () => getRawString('Diagnostic.unpackExpectedTypeVarTuple');
|
919
|
-
export const unpackIllegalInComprehension = () => getRawString('Diagnostic.unpackIllegalInComprehension');
|
920
|
-
export const unpackInAnnotation = () => getRawString('Diagnostic.unpackInAnnotation');
|
921
|
-
export const unpackInDict = () => getRawString('Diagnostic.unpackInDict');
|
922
|
-
export const unpackInSet = () => getRawString('Diagnostic.unpackInSet');
|
923
|
-
export const unpackNotAllowed = () => getRawString('Diagnostic.unpackNotAllowed');
|
924
|
-
export const unpackOperatorNotAllowed = () => getRawString('Diagnostic.unpackOperatorNotAllowed');
|
925
|
-
export const unpackTuplesIllegal = () => getRawString('Diagnostic.unpackTuplesIllegal');
|
926
|
-
export const unreachableCode = () => getRawString('Diagnostic.unreachableCode');
|
927
|
-
export const unreachableExcept = () => getRawString('Diagnostic.unreachableExcept');
|
928
|
-
export const unsupportedDunderAllOperation = () => getRawString('Diagnostic.unsupportedDunderAllOperation');
|
929
|
-
export const unusedCallResult = () =>
|
930
|
-
new ParameterizedString<{ type: string }>(getRawString('Diagnostic.unusedCallResult'));
|
931
|
-
export const unusedCoroutine = () => getRawString('Diagnostic.unusedCoroutine');
|
932
|
-
export const unusedExpression = () => getRawString('Diagnostic.unusedExpression');
|
933
|
-
export const varAnnotationIllegal = () => getRawString('Diagnostic.varAnnotationIllegal');
|
934
|
-
export const variadicTypeArgsTooMany = () => getRawString('Diagnostic.variadicTypeArgsTooMany');
|
935
|
-
export const variadicTypeParamTooManyAlias = () =>
|
936
|
-
new ParameterizedString<{ names: string }>(getRawString('Diagnostic.variadicTypeParamTooManyAlias'));
|
937
|
-
export const variadicTypeParamTooManyClass = () =>
|
938
|
-
new ParameterizedString<{ names: string }>(getRawString('Diagnostic.variadicTypeParamTooManyClass'));
|
939
|
-
export const walrusIllegal = () => getRawString('Diagnostic.walrusIllegal');
|
940
|
-
export const walrusNotAllowed = () => getRawString('Diagnostic.walrusNotAllowed');
|
941
|
-
export const wildcardInFunction = () => getRawString('Diagnostic.wildcardInFunction');
|
942
|
-
export const wildcardLibraryImport = () => getRawString('Diagnostic.wildcardLibraryImport');
|
943
|
-
export const yieldFromIllegal = () => getRawString('Diagnostic.yieldFromIllegal');
|
944
|
-
export const yieldFromOutsideAsync = () => getRawString('Diagnostic.yieldFromOutsideAsync');
|
945
|
-
export const yieldOutsideFunction = () => getRawString('Diagnostic.yieldOutsideFunction');
|
946
|
-
export const yieldTypeMismatch = () =>
|
947
|
-
new ParameterizedString<{ exprType: string; yieldType: string }>(
|
948
|
-
getRawString('Diagnostic.yieldTypeMismatch')
|
949
|
-
);
|
950
|
-
export const yieldWithinListCompr = () => getRawString('Diagnostic.yieldWithinListCompr');
|
951
|
-
export const zeroCaseStatementsFound = () => getRawString('Diagnostic.zeroCaseStatementsFound');
|
952
|
-
export const zeroLengthTupleNotAllowed = () => getRawString('Diagnostic.zeroLengthTupleNotAllowed');
|
953
|
-
}
|
954
|
-
|
955
|
-
export namespace DiagnosticAddendum {
|
956
|
-
export const argParam = () =>
|
957
|
-
new ParameterizedString<{ paramName: string }>(getRawString('DiagnosticAddendum.argParam'));
|
958
|
-
export const argParamFunction = () =>
|
959
|
-
new ParameterizedString<{ paramName: string; functionName: string }>(
|
960
|
-
getRawString('DiagnosticAddendum.argParamFunction')
|
961
|
-
);
|
962
|
-
export const argsParamMissing = () =>
|
963
|
-
new ParameterizedString<{ paramName: string }>(getRawString('DiagnosticAddendum.argsParamMissing'));
|
964
|
-
export const argsPositionOnly = () =>
|
965
|
-
new ParameterizedString<{ expected: number; received: number }>(
|
966
|
-
getRawString('DiagnosticAddendum.argsPositionOnly')
|
967
|
-
);
|
968
|
-
export const argumentType = () =>
|
969
|
-
new ParameterizedString<{ type: string }>(getRawString('DiagnosticAddendum.argumentType'));
|
970
|
-
export const argumentTypes = () =>
|
971
|
-
new ParameterizedString<{ types: string }>(getRawString('DiagnosticAddendum.argumentTypes'));
|
972
|
-
export const assignToNone = () => getRawString('DiagnosticAddendum.assignToNone');
|
973
|
-
export const asyncHelp = () => getRawString('DiagnosticAddendum.asyncHelp');
|
974
|
-
export const baseClassProvidesType = () =>
|
975
|
-
new ParameterizedString<{ baseClass: string; type: string }>(
|
976
|
-
getRawString('DiagnosticAddendum.baseClassProvidesType')
|
977
|
-
);
|
978
|
-
export const dataClassFrozen = () =>
|
979
|
-
new ParameterizedString<{ name: string }>(getRawString('DiagnosticAddendum.dataClassFrozen'));
|
980
|
-
export const dataClassFieldLocation = () => getRawString('DiagnosticAddendum.dataClassFieldLocation');
|
981
|
-
export const finalMethod = () => getRawString('DiagnosticAddendum.finalMethod');
|
982
|
-
export const functionParamDefaultMissing = () =>
|
983
|
-
new ParameterizedString<{ name: string }>(getRawString('DiagnosticAddendum.functionParamDefaultMissing'));
|
984
|
-
export const functionParamName = () =>
|
985
|
-
new ParameterizedString<{ destName: string; srcName: string }>(
|
986
|
-
getRawString('DiagnosticAddendum.functionParamName')
|
987
|
-
);
|
988
|
-
export const functionReturnTypeMismatch = () =>
|
989
|
-
new ParameterizedString<{ sourceType: string; destType: string }>(
|
990
|
-
getRawString('DiagnosticAddendum.functionReturnTypeMismatch')
|
991
|
-
);
|
992
|
-
export const functionTooFewParams = () =>
|
993
|
-
new ParameterizedString<{ expected: number; received: number }>(
|
994
|
-
getRawString('DiagnosticAddendum.functionTooFewParams')
|
995
|
-
);
|
996
|
-
export const incompatibleGetter = () => getRawString('DiagnosticAddendum.incompatibleGetter');
|
997
|
-
export const incompatibleSetter = () => getRawString('DiagnosticAddendum.incompatibleSetter');
|
998
|
-
export const incompatibleDeleter = () => getRawString('DiagnosticAddendum.incompatibleDeleter');
|
999
|
-
export const initMethodLocation = () =>
|
1000
|
-
new ParameterizedString<{ type: string }>(getRawString('DiagnosticAddendum.initMethodLocation'));
|
1001
|
-
export const initMethodSignature = () =>
|
1002
|
-
new ParameterizedString<{ type: string }>(getRawString('DiagnosticAddendum.initMethodSignature'));
|
1003
|
-
export const functionTooManyParams = () =>
|
1004
|
-
new ParameterizedString<{ expected: number; received: number }>(
|
1005
|
-
getRawString('DiagnosticAddendum.functionTooManyParams')
|
1006
|
-
);
|
1007
|
-
export const keyNotRequired = () =>
|
1008
|
-
new ParameterizedString<{ name: string; type: string }>(getRawString('DiagnosticAddendum.keyNotRequired'));
|
1009
|
-
export const keyRequiredDeleted = () =>
|
1010
|
-
new ParameterizedString<{ name: string }>(getRawString('DiagnosticAddendum.keyRequiredDeleted'));
|
1011
|
-
export const keyUndefined = () =>
|
1012
|
-
new ParameterizedString<{ name: string; type: string }>(getRawString('DiagnosticAddendum.keyUndefined'));
|
1013
|
-
export const kwargsParamMissing = () =>
|
1014
|
-
new ParameterizedString<{ paramName: string }>(getRawString('DiagnosticAddendum.kwargsParamMissing'));
|
1015
|
-
export const listAssignmentMismatch = () =>
|
1016
|
-
new ParameterizedString<{ type: string }>(getRawString('DiagnosticAddendum.listAssignmentMismatch'));
|
1017
|
-
export const literalAssignmentMismatch = () =>
|
1018
|
-
new ParameterizedString<{ sourceType: string; destType: string }>(
|
1019
|
-
getRawString('DiagnosticAddendum.literalAssignmentMismatch')
|
1020
|
-
);
|
1021
|
-
export const matchIsNotExhaustiveType = () =>
|
1022
|
-
new ParameterizedString<{ type: string }>(getRawString('DiagnosticAddendum.matchIsNotExhaustiveType'));
|
1023
|
-
export const matchIsNotExhaustiveHint = () => getRawString('DiagnosticAddendum.matchIsNotExhaustiveHint');
|
1024
|
-
export const memberAssignment = () =>
|
1025
|
-
new ParameterizedString<{ type: string; name: string; classType: string }>(
|
1026
|
-
getRawString('DiagnosticAddendum.memberAssignment')
|
1027
|
-
);
|
1028
|
-
export const memberIsAbstract = () =>
|
1029
|
-
new ParameterizedString<{ type: string; name: string }>(
|
1030
|
-
getRawString('DiagnosticAddendum.memberIsAbstract')
|
1031
|
-
);
|
1032
|
-
export const memberIsAbstractMore = () =>
|
1033
|
-
new ParameterizedString<{ count: number }>(getRawString('DiagnosticAddendum.memberIsAbstractMore'));
|
1034
|
-
export const memberIsFinalInProtocol = () =>
|
1035
|
-
new ParameterizedString<{ name: string }>(getRawString('DiagnosticAddendum.memberIsFinalInProtocol'));
|
1036
|
-
export const memberIsInitVar = () =>
|
1037
|
-
new ParameterizedString<{ name: string }>(getRawString('DiagnosticAddendum.memberIsInitVar'));
|
1038
|
-
export const memberIsInvariant = () =>
|
1039
|
-
new ParameterizedString<{ name: string }>(getRawString('DiagnosticAddendum.memberIsInvariant'));
|
1040
|
-
export const memberIsNotFinalInProtocol = () =>
|
1041
|
-
new ParameterizedString<{ name: string }>(getRawString('DiagnosticAddendum.memberIsNotFinalInProtocol'));
|
1042
|
-
export const memberSetClassVar = () =>
|
1043
|
-
new ParameterizedString<{ name: string }>(getRawString('DiagnosticAddendum.memberSetClassVar'));
|
1044
|
-
export const memberTypeMismatch = () =>
|
1045
|
-
new ParameterizedString<{ name: string }>(getRawString('DiagnosticAddendum.memberTypeMismatch'));
|
1046
|
-
export const memberUnknown = () =>
|
1047
|
-
new ParameterizedString<{ name: string }>(getRawString('DiagnosticAddendum.memberUnknown'));
|
1048
|
-
export const missingProtocolMember = () =>
|
1049
|
-
new ParameterizedString<{ name: string; classType: string }>(
|
1050
|
-
getRawString('DiagnosticAddendum.missingProtocolMember')
|
1051
|
-
);
|
1052
|
-
export const missingGetter = () => getRawString('DiagnosticAddendum.missingGetter');
|
1053
|
-
export const missingSetter = () => getRawString('DiagnosticAddendum.missingSetter');
|
1054
|
-
export const missingDeleter = () => getRawString('DiagnosticAddendum.missingDeleter');
|
1055
|
-
export const namedParamMissingInDest = () =>
|
1056
|
-
new ParameterizedString<{ name: string }>(getRawString('DiagnosticAddendum.namedParamMissingInDest'));
|
1057
|
-
export const namedParamMissingInSource = () =>
|
1058
|
-
new ParameterizedString<{ name: string }>(getRawString('DiagnosticAddendum.namedParamMissingInSource'));
|
1059
|
-
export const namedParamTypeMismatch = () =>
|
1060
|
-
new ParameterizedString<{ name: string; sourceType: string; destType: string }>(
|
1061
|
-
getRawString('DiagnosticAddendum.namedParamTypeMismatch')
|
1062
|
-
);
|
1063
|
-
export const newMethodLocation = () =>
|
1064
|
-
new ParameterizedString<{ type: string }>(getRawString('DiagnosticAddendum.newMethodLocation'));
|
1065
|
-
export const newMethodSignature = () =>
|
1066
|
-
new ParameterizedString<{ type: string }>(getRawString('DiagnosticAddendum.newMethodSignature'));
|
1067
|
-
export const noOverloadAssignable = () =>
|
1068
|
-
new ParameterizedString<{ type: string }>(getRawString('DiagnosticAddendum.noOverloadAssignable'));
|
1069
|
-
export const orPatternMissingName = () =>
|
1070
|
-
new ParameterizedString<{ name: string }>(getRawString('DiagnosticAddendum.orPatternMissingName'));
|
1071
|
-
export const overloadSignature = () => getRawString('DiagnosticAddendum.overloadSignature');
|
1072
|
-
export const overloadNotAssignable = () =>
|
1073
|
-
new ParameterizedString<{ name: string }>(getRawString('DiagnosticAddendum.overloadNotAssignable'));
|
1074
|
-
export const overloadWithImplementation = () => getRawString('DiagnosticAddendum.overloadWithImplementation');
|
1075
|
-
export const overriddenMethod = () => getRawString('DiagnosticAddendum.overriddenMethod');
|
1076
|
-
export const overriddenSymbol = () => getRawString('DiagnosticAddendum.overriddenSymbol');
|
1077
|
-
export const overrideNotClassMethod = () => getRawString('DiagnosticAddendum.overrideNotClassMethod');
|
1078
|
-
export const overrideNotInstanceMethod = () => getRawString('DiagnosticAddendum.overrideNotInstanceMethod');
|
1079
|
-
export const overrideNotStaticMethod = () => getRawString('DiagnosticAddendum.overrideNotStaticMethod');
|
1080
|
-
export const overrideParamKeywordNoDefault = () =>
|
1081
|
-
new ParameterizedString<{ name: string }>(getRawString('DiagnosticAddendum.overrideParamKeywordNoDefault'));
|
1082
|
-
export const overrideParamKeywordType = () =>
|
1083
|
-
new ParameterizedString<{ name: string; baseType: string; overrideType: string }>(
|
1084
|
-
getRawString('DiagnosticAddendum.overrideParamKeywordType')
|
1085
|
-
);
|
1086
|
-
export const overrideParamName = () =>
|
1087
|
-
new ParameterizedString<{ index: number; baseName: string; overrideName: string }>(
|
1088
|
-
getRawString('DiagnosticAddendum.overrideParamName')
|
1089
|
-
);
|
1090
|
-
export const overrideParamNameExtra = () =>
|
1091
|
-
new ParameterizedString<{ name: string }>(getRawString('DiagnosticAddendum.overrideParamNameExtra'));
|
1092
|
-
export const overrideParamNameMissing = () =>
|
1093
|
-
new ParameterizedString<{ name: string }>(getRawString('DiagnosticAddendum.overrideParamNameMissing'));
|
1094
|
-
export const overrideParamNamePositionOnly = () =>
|
1095
|
-
new ParameterizedString<{ index: number; baseName: string }>(
|
1096
|
-
getRawString('DiagnosticAddendum.overrideParamNamePositionOnly')
|
1097
|
-
);
|
1098
|
-
export const overrideParamNoDefault = () =>
|
1099
|
-
new ParameterizedString<{ index: number }>(getRawString('DiagnosticAddendum.overrideParamNoDefault'));
|
1100
|
-
export const overrideParamType = () =>
|
1101
|
-
new ParameterizedString<{ index: number; baseType: string; overrideType: string }>(
|
1102
|
-
getRawString('DiagnosticAddendum.overrideParamType')
|
1103
|
-
);
|
1104
|
-
export const overridePositionalParamCount = () =>
|
1105
|
-
new ParameterizedString<{ baseCount: number; overrideCount: number }>(
|
1106
|
-
getRawString('DiagnosticAddendum.overridePositionalParamCount')
|
1107
|
-
);
|
1108
|
-
export const overrideReturnType = () =>
|
1109
|
-
new ParameterizedString<{ baseType: string; overrideType: string }>(
|
1110
|
-
getRawString('DiagnosticAddendum.overrideReturnType')
|
1111
|
-
);
|
1112
|
-
export const overrideType = () =>
|
1113
|
-
new ParameterizedString<{ type: string }>(getRawString('DiagnosticAddendum.overrideType'));
|
1114
|
-
export const paramAssignment = () =>
|
1115
|
-
new ParameterizedString<{ index: number; sourceType: string; destType: string }>(
|
1116
|
-
getRawString('DiagnosticAddendum.paramAssignment')
|
1117
|
-
);
|
1118
|
-
export const paramSpecOverload = () => getRawString('DiagnosticAddendum.paramSpecOverload');
|
1119
|
-
export const paramType = () =>
|
1120
|
-
new ParameterizedString<{ paramType: string }>(getRawString('DiagnosticAddendum.paramType'));
|
1121
|
-
export const privateImportFromPyTypedSource = () =>
|
1122
|
-
new ParameterizedString<{ module: string }>(
|
1123
|
-
getRawString('DiagnosticAddendum.privateImportFromPyTypedSource')
|
1124
|
-
);
|
1125
|
-
export const propertyAccessFromProtocolClass = () =>
|
1126
|
-
getRawString('DiagnosticAddendum.propertyAccessFromProtocolClass');
|
1127
|
-
export const propertyMethodIncompatible = () =>
|
1128
|
-
new ParameterizedString<{ name: string }>(getRawString('DiagnosticAddendum.propertyMethodIncompatible'));
|
1129
|
-
export const propertyMethodMissing = () =>
|
1130
|
-
new ParameterizedString<{ name: string }>(getRawString('DiagnosticAddendum.propertyMethodMissing'));
|
1131
|
-
export const propertyMissingDeleter = () =>
|
1132
|
-
new ParameterizedString<{ name: string }>(getRawString('DiagnosticAddendum.propertyMissingDeleter'));
|
1133
|
-
export const propertyMissingSetter = () =>
|
1134
|
-
new ParameterizedString<{ name: string }>(getRawString('DiagnosticAddendum.propertyMissingSetter'));
|
1135
|
-
export const protocolMemberClassVar = () =>
|
1136
|
-
new ParameterizedString<{ name: string }>(getRawString('DiagnosticAddendum.protocolMemberClassVar'));
|
1137
|
-
export const protocolIncompatible = () =>
|
1138
|
-
new ParameterizedString<{ sourceType: string; destType: string }>(
|
1139
|
-
getRawString('DiagnosticAddendum.protocolIncompatible')
|
1140
|
-
);
|
1141
|
-
export const protocolMemberMissing = () =>
|
1142
|
-
new ParameterizedString<{ name: string }>(getRawString('DiagnosticAddendum.protocolMemberMissing'));
|
1143
|
-
export const protocolSourceIsNotConcrete = () =>
|
1144
|
-
new ParameterizedString<{ sourceType: string; destType: string }>(
|
1145
|
-
getRawString('DiagnosticAddendum.protocolSourceIsNotConcrete')
|
1146
|
-
);
|
1147
|
-
export const readOnlyAttribute = () =>
|
1148
|
-
new ParameterizedString<{ name: string }>(getRawString('DiagnosticAddendum.readOnlyAttribute'));
|
1149
|
-
export const seeDeclaration = () => getRawString('DiagnosticAddendum.seeDeclaration');
|
1150
|
-
export const seeClassDeclaration = () => getRawString('DiagnosticAddendum.seeClassDeclaration');
|
1151
|
-
export const seeFunctionDeclaration = () => getRawString('DiagnosticAddendum.seeFunctionDeclaration');
|
1152
|
-
export const seeMethodDeclaration = () => getRawString('DiagnosticAddendum.seeMethodDeclaration');
|
1153
|
-
export const seeParameterDeclaration = () => getRawString('DiagnosticAddendum.seeParameterDeclaration');
|
1154
|
-
export const seeVariableDeclaration = () => getRawString('DiagnosticAddendum.seeVariableDeclaration');
|
1155
|
-
export const tupleEntryTypeMismatch = () =>
|
1156
|
-
new ParameterizedString<{ entry: number }>(getRawString('DiagnosticAddendum.tupleEntryTypeMismatch'));
|
1157
|
-
export const tupleAssignmentMismatch = () =>
|
1158
|
-
new ParameterizedString<{ type: string }>(getRawString('DiagnosticAddendum.tupleAssignmentMismatch'));
|
1159
|
-
export const tupleSizeMismatch = () =>
|
1160
|
-
new ParameterizedString<{ expected: number; received: number }>(
|
1161
|
-
getRawString('DiagnosticAddendum.tupleSizeMismatch')
|
1162
|
-
);
|
1163
|
-
export const tupleSizeMismatchIndeterminate = () =>
|
1164
|
-
new ParameterizedString<{ expected: number }>(
|
1165
|
-
getRawString('DiagnosticAddendum.tupleSizeMismatchIndeterminate')
|
1166
|
-
);
|
1167
|
-
export const typeAssignmentMismatch = () =>
|
1168
|
-
new ParameterizedString<{ sourceType: string; destType: string }>(
|
1169
|
-
getRawString('DiagnosticAddendum.typeAssignmentMismatch')
|
1170
|
-
);
|
1171
|
-
export const typeBound = () =>
|
1172
|
-
new ParameterizedString<{ sourceType: string; destType: string; name: string }>(
|
1173
|
-
getRawString('DiagnosticAddendum.typeBound')
|
1174
|
-
);
|
1175
|
-
export const typeConstrainedTypeVar = () =>
|
1176
|
-
new ParameterizedString<{ type: string; name: string }>(
|
1177
|
-
getRawString('DiagnosticAddendum.typeConstrainedTypeVar')
|
1178
|
-
);
|
1179
|
-
export const typedDictFieldMissing = () =>
|
1180
|
-
new ParameterizedString<{ name: string; type: string }>(
|
1181
|
-
getRawString('DiagnosticAddendum.typedDictFieldMissing')
|
1182
|
-
);
|
1183
|
-
export const typedDictFieldNotRequired = () =>
|
1184
|
-
new ParameterizedString<{ name: string; type: string }>(
|
1185
|
-
getRawString('DiagnosticAddendum.typedDictFieldNotRequired')
|
1186
|
-
);
|
1187
|
-
export const typedDictFieldRedefinition = () =>
|
1188
|
-
new ParameterizedString<{ parentType: string; childType: string }>(
|
1189
|
-
getRawString('DiagnosticAddendum.typedDictFieldRedefinition')
|
1190
|
-
);
|
1191
|
-
export const typedDictFieldRequired = () =>
|
1192
|
-
new ParameterizedString<{ name: string; type: string }>(
|
1193
|
-
getRawString('DiagnosticAddendum.typedDictFieldRequired')
|
1194
|
-
);
|
1195
|
-
export const typedDictFieldTypeMismatch = () =>
|
1196
|
-
new ParameterizedString<{ name: string; type: string }>(
|
1197
|
-
getRawString('DiagnosticAddendum.typedDictFieldTypeMismatch')
|
1198
|
-
);
|
1199
|
-
export const typedDictFieldUndefined = () =>
|
1200
|
-
new ParameterizedString<{ name: string; type: string }>(
|
1201
|
-
getRawString('DiagnosticAddendum.typedDictFieldUndefined')
|
1202
|
-
);
|
1203
|
-
export const typedDictFinalMismatch = () =>
|
1204
|
-
new ParameterizedString<{ sourceType: string; destType: string }>(
|
1205
|
-
getRawString('DiagnosticAddendum.typedDictFinalMismatch')
|
1206
|
-
);
|
1207
|
-
export const typeIncompatible = () =>
|
1208
|
-
new ParameterizedString<{ sourceType: string; destType: string }>(
|
1209
|
-
getRawString('DiagnosticAddendum.typeIncompatible')
|
1210
|
-
);
|
1211
|
-
export const typeNotCallable = () =>
|
1212
|
-
new ParameterizedString<{ type: string }>(getRawString('DiagnosticAddendum.typeNotCallable'));
|
1213
|
-
export const typeNotClass = () =>
|
1214
|
-
new ParameterizedString<{ type: string }>(getRawString('DiagnosticAddendum.typeNotClass'));
|
1215
|
-
export const typeParamSpec = () =>
|
1216
|
-
new ParameterizedString<{ type: string; name: string }>(getRawString('DiagnosticAddendum.typeParamSpec'));
|
1217
|
-
export const typeNotStringLiteral = () =>
|
1218
|
-
new ParameterizedString<{ type: string }>(getRawString('DiagnosticAddendum.typeNotStringLiteral'));
|
1219
|
-
export const typeOfSymbol = () =>
|
1220
|
-
new ParameterizedString<{ name: string; type: string }>(getRawString('DiagnosticAddendum.typeOfSymbol'));
|
1221
|
-
export const typeUnsupported = () =>
|
1222
|
-
new ParameterizedString<{ type: string }>(getRawString('DiagnosticAddendum.typeUnsupported'));
|
1223
|
-
export const typeVarIsContravariant = () =>
|
1224
|
-
new ParameterizedString<{ name: string }>(getRawString('DiagnosticAddendum.typeVarIsContravariant'));
|
1225
|
-
export const typeVarIsCovariant = () =>
|
1226
|
-
new ParameterizedString<{ name: string }>(getRawString('DiagnosticAddendum.typeVarIsCovariant'));
|
1227
|
-
export const typeVarIsInvariant = () =>
|
1228
|
-
new ParameterizedString<{ name: string }>(getRawString('DiagnosticAddendum.typeVarIsInvariant'));
|
1229
|
-
export const typeVarTupleRequiresKnownLength = () =>
|
1230
|
-
getRawString('DiagnosticAddendum.typeVarTupleRequiresKnownLength');
|
1231
|
-
export const typeVarNotAllowed = () => getRawString('DiagnosticAddendum.typeVarNotAllowed');
|
1232
|
-
export const typeVarsMissing = () =>
|
1233
|
-
new ParameterizedString<{ names: string }>(getRawString('DiagnosticAddendum.typeVarsMissing'));
|
1234
|
-
export const typeVarUnsolvableRemedy = () => getRawString('DiagnosticAddendum.typeVarUnsolvableRemedy');
|
1235
|
-
export const unreachableExcept = () =>
|
1236
|
-
new ParameterizedString<{ exceptionType: string; parentType: string }>(
|
1237
|
-
getRawString('DiagnosticAddendum.unreachableExcept')
|
1238
|
-
);
|
1239
|
-
export const useDictInstead = () => getRawString('DiagnosticAddendum.useDictInstead');
|
1240
|
-
export const useListInstead = () => getRawString('DiagnosticAddendum.useListInstead');
|
1241
|
-
export const useTupleInstead = () => getRawString('DiagnosticAddendum.useTupleInstead');
|
1242
|
-
export const useTypeInstead = () => getRawString('DiagnosticAddendum.useTypeInstead');
|
1243
|
-
}
|
1244
|
-
|
1245
|
-
export namespace CodeAction {
|
1246
|
-
export const addOptionalToAnnotation = () => getRawString('CodeAction.addOptionalToAnnotation');
|
1247
|
-
export const createTypeStub = () => getRawString('CodeAction.createTypeStub');
|
1248
|
-
export const createTypeStubFor = () =>
|
1249
|
-
new ParameterizedString<{ moduleName: string }>(getRawString('CodeAction.createTypeStubFor'));
|
1250
|
-
export const executingCommand = () => getRawString('CodeAction.executingCommand');
|
1251
|
-
export const filesToAnalyzeOne = () => getRawString('CodeAction.filesToAnalyzeOne');
|
1252
|
-
export const filesToAnalyzeCount = () =>
|
1253
|
-
new ParameterizedString<{ count: number }>(getRawString('CodeAction.filesToAnalyzeCount'));
|
1254
|
-
export const findingReferences = () => getRawString('CodeAction.findingReferences');
|
1255
|
-
export const organizeImports = () => getRawString('CodeAction.organizeImports');
|
1256
|
-
}
|
1257
|
-
|
1258
|
-
export namespace Refactoring {
|
1259
|
-
export const moveFile = () =>
|
1260
|
-
new ParameterizedString<{ oldModuleName: string; newModuleName: string }>(
|
1261
|
-
getRawString('Refactoring.moveFile')
|
1262
|
-
);
|
1263
|
-
export const moveFileLabel = () =>
|
1264
|
-
new ParameterizedString<{ oldModuleName: string; newModuleName: string }>(
|
1265
|
-
getRawString('Refactoring.moveFileLabel')
|
1266
|
-
);
|
1267
|
-
export const moveFileDescription = () =>
|
1268
|
-
new ParameterizedString<{ oldModuleName: string; newModuleName: string }>(
|
1269
|
-
getRawString('Refactoring.moveFileDescription')
|
1270
|
-
);
|
1271
|
-
}
|
1272
|
-
}
|