@zzzen/pyright-internal 1.1.254
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/analyzer/aliasDeclarationUtils.d.ts +9 -0
- package/dist/analyzer/aliasDeclarationUtils.js +128 -0
- package/dist/analyzer/aliasDeclarationUtils.js.map +1 -0
- package/dist/analyzer/analysis.d.ts +18 -0
- package/dist/analyzer/analysis.js +81 -0
- package/dist/analyzer/analysis.js.map +1 -0
- package/dist/analyzer/analyzerFileInfo.d.ts +39 -0
- package/dist/analyzer/analyzerFileInfo.js +17 -0
- package/dist/analyzer/analyzerFileInfo.js.map +1 -0
- package/dist/analyzer/analyzerNodeInfo.d.ts +32 -0
- package/dist/analyzer/analyzerNodeInfo.js +138 -0
- package/dist/analyzer/analyzerNodeInfo.js.map +1 -0
- package/dist/analyzer/backgroundAnalysisProgram.d.ts +54 -0
- package/dist/analyzer/backgroundAnalysisProgram.js +222 -0
- package/dist/analyzer/backgroundAnalysisProgram.js.map +1 -0
- package/dist/analyzer/binder.d.ts +149 -0
- package/dist/analyzer/binder.js +3195 -0
- package/dist/analyzer/binder.js.map +1 -0
- package/dist/analyzer/checker.d.ts +116 -0
- package/dist/analyzer/checker.js +3828 -0
- package/dist/analyzer/checker.js.map +1 -0
- package/dist/analyzer/circularDependency.d.ts +7 -0
- package/dist/analyzer/circularDependency.js +51 -0
- package/dist/analyzer/circularDependency.js.map +1 -0
- package/dist/analyzer/codeFlowEngine.d.ts +21 -0
- package/dist/analyzer/codeFlowEngine.js +1132 -0
- package/dist/analyzer/codeFlowEngine.js.map +1 -0
- package/dist/analyzer/codeFlowTypes.d.ts +82 -0
- package/dist/analyzer/codeFlowTypes.js +134 -0
- package/dist/analyzer/codeFlowTypes.js.map +1 -0
- package/dist/analyzer/codeFlowUtils.d.ts +2 -0
- package/dist/analyzer/codeFlowUtils.js +348 -0
- package/dist/analyzer/codeFlowUtils.js.map +1 -0
- package/dist/analyzer/commentUtils.d.ts +4 -0
- package/dist/analyzer/commentUtils.js +131 -0
- package/dist/analyzer/commentUtils.js.map +1 -0
- package/dist/analyzer/constraintSolver.d.ts +7 -0
- package/dist/analyzer/constraintSolver.js +605 -0
- package/dist/analyzer/constraintSolver.js.map +1 -0
- package/dist/analyzer/constructorTransform.d.ts +4 -0
- package/dist/analyzer/constructorTransform.js +219 -0
- package/dist/analyzer/constructorTransform.js.map +1 -0
- package/dist/analyzer/dataClasses.d.ts +9 -0
- package/dist/analyzer/dataClasses.js +762 -0
- package/dist/analyzer/dataClasses.js.map +1 -0
- package/dist/analyzer/declaration.d.ts +90 -0
- package/dist/analyzer/declaration.js +42 -0
- package/dist/analyzer/declaration.js.map +1 -0
- package/dist/analyzer/declarationUtils.d.ts +12 -0
- package/dist/analyzer/declarationUtils.js +212 -0
- package/dist/analyzer/declarationUtils.js.map +1 -0
- package/dist/analyzer/docStringConversion.d.ts +2 -0
- package/dist/analyzer/docStringConversion.js +699 -0
- package/dist/analyzer/docStringConversion.js.map +1 -0
- package/dist/analyzer/docStringUtils.d.ts +3 -0
- package/dist/analyzer/docStringUtils.js +103 -0
- package/dist/analyzer/docStringUtils.js.map +1 -0
- package/dist/analyzer/functionTransform.d.ts +4 -0
- package/dist/analyzer/functionTransform.js +96 -0
- package/dist/analyzer/functionTransform.js.map +1 -0
- package/dist/analyzer/importResolver.d.ts +97 -0
- package/dist/analyzer/importResolver.js +1617 -0
- package/dist/analyzer/importResolver.js.map +1 -0
- package/dist/analyzer/importResult.d.ts +33 -0
- package/dist/analyzer/importResult.js +11 -0
- package/dist/analyzer/importResult.js.map +1 -0
- package/dist/analyzer/importStatementUtils.d.ts +46 -0
- package/dist/analyzer/importStatementUtils.js +618 -0
- package/dist/analyzer/importStatementUtils.js.map +1 -0
- package/dist/analyzer/namedTuples.d.ts +5 -0
- package/dist/analyzer/namedTuples.js +342 -0
- package/dist/analyzer/namedTuples.js.map +1 -0
- package/dist/analyzer/packageTypeReport.d.ts +52 -0
- package/dist/analyzer/packageTypeReport.js +45 -0
- package/dist/analyzer/packageTypeReport.js.map +1 -0
- package/dist/analyzer/packageTypeVerifier.d.ts +37 -0
- package/dist/analyzer/packageTypeVerifier.js +908 -0
- package/dist/analyzer/packageTypeVerifier.js.map +1 -0
- package/dist/analyzer/parentDirectoryCache.d.ts +23 -0
- package/dist/analyzer/parentDirectoryCache.js +71 -0
- package/dist/analyzer/parentDirectoryCache.js.map +1 -0
- package/dist/analyzer/parseTreeCleaner.d.ts +8 -0
- package/dist/analyzer/parseTreeCleaner.js +51 -0
- package/dist/analyzer/parseTreeCleaner.js.map +1 -0
- package/dist/analyzer/parseTreeUtils.d.ts +98 -0
- package/dist/analyzer/parseTreeUtils.js +1753 -0
- package/dist/analyzer/parseTreeUtils.js.map +1 -0
- package/dist/analyzer/parseTreeWalker.d.ts +81 -0
- package/dist/analyzer/parseTreeWalker.js +437 -0
- package/dist/analyzer/parseTreeWalker.js.map +1 -0
- package/dist/analyzer/patternMatching.d.ts +6 -0
- package/dist/analyzer/patternMatching.js +866 -0
- package/dist/analyzer/patternMatching.js.map +1 -0
- package/dist/analyzer/program.d.ts +158 -0
- package/dist/analyzer/program.js +1902 -0
- package/dist/analyzer/program.js.map +1 -0
- package/dist/analyzer/properties.d.ts +10 -0
- package/dist/analyzer/properties.js +368 -0
- package/dist/analyzer/properties.js.map +1 -0
- package/dist/analyzer/protocols.d.ts +8 -0
- package/dist/analyzer/protocols.js +409 -0
- package/dist/analyzer/protocols.js.map +1 -0
- package/dist/analyzer/pyTypedUtils.d.ts +6 -0
- package/dist/analyzer/pyTypedUtils.js +42 -0
- package/dist/analyzer/pyTypedUtils.js.map +1 -0
- package/dist/analyzer/pythonPathUtils.d.ts +14 -0
- package/dist/analyzer/pythonPathUtils.js +173 -0
- package/dist/analyzer/pythonPathUtils.js.map +1 -0
- package/dist/analyzer/scope.d.ts +39 -0
- package/dist/analyzer/scope.js +110 -0
- package/dist/analyzer/scope.js.map +1 -0
- package/dist/analyzer/scopeUtils.d.ts +6 -0
- package/dist/analyzer/scopeUtils.js +72 -0
- package/dist/analyzer/scopeUtils.js.map +1 -0
- package/dist/analyzer/service.d.ts +144 -0
- package/dist/analyzer/service.js +1197 -0
- package/dist/analyzer/service.js.map +1 -0
- package/dist/analyzer/sourceFile.d.ts +123 -0
- package/dist/analyzer/sourceFile.js +908 -0
- package/dist/analyzer/sourceFile.js.map +1 -0
- package/dist/analyzer/sourceMapper.d.ts +47 -0
- package/dist/analyzer/sourceMapper.js +543 -0
- package/dist/analyzer/sourceMapper.js.map +1 -0
- package/dist/analyzer/staticExpressions.d.ts +4 -0
- package/dist/analyzer/staticExpressions.js +242 -0
- package/dist/analyzer/staticExpressions.js.map +1 -0
- package/dist/analyzer/symbol.d.ts +50 -0
- package/dist/analyzer/symbol.js +160 -0
- package/dist/analyzer/symbol.js.map +1 -0
- package/dist/analyzer/symbolNameUtils.d.ts +8 -0
- package/dist/analyzer/symbolNameUtils.js +53 -0
- package/dist/analyzer/symbolNameUtils.js.map +1 -0
- package/dist/analyzer/symbolUtils.d.ts +7 -0
- package/dist/analyzer/symbolUtils.js +46 -0
- package/dist/analyzer/symbolUtils.js.map +1 -0
- package/dist/analyzer/testWalker.d.ts +14 -0
- package/dist/analyzer/testWalker.js +92 -0
- package/dist/analyzer/testWalker.js.map +1 -0
- package/dist/analyzer/tracePrinter.d.ts +11 -0
- package/dist/analyzer/tracePrinter.js +222 -0
- package/dist/analyzer/tracePrinter.js.map +1 -0
- package/dist/analyzer/typeCache.d.ts +40 -0
- package/dist/analyzer/typeCache.js +134 -0
- package/dist/analyzer/typeCache.js.map +1 -0
- package/dist/analyzer/typeDocStringUtils.d.ts +12 -0
- package/dist/analyzer/typeDocStringUtils.js +293 -0
- package/dist/analyzer/typeDocStringUtils.js.map +1 -0
- package/dist/analyzer/typeEvaluator.d.ts +18 -0
- package/dist/analyzer/typeEvaluator.js +16598 -0
- package/dist/analyzer/typeEvaluator.js.map +1 -0
- package/dist/analyzer/typeEvaluatorTypes.d.ts +220 -0
- package/dist/analyzer/typeEvaluatorTypes.js +16 -0
- package/dist/analyzer/typeEvaluatorTypes.js.map +1 -0
- package/dist/analyzer/typeEvaluatorWithTracker.d.ts +6 -0
- package/dist/analyzer/typeEvaluatorWithTracker.js +121 -0
- package/dist/analyzer/typeEvaluatorWithTracker.js.map +1 -0
- package/dist/analyzer/typeGuards.d.ts +6 -0
- package/dist/analyzer/typeGuards.js +1293 -0
- package/dist/analyzer/typeGuards.js.map +1 -0
- package/dist/analyzer/typePrinter.d.ts +17 -0
- package/dist/analyzer/typePrinter.js +603 -0
- package/dist/analyzer/typePrinter.js.map +1 -0
- package/dist/analyzer/typeStubWriter.d.ts +48 -0
- package/dist/analyzer/typeStubWriter.js +605 -0
- package/dist/analyzer/typeStubWriter.js.map +1 -0
- package/dist/analyzer/typeUtils.d.ts +134 -0
- package/dist/analyzer/typeUtils.js +2380 -0
- package/dist/analyzer/typeUtils.js.map +1 -0
- package/dist/analyzer/typeVarContext.d.ts +50 -0
- package/dist/analyzer/typeVarContext.js +250 -0
- package/dist/analyzer/typeVarContext.js.map +1 -0
- package/dist/analyzer/typedDicts.d.ts +12 -0
- package/dist/analyzer/typedDicts.js +695 -0
- package/dist/analyzer/typedDicts.js.map +1 -0
- package/dist/analyzer/types.d.ts +484 -0
- package/dist/analyzer/types.js +1844 -0
- package/dist/analyzer/types.js.map +1 -0
- package/dist/backgroundAnalysis.d.ts +14 -0
- package/dist/backgroundAnalysis.js +42 -0
- package/dist/backgroundAnalysis.js.map +1 -0
- package/dist/backgroundAnalysisBase.d.ts +83 -0
- package/dist/backgroundAnalysisBase.js +429 -0
- package/dist/backgroundAnalysisBase.js.map +1 -0
- package/dist/backgroundThreadBase.d.ts +34 -0
- package/dist/backgroundThreadBase.js +134 -0
- package/dist/backgroundThreadBase.js.map +1 -0
- package/dist/commands/commandController.d.ts +13 -0
- package/dist/commands/commandController.js +48 -0
- package/dist/commands/commandController.js.map +1 -0
- package/dist/commands/commandResult.d.ts +9 -0
- package/dist/commands/commandResult.js +19 -0
- package/dist/commands/commandResult.js.map +1 -0
- package/dist/commands/commands.d.ts +7 -0
- package/dist/commands/commands.js +11 -0
- package/dist/commands/commands.js.map +1 -0
- package/dist/commands/createTypeStub.d.ts +8 -0
- package/dist/commands/createTypeStub.js +50 -0
- package/dist/commands/createTypeStub.js.map +1 -0
- package/dist/commands/quickActionCommand.d.ts +8 -0
- package/dist/commands/quickActionCommand.js +31 -0
- package/dist/commands/quickActionCommand.js.map +1 -0
- package/dist/commands/restartServer.d.ts +8 -0
- package/dist/commands/restartServer.js +20 -0
- package/dist/commands/restartServer.js.map +1 -0
- package/dist/common/cancellationUtils.d.ts +16 -0
- package/dist/common/cancellationUtils.js +60 -0
- package/dist/common/cancellationUtils.js.map +1 -0
- package/dist/common/chokidarFileWatcherProvider.d.ts +9 -0
- package/dist/common/chokidarFileWatcherProvider.js +88 -0
- package/dist/common/chokidarFileWatcherProvider.js.map +1 -0
- package/dist/common/collectionUtils.d.ts +114 -0
- package/dist/common/collectionUtils.js +292 -0
- package/dist/common/collectionUtils.js.map +1 -0
- package/dist/common/commandLineOptions.d.ts +41 -0
- package/dist/common/commandLineOptions.js +46 -0
- package/dist/common/commandLineOptions.js.map +1 -0
- package/dist/common/configOptions.d.ts +144 -0
- package/dist/common/configOptions.js +908 -0
- package/dist/common/configOptions.js.map +1 -0
- package/dist/common/console.d.ts +61 -0
- package/dist/common/console.js +191 -0
- package/dist/common/console.js.map +1 -0
- package/dist/common/core.d.ts +67 -0
- package/dist/common/core.js +118 -0
- package/dist/common/core.js.map +1 -0
- package/dist/common/crypto.d.ts +1 -0
- package/dist/common/crypto.js +37 -0
- package/dist/common/crypto.js.map +1 -0
- package/dist/common/debug.d.ts +13 -0
- package/dist/common/debug.js +131 -0
- package/dist/common/debug.js.map +1 -0
- package/dist/common/deferred.d.ts +11 -0
- package/dist/common/deferred.js +62 -0
- package/dist/common/deferred.js.map +1 -0
- package/dist/common/diagnostic.d.ts +59 -0
- package/dist/common/diagnostic.js +134 -0
- package/dist/common/diagnostic.js.map +1 -0
- package/dist/common/diagnosticRules.d.ts +67 -0
- package/dist/common/diagnosticRules.js +83 -0
- package/dist/common/diagnosticRules.js.map +1 -0
- package/dist/common/diagnosticSink.d.ts +34 -0
- package/dist/common/diagnosticSink.js +110 -0
- package/dist/common/diagnosticSink.js.map +1 -0
- package/dist/common/editAction.d.ts +29 -0
- package/dist/common/editAction.js +11 -0
- package/dist/common/editAction.js.map +1 -0
- package/dist/common/extensibility.d.ts +11 -0
- package/dist/common/extensibility.js +10 -0
- package/dist/common/extensibility.js.map +1 -0
- package/dist/common/extensions.d.ts +3 -0
- package/dist/common/extensions.js +15 -0
- package/dist/common/extensions.js.map +1 -0
- package/dist/common/fileBasedCancellationUtils.d.ts +11 -0
- package/dist/common/fileBasedCancellationUtils.js +259 -0
- package/dist/common/fileBasedCancellationUtils.js.map +1 -0
- package/dist/common/fileSystem.d.ts +72 -0
- package/dist/common/fileSystem.js +69 -0
- package/dist/common/fileSystem.js.map +1 -0
- package/dist/common/fullAccessHost.d.ts +19 -0
- package/dist/common/fullAccessHost.js +193 -0
- package/dist/common/fullAccessHost.js.map +1 -0
- package/dist/common/host.d.ts +21 -0
- package/dist/common/host.js +30 -0
- package/dist/common/host.js.map +1 -0
- package/dist/common/logTracker.d.ts +15 -0
- package/dist/common/logTracker.js +129 -0
- package/dist/common/logTracker.js.map +1 -0
- package/dist/common/lspUtils.d.ts +3 -0
- package/dist/common/lspUtils.js +20 -0
- package/dist/common/lspUtils.js.map +1 -0
- package/dist/common/memUtils.d.ts +3 -0
- package/dist/common/memUtils.js +37 -0
- package/dist/common/memUtils.js.map +1 -0
- package/dist/common/pathConsts.d.ts +8 -0
- package/dist/common/pathConsts.js +19 -0
- package/dist/common/pathConsts.js.map +1 -0
- package/dist/common/pathUtils.d.ts +170 -0
- package/dist/common/pathUtils.js +762 -0
- package/dist/common/pathUtils.js.map +1 -0
- package/dist/common/positionUtils.d.ts +7 -0
- package/dist/common/positionUtils.js +71 -0
- package/dist/common/positionUtils.js.map +1 -0
- package/dist/common/progressReporter.d.ts +15 -0
- package/dist/common/progressReporter.js +44 -0
- package/dist/common/progressReporter.js.map +1 -0
- package/dist/common/pythonVersion.d.ts +20 -0
- package/dist/common/pythonVersion.js +71 -0
- package/dist/common/pythonVersion.js.map +1 -0
- package/dist/common/realFileSystem.d.ts +8 -0
- package/dist/common/realFileSystem.js +368 -0
- package/dist/common/realFileSystem.js.map +1 -0
- package/dist/common/stringUtils.d.ts +47 -0
- package/dist/common/stringUtils.js +160 -0
- package/dist/common/stringUtils.js.map +1 -0
- package/dist/common/textEditUtils.d.ts +3 -0
- package/dist/common/textEditUtils.js +29 -0
- package/dist/common/textEditUtils.js.map +1 -0
- package/dist/common/textRange.d.ts +47 -0
- package/dist/common/textRange.js +211 -0
- package/dist/common/textRange.js.map +1 -0
- package/dist/common/textRangeCollection.d.ts +13 -0
- package/dist/common/textRangeCollection.js +108 -0
- package/dist/common/textRangeCollection.js.map +1 -0
- package/dist/common/timing.d.ts +31 -0
- package/dist/common/timing.js +100 -0
- package/dist/common/timing.js.map +1 -0
- package/dist/common/uriParser.d.ts +12 -0
- package/dist/common/uriParser.js +25 -0
- package/dist/common/uriParser.js.map +1 -0
- package/dist/common/workspaceEditUtils.d.ts +7 -0
- package/dist/common/workspaceEditUtils.js +63 -0
- package/dist/common/workspaceEditUtils.js.map +1 -0
- package/dist/languageServerBase.d.ts +211 -0
- package/dist/languageServerBase.js +923 -0
- package/dist/languageServerBase.js.map +1 -0
- package/dist/languageService/analyzerServiceExecutor.d.ts +8 -0
- package/dist/languageService/analyzerServiceExecutor.js +97 -0
- package/dist/languageService/analyzerServiceExecutor.js.map +1 -0
- package/dist/languageService/autoImporter.d.ts +84 -0
- package/dist/languageService/autoImporter.js +635 -0
- package/dist/languageService/autoImporter.js.map +1 -0
- package/dist/languageService/callHierarchyProvider.d.ts +12 -0
- package/dist/languageService/callHierarchyProvider.js +368 -0
- package/dist/languageService/callHierarchyProvider.js.map +1 -0
- package/dist/languageService/codeActionProvider.d.ts +6 -0
- package/dist/languageService/codeActionProvider.js +53 -0
- package/dist/languageService/codeActionProvider.js.map +1 -0
- package/dist/languageService/completionProvider.d.ts +147 -0
- package/dist/languageService/completionProvider.js +2220 -0
- package/dist/languageService/completionProvider.js.map +1 -0
- package/dist/languageService/definitionProvider.d.ts +17 -0
- package/dist/languageService/definitionProvider.js +206 -0
- package/dist/languageService/definitionProvider.js.map +1 -0
- package/dist/languageService/documentHighlightProvider.d.ts +7 -0
- package/dist/languageService/documentHighlightProvider.js +63 -0
- package/dist/languageService/documentHighlightProvider.js.map +1 -0
- package/dist/languageService/documentSymbolCollector.d.ts +37 -0
- package/dist/languageService/documentSymbolCollector.js +344 -0
- package/dist/languageService/documentSymbolCollector.js.map +1 -0
- package/dist/languageService/documentSymbolProvider.d.ts +37 -0
- package/dist/languageService/documentSymbolProvider.js +308 -0
- package/dist/languageService/documentSymbolProvider.js.map +1 -0
- package/dist/languageService/hoverProvider.d.ts +25 -0
- package/dist/languageService/hoverProvider.js +366 -0
- package/dist/languageService/hoverProvider.js.map +1 -0
- package/dist/languageService/importAdder.d.ts +24 -0
- package/dist/languageService/importAdder.js +296 -0
- package/dist/languageService/importAdder.js.map +1 -0
- package/dist/languageService/importSorter.d.ts +15 -0
- package/dist/languageService/importSorter.js +152 -0
- package/dist/languageService/importSorter.js.map +1 -0
- package/dist/languageService/indentationUtils.d.ts +4 -0
- package/dist/languageService/indentationUtils.js +597 -0
- package/dist/languageService/indentationUtils.js.map +1 -0
- package/dist/languageService/quickActions.d.ts +4 -0
- package/dist/languageService/quickActions.js +97 -0
- package/dist/languageService/quickActions.js.map +1 -0
- package/dist/languageService/referencesProvider.d.ts +36 -0
- package/dist/languageService/referencesProvider.js +236 -0
- package/dist/languageService/referencesProvider.js.map +1 -0
- package/dist/languageService/renameModuleProvider.d.ts +58 -0
- package/dist/languageService/renameModuleProvider.js +884 -0
- package/dist/languageService/renameModuleProvider.js.map +1 -0
- package/dist/languageService/signatureHelpProvider.d.ts +26 -0
- package/dist/languageService/signatureHelpProvider.js +180 -0
- package/dist/languageService/signatureHelpProvider.js.map +1 -0
- package/dist/languageService/tooltipUtils.d.ts +9 -0
- package/dist/languageService/tooltipUtils.js +129 -0
- package/dist/languageService/tooltipUtils.js.map +1 -0
- package/dist/localization/localize.d.ts +1324 -0
- package/dist/localization/localize.js +788 -0
- package/dist/localization/localize.js.map +1 -0
- package/dist/localization/package.nls.de.json +1 -0
- package/dist/localization/package.nls.en-us.json +636 -0
- package/dist/localization/package.nls.es.json +1 -0
- package/dist/localization/package.nls.fr.json +1 -0
- package/dist/localization/package.nls.ja.json +1 -0
- package/dist/localization/package.nls.ru.json +1 -0
- package/dist/localization/package.nls.zh-cn.json +1 -0
- package/dist/localization/package.nls.zh-tw.json +1 -0
- package/dist/nodeMain.d.ts +1 -0
- package/dist/nodeMain.js +21 -0
- package/dist/nodeMain.js.map +1 -0
- package/dist/nodeServer.d.ts +3 -0
- package/dist/nodeServer.js +31 -0
- package/dist/nodeServer.js.map +1 -0
- package/dist/parser/characterStream.d.ts +27 -0
- package/dist/parser/characterStream.js +120 -0
- package/dist/parser/characterStream.js.map +1 -0
- package/dist/parser/characters.d.ts +17 -0
- package/dist/parser/characters.js +240 -0
- package/dist/parser/characters.js.map +1 -0
- package/dist/parser/parseNodes.d.ts +750 -0
- package/dist/parser/parseNodes.js +1406 -0
- package/dist/parser/parseNodes.js.map +1 -0
- package/dist/parser/parser.d.ts +191 -0
- package/dist/parser/parser.js +3806 -0
- package/dist/parser/parser.js.map +1 -0
- package/dist/parser/stringTokenUtils.d.ts +25 -0
- package/dist/parser/stringTokenUtils.js +455 -0
- package/dist/parser/stringTokenUtils.js.map +1 -0
- package/dist/parser/tokenizer.d.ts +71 -0
- package/dist/parser/tokenizer.js +1111 -0
- package/dist/parser/tokenizer.js.map +1 -0
- package/dist/parser/tokenizerTypes.d.ts +223 -0
- package/dist/parser/tokenizerTypes.js +164 -0
- package/dist/parser/tokenizerTypes.js.map +1 -0
- package/dist/parser/unicode.d.ts +23 -0
- package/dist/parser/unicode.js +2899 -0
- package/dist/parser/unicode.js.map +1 -0
- package/dist/pyright.d.ts +1 -0
- package/dist/pyright.js +645 -0
- package/dist/pyright.js.map +1 -0
- package/dist/pyrightFileSystem.d.ts +28 -0
- package/dist/pyrightFileSystem.js +196 -0
- package/dist/pyrightFileSystem.js.map +1 -0
- package/dist/readonlyAugmentedFileSystem.d.ts +40 -0
- package/dist/readonlyAugmentedFileSystem.js +155 -0
- package/dist/readonlyAugmentedFileSystem.js.map +1 -0
- package/dist/server.d.ts +21 -0
- package/dist/server.js +232 -0
- package/dist/server.js.map +1 -0
- package/dist/tests/chainedSourceFiles.test.d.ts +1 -0
- package/dist/tests/chainedSourceFiles.test.js +153 -0
- package/dist/tests/chainedSourceFiles.test.js.map +1 -0
- package/dist/tests/checker.test.d.ts +1 -0
- package/dist/tests/checker.test.js +346 -0
- package/dist/tests/checker.test.js.map +1 -0
- package/dist/tests/collectionUtils.test.d.ts +1 -0
- package/dist/tests/collectionUtils.test.js +153 -0
- package/dist/tests/collectionUtils.test.js.map +1 -0
- package/dist/tests/common.test.d.ts +1 -0
- package/dist/tests/common.test.js +125 -0
- package/dist/tests/common.test.js.map +1 -0
- package/dist/tests/config.test.d.ts +1 -0
- package/dist/tests/config.test.js +230 -0
- package/dist/tests/config.test.js.map +1 -0
- package/dist/tests/debug.test.d.ts +1 -0
- package/dist/tests/debug.test.js +102 -0
- package/dist/tests/debug.test.js.map +1 -0
- package/dist/tests/deferred.test.d.ts +1 -0
- package/dist/tests/deferred.test.js +65 -0
- package/dist/tests/deferred.test.js.map +1 -0
- package/dist/tests/diagnosticOverrides.test.d.ts +1 -0
- package/dist/tests/diagnosticOverrides.test.js +108 -0
- package/dist/tests/diagnosticOverrides.test.js.map +1 -0
- package/dist/tests/docStringConversion.test.d.ts +1 -0
- package/dist/tests/docStringConversion.test.js +695 -0
- package/dist/tests/docStringConversion.test.js.map +1 -0
- package/dist/tests/docStringUtils.test.d.ts +1 -0
- package/dist/tests/docStringUtils.test.js +70 -0
- package/dist/tests/docStringUtils.test.js.map +1 -0
- package/dist/tests/documentSymbolCollector.test.d.ts +1 -0
- package/dist/tests/documentSymbolCollector.test.js +635 -0
- package/dist/tests/documentSymbolCollector.test.js.map +1 -0
- package/dist/tests/filesystem.test.d.ts +1 -0
- package/dist/tests/filesystem.test.js +194 -0
- package/dist/tests/filesystem.test.js.map +1 -0
- package/dist/tests/fourSlashParser.test.d.ts +1 -0
- package/dist/tests/fourSlashParser.test.js +281 -0
- package/dist/tests/fourSlashParser.test.js.map +1 -0
- package/dist/tests/fourSlashRunner.test.d.ts +1 -0
- package/dist/tests/fourSlashRunner.test.js +52 -0
- package/dist/tests/fourSlashRunner.test.js.map +1 -0
- package/dist/tests/fourslash/completions.autoimport.Lib.Found.Type.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.autoimport.Lib.Found.Type.fourslash.js +30 -0
- package/dist/tests/fourslash/completions.autoimport.Lib.Found.Type.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.autoimport.Lib.Found.duplication.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.autoimport.Lib.Found.duplication.fourslash.js +42 -0
- package/dist/tests/fourslash/completions.autoimport.Lib.Found.duplication.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.autoimport.Lib.NotFound.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.autoimport.Lib.NotFound.fourslash.js +13 -0
- package/dist/tests/fourslash/completions.autoimport.Lib.NotFound.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.autoimport.disabled.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.autoimport.disabled.fourslash.js +23 -0
- package/dist/tests/fourslash/completions.autoimport.disabled.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.autoimport.duplicates.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.autoimport.duplicates.fourslash.js +35 -0
- package/dist/tests/fourslash/completions.autoimport.duplicates.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.autoimport.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.autoimport.fourslash.js +27 -0
- package/dist/tests/fourslash/completions.autoimport.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.autoimport.fromImport.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.autoimport.fromImport.fourslash.js +128 -0
- package/dist/tests/fourslash/completions.autoimport.fromImport.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.autoimport.plainText.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.autoimport.plainText.fourslash.js +27 -0
- package/dist/tests/fourslash/completions.autoimport.plainText.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.autoimport.shadow.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.autoimport.shadow.fourslash.js +43 -0
- package/dist/tests/fourslash/completions.autoimport.shadow.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.autoimport.submodule.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.autoimport.submodule.fourslash.js +29 -0
- package/dist/tests/fourslash/completions.autoimport.submodule.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.autoimport.topLevel.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.autoimport.topLevel.fourslash.js +50 -0
- package/dist/tests/fourslash/completions.autoimport.topLevel.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.builtinDocstrings.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.builtinDocstrings.fourslash.js +116 -0
- package/dist/tests/fourslash/completions.builtinDocstrings.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.builtinOverride.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.builtinOverride.fourslash.js +21 -0
- package/dist/tests/fourslash/completions.builtinOverride.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.call.stringLiteral.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.call.stringLiteral.fourslash.js +54 -0
- package/dist/tests/fourslash/completions.call.stringLiteral.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.call.typedDict.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.call.typedDict.fourslash.js +245 -0
- package/dist/tests/fourslash/completions.call.typedDict.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.call.typedDict.list.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.call.typedDict.list.fourslash.js +162 -0
- package/dist/tests/fourslash/completions.call.typedDict.list.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.call.typedDict.states.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.call.typedDict.states.fourslash.js +132 -0
- package/dist/tests/fourslash/completions.call.typedDict.states.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.classVariable.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.classVariable.fourslash.js +37 -0
- package/dist/tests/fourslash/completions.classVariable.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.comment.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.comment.fourslash.js +27 -0
- package/dist/tests/fourslash/completions.comment.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.declNames.class.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.declNames.class.fourslash.js +30 -0
- package/dist/tests/fourslash/completions.declNames.class.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.declNames.exception.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.declNames.exception.fourslash.js +18 -0
- package/dist/tests/fourslash/completions.declNames.exception.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.declNames.for.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.declNames.for.fourslash.js +26 -0
- package/dist/tests/fourslash/completions.declNames.for.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.declNames.importAlias.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.declNames.importAlias.fourslash.js +15 -0
- package/dist/tests/fourslash/completions.declNames.importAlias.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.declNames.lambda.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.declNames.lambda.fourslash.js +36 -0
- package/dist/tests/fourslash/completions.declNames.lambda.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.declNames.method.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.declNames.method.fourslash.js +68 -0
- package/dist/tests/fourslash/completions.declNames.method.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.declNames.overload.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.declNames.overload.fourslash.js +147 -0
- package/dist/tests/fourslash/completions.declNames.overload.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.declNames.topLevelOverload.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.declNames.topLevelOverload.fourslash.js +131 -0
- package/dist/tests/fourslash/completions.declNames.topLevelOverload.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.dictionary.keys.complex.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.dictionary.keys.complex.fourslash.js +73 -0
- package/dist/tests/fourslash/completions.dictionary.keys.complex.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.dictionary.keys.expression.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.dictionary.keys.expression.fourslash.js +58 -0
- package/dist/tests/fourslash/completions.dictionary.keys.expression.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.dictionary.keys.literalTypes.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.dictionary.keys.literalTypes.fourslash.js +154 -0
- package/dist/tests/fourslash/completions.dictionary.keys.literalTypes.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.dictionary.keys.simple.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.dictionary.keys.simple.fourslash.js +143 -0
- package/dist/tests/fourslash/completions.dictionary.keys.simple.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.dictionary.keys.stringLiterals.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.dictionary.keys.stringLiterals.fourslash.js +109 -0
- package/dist/tests/fourslash/completions.dictionary.keys.stringLiterals.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.dictionary.keys.symbols.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.dictionary.keys.symbols.fourslash.js +50 -0
- package/dist/tests/fourslash/completions.dictionary.keys.symbols.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.enums.members.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.enums.members.fourslash.js +44 -0
- package/dist/tests/fourslash/completions.enums.members.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.excluded.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.excluded.fourslash.js +12 -0
- package/dist/tests/fourslash/completions.excluded.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.fourslash.js +51 -0
- package/dist/tests/fourslash/completions.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.fstring.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.fstring.fourslash.js +32 -0
- package/dist/tests/fourslash/completions.fstring.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.fstring.stringLiteral.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.fstring.stringLiteral.fourslash.js +96 -0
- package/dist/tests/fourslash/completions.fstring.stringLiteral.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.fuzzyMatching.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.fuzzyMatching.fourslash.js +30 -0
- package/dist/tests/fourslash/completions.fuzzyMatching.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.importDunderNames.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.importDunderNames.fourslash.js +29 -0
- package/dist/tests/fourslash/completions.importDunderNames.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.importSubmodule.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.importSubmodule.fourslash.js +22 -0
- package/dist/tests/fourslash/completions.importSubmodule.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.importsDuplicates.fourslash.d.ts +0 -0
- package/dist/tests/fourslash/completions.importsDuplicates.fourslash.js +22 -0
- package/dist/tests/fourslash/completions.importsDuplicates.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.inList.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.inList.fourslash.js +32 -0
- package/dist/tests/fourslash/completions.inList.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.included.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.included.fourslash.js +12 -0
- package/dist/tests/fourslash/completions.included.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.indexer.keys.getitem.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.indexer.keys.getitem.fourslash.js +54 -0
- package/dist/tests/fourslash/completions.indexer.keys.getitem.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.inherited.function.docFromStub.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.inherited.function.docFromStub.fourslash.js +26 -0
- package/dist/tests/fourslash/completions.inherited.function.docFromStub.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.inherited.overload.docFromScrWithStub.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.inherited.overload.docFromScrWithStub.fourslash.js +49 -0
- package/dist/tests/fourslash/completions.inherited.overload.docFromScrWithStub.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.inherited.overload.docFromStub.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.inherited.overload.docFromStub.fourslash.js +50 -0
- package/dist/tests/fourslash/completions.inherited.overload.docFromStub.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.inherited.property.docFromSrc.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.inherited.property.docFromSrc.fourslash.js +101 -0
- package/dist/tests/fourslash/completions.inherited.property.docFromSrc.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.inherited.property.docFromStub.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.inherited.property.docFromStub.fourslash.js +105 -0
- package/dist/tests/fourslash/completions.inherited.property.docFromStub.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.keywords.pythonVersion.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.keywords.pythonVersion.fourslash.js +67 -0
- package/dist/tests/fourslash/completions.keywords.pythonVersion.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.libCodeAndStub.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.libCodeAndStub.fourslash.js +75 -0
- package/dist/tests/fourslash/completions.libCodeAndStub.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.libCodeNoStub.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.libCodeNoStub.fourslash.js +66 -0
- package/dist/tests/fourslash/completions.libCodeNoStub.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.libStub.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.libStub.fourslash.js +66 -0
- package/dist/tests/fourslash/completions.libStub.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.literals.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.literals.fourslash.js +31 -0
- package/dist/tests/fourslash/completions.literals.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.localCode.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.localCode.fourslash.js +71 -0
- package/dist/tests/fourslash/completions.localCode.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.moduleContext.UnknownMemberOnInstance.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.moduleContext.UnknownMemberOnInstance.fourslash.js +17 -0
- package/dist/tests/fourslash/completions.moduleContext.UnknownMemberOnInstance.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.moduleContext.UnknownStaticFunctionOnClass.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.moduleContext.UnknownStaticFunctionOnClass.fourslash.js +57 -0
- package/dist/tests/fourslash/completions.moduleContext.UnknownStaticFunctionOnClass.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.moduleContext.libCodeNoStub.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.moduleContext.libCodeNoStub.fourslash.js +27 -0
- package/dist/tests/fourslash/completions.moduleContext.libCodeNoStub.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.overloads.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.overloads.fourslash.js +37 -0
- package/dist/tests/fourslash/completions.overloads.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.override.default.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.override.default.fourslash.js +47 -0
- package/dist/tests/fourslash/completions.override.default.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.override.default.importStub.d.ts +1 -0
- package/dist/tests/fourslash/completions.override.default.importStub.js +49 -0
- package/dist/tests/fourslash/completions.override.default.importStub.js.map +1 -0
- package/dist/tests/fourslash/completions.override.default.imported.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.override.default.imported.fourslash.js +60 -0
- package/dist/tests/fourslash/completions.override.default.imported.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.override.default.stub.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.override.default.stub.fourslash.js +47 -0
- package/dist/tests/fourslash/completions.override.default.stub.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.override.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.override.fourslash.js +47 -0
- package/dist/tests/fourslash/completions.override.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.override.property.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.override.property.fourslash.js +31 -0
- package/dist/tests/fourslash/completions.override.property.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.override.property.stub.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.override.property.stub.fourslash.js +31 -0
- package/dist/tests/fourslash/completions.override.property.stub.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.override.staticAndClassmethod.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.override.staticAndClassmethod.fourslash.js +63 -0
- package/dist/tests/fourslash/completions.override.staticAndClassmethod.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.override.stub.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.override.stub.fourslash.js +47 -0
- package/dist/tests/fourslash/completions.override.stub.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.override2.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.override2.fourslash.js +66 -0
- package/dist/tests/fourslash/completions.override2.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.parameters.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.parameters.fourslash.js +22 -0
- package/dist/tests/fourslash/completions.parameters.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.params.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.params.fourslash.js +23 -0
- package/dist/tests/fourslash/completions.params.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.parentFolder.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.parentFolder.fourslash.js +15 -0
- package/dist/tests/fourslash/completions.parentFolder.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.parentFolders.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.parentFolders.fourslash.js +68 -0
- package/dist/tests/fourslash/completions.parentFolders.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.plainText.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.plainText.fourslash.js +34 -0
- package/dist/tests/fourslash/completions.plainText.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.private.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.private.fourslash.js +61 -0
- package/dist/tests/fourslash/completions.private.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.property.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.property.fourslash.js +28 -0
- package/dist/tests/fourslash/completions.property.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.propertyDocStrings.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.propertyDocStrings.fourslash.js +64 -0
- package/dist/tests/fourslash/completions.propertyDocStrings.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.self.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.self.fourslash.js +43 -0
- package/dist/tests/fourslash/completions.self.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.stringLiteral.escape.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.stringLiteral.escape.fourslash.js +71 -0
- package/dist/tests/fourslash/completions.stringLiteral.escape.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.stringLiteral.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.stringLiteral.fourslash.js +78 -0
- package/dist/tests/fourslash/completions.stringLiteral.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.typeAlias.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.typeAlias.fourslash.js +29 -0
- package/dist/tests/fourslash/completions.typeAlias.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.typeshed.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.typeshed.fourslash.js +9 -0
- package/dist/tests/fourslash/completions.typeshed.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.vardecls.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.vardecls.fourslash.js +33 -0
- package/dist/tests/fourslash/completions.vardecls.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.variableDocStrings.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.variableDocStrings.fourslash.js +68 -0
- package/dist/tests/fourslash/completions.variableDocStrings.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.wildcardimports.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.wildcardimports.fourslash.js +109 -0
- package/dist/tests/fourslash/completions.wildcardimports.fourslash.js.map +1 -0
- package/dist/tests/fourslash/completions.with.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/completions.with.fourslash.js +25 -0
- package/dist/tests/fourslash/completions.with.fourslash.js.map +1 -0
- package/dist/tests/fourslash/diagnostics.missingModuleSource.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/diagnostics.missingModuleSource.fourslash.js +64 -0
- package/dist/tests/fourslash/diagnostics.missingModuleSource.fourslash.js.map +1 -0
- package/dist/tests/fourslash/findDefinitions.builtinClass.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/findDefinitions.builtinClass.fourslash.js +24 -0
- package/dist/tests/fourslash/findDefinitions.builtinClass.fourslash.js.map +1 -0
- package/dist/tests/fourslash/findDefinitions.classes.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/findDefinitions.classes.fourslash.js +93 -0
- package/dist/tests/fourslash/findDefinitions.classes.fourslash.js.map +1 -0
- package/dist/tests/fourslash/findDefinitions.definitionFilter.preferSource.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/findDefinitions.definitionFilter.preferSource.fourslash.js +23 -0
- package/dist/tests/fourslash/findDefinitions.definitionFilter.preferSource.fourslash.js.map +1 -0
- package/dist/tests/fourslash/findDefinitions.definitionFilter.preferSource.onlyStubs.d.ts +1 -0
- package/dist/tests/fourslash/findDefinitions.definitionFilter.preferSource.onlyStubs.js +19 -0
- package/dist/tests/fourslash/findDefinitions.definitionFilter.preferSource.onlyStubs.js.map +1 -0
- package/dist/tests/fourslash/findDefinitions.definitionFilter.preferStub.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/findDefinitions.definitionFilter.preferStub.fourslash.js +23 -0
- package/dist/tests/fourslash/findDefinitions.definitionFilter.preferStub.fourslash.js.map +1 -0
- package/dist/tests/fourslash/findDefinitions.definitionFilter.preferStub.onlySource.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/findDefinitions.definitionFilter.preferStub.onlySource.fourslash.js +20 -0
- package/dist/tests/fourslash/findDefinitions.definitionFilter.preferStub.onlySource.fourslash.js.map +1 -0
- package/dist/tests/fourslash/findDefinitions.fields.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/findDefinitions.fields.fourslash.js +123 -0
- package/dist/tests/fourslash/findDefinitions.fields.fourslash.js.map +1 -0
- package/dist/tests/fourslash/findDefinitions.functions.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/findDefinitions.functions.fourslash.js +79 -0
- package/dist/tests/fourslash/findDefinitions.functions.fourslash.js.map +1 -0
- package/dist/tests/fourslash/findDefinitions.methods.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/findDefinitions.methods.fourslash.js +154 -0
- package/dist/tests/fourslash/findDefinitions.methods.fourslash.js.map +1 -0
- package/dist/tests/fourslash/findDefinitions.modules.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/findDefinitions.modules.fourslash.js +42 -0
- package/dist/tests/fourslash/findDefinitions.modules.fourslash.js.map +1 -0
- package/dist/tests/fourslash/findDefinitions.namespaceImport.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/findDefinitions.namespaceImport.fourslash.js +34 -0
- package/dist/tests/fourslash/findDefinitions.namespaceImport.fourslash.js.map +1 -0
- package/dist/tests/fourslash/findDefinitions.overloads.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/findDefinitions.overloads.fourslash.js +213 -0
- package/dist/tests/fourslash/findDefinitions.overloads.fourslash.js.map +1 -0
- package/dist/tests/fourslash/findDefinitions.parameters.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/findDefinitions.parameters.fourslash.js +154 -0
- package/dist/tests/fourslash/findDefinitions.parameters.fourslash.js.map +1 -0
- package/dist/tests/fourslash/findDefinitions.sourceAndStub.function.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/findDefinitions.sourceAndStub.function.fourslash.js +23 -0
- package/dist/tests/fourslash/findDefinitions.sourceAndStub.function.fourslash.js.map +1 -0
- package/dist/tests/fourslash/findDefinitions.sourceAndStub.innerClass.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/findDefinitions.sourceAndStub.innerClass.fourslash.js +29 -0
- package/dist/tests/fourslash/findDefinitions.sourceAndStub.innerClass.fourslash.js.map +1 -0
- package/dist/tests/fourslash/findDefinitions.sourceAndStub.innerClassMethod.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/findDefinitions.sourceAndStub.innerClassMethod.fourslash.js +30 -0
- package/dist/tests/fourslash/findDefinitions.sourceAndStub.innerClassMethod.fourslash.js.map +1 -0
- package/dist/tests/fourslash/findDefinitions.sourceAndStub.outerClass.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/findDefinitions.sourceAndStub.outerClass.fourslash.js +25 -0
- package/dist/tests/fourslash/findDefinitions.sourceAndStub.outerClass.fourslash.js.map +1 -0
- package/dist/tests/fourslash/findDefinitions.sourceAndStub.outerClassMethod.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/findDefinitions.sourceAndStub.outerClassMethod.fourslash.js +26 -0
- package/dist/tests/fourslash/findDefinitions.sourceAndStub.outerClassMethod.fourslash.js.map +1 -0
- package/dist/tests/fourslash/findDefinitions.sourceAndStub.outerClassPropertyReadOnly.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/findDefinitions.sourceAndStub.outerClassPropertyReadOnly.fourslash.js +28 -0
- package/dist/tests/fourslash/findDefinitions.sourceAndStub.outerClassPropertyReadOnly.fourslash.js.map +1 -0
- package/dist/tests/fourslash/findDefinitions.sourceAndStub.outerClassPropertyReadWrite.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/findDefinitions.sourceAndStub.outerClassPropertyReadWrite.fourslash.js +33 -0
- package/dist/tests/fourslash/findDefinitions.sourceAndStub.outerClassPropertyReadWrite.fourslash.js.map +1 -0
- package/dist/tests/fourslash/findDefinitions.sourceOnly.class.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/findDefinitions.sourceOnly.class.fourslash.js +26 -0
- package/dist/tests/fourslash/findDefinitions.sourceOnly.class.fourslash.js.map +1 -0
- package/dist/tests/fourslash/findDefinitions.sourceOnly.function1.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/findDefinitions.sourceOnly.function1.fourslash.js +25 -0
- package/dist/tests/fourslash/findDefinitions.sourceOnly.function1.fourslash.js.map +1 -0
- package/dist/tests/fourslash/findDefinitions.sourceOnly.function2.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/findDefinitions.sourceOnly.function2.fourslash.js +25 -0
- package/dist/tests/fourslash/findDefinitions.sourceOnly.function2.fourslash.js.map +1 -0
- package/dist/tests/fourslash/findDefinitions.sourceOnly.relativeImport1.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/findDefinitions.sourceOnly.relativeImport1.fourslash.js +20 -0
- package/dist/tests/fourslash/findDefinitions.sourceOnly.relativeImport1.fourslash.js.map +1 -0
- package/dist/tests/fourslash/findDefinitions.sourceOnly.relativeImport2.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/findDefinitions.sourceOnly.relativeImport2.fourslash.js +20 -0
- package/dist/tests/fourslash/findDefinitions.sourceOnly.relativeImport2.fourslash.js.map +1 -0
- package/dist/tests/fourslash/findDefinitions.stubOnly.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/findDefinitions.stubOnly.fourslash.js +59 -0
- package/dist/tests/fourslash/findDefinitions.stubOnly.fourslash.js.map +1 -0
- package/dist/tests/fourslash/findDefinitions.stubPackages.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/findDefinitions.stubPackages.fourslash.js +59 -0
- package/dist/tests/fourslash/findDefinitions.stubPackages.fourslash.js.map +1 -0
- package/dist/tests/fourslash/findDefinitions.typedDict.keys.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/findDefinitions.typedDict.keys.fourslash.js +94 -0
- package/dist/tests/fourslash/findDefinitions.typedDict.keys.fourslash.js.map +1 -0
- package/dist/tests/fourslash/findDefinitions.variables.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/findDefinitions.variables.fourslash.js +79 -0
- package/dist/tests/fourslash/findDefinitions.variables.fourslash.js.map +1 -0
- package/dist/tests/fourslash/findDefinitions.wildcardimports.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/findDefinitions.wildcardimports.fourslash.js +106 -0
- package/dist/tests/fourslash/findDefinitions.wildcardimports.fourslash.js.map +1 -0
- package/dist/tests/fourslash/findTypeDefinitions.builtinClass.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/findTypeDefinitions.builtinClass.fourslash.js +24 -0
- package/dist/tests/fourslash/findTypeDefinitions.builtinClass.fourslash.js.map +1 -0
- package/dist/tests/fourslash/findTypeDefinitions.classes.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/findTypeDefinitions.classes.fourslash.js +66 -0
- package/dist/tests/fourslash/findTypeDefinitions.classes.fourslash.js.map +1 -0
- package/dist/tests/fourslash/findTypeDefinitions.unions.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/findTypeDefinitions.unions.fourslash.js +26 -0
- package/dist/tests/fourslash/findTypeDefinitions.unions.fourslash.js.map +1 -0
- package/dist/tests/fourslash/findallreferences.classPropertyReadWrite.d.ts +1 -0
- package/dist/tests/fourslash/findallreferences.classPropertyReadWrite.js +36 -0
- package/dist/tests/fourslash/findallreferences.classPropertyReadWrite.js.map +1 -0
- package/dist/tests/fourslash/findallreferences.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/findallreferences.fourslash.js +30 -0
- package/dist/tests/fourslash/findallreferences.fourslash.js.map +1 -0
- package/dist/tests/fourslash/findallreferences.importalias.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/findallreferences.importalias.fourslash.js +30 -0
- package/dist/tests/fourslash/findallreferences.importalias.fourslash.js.map +1 -0
- package/dist/tests/fourslash/findallreferences.invokedFromLibrary.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/findallreferences.invokedFromLibrary.fourslash.js +46 -0
- package/dist/tests/fourslash/findallreferences.invokedFromLibrary.fourslash.js.map +1 -0
- package/dist/tests/fourslash/findallreferences.module.nested.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/findallreferences.module.nested.fourslash.js +60 -0
- package/dist/tests/fourslash/findallreferences.module.nested.fourslash.js.map +1 -0
- package/dist/tests/fourslash/findallreferences.modules.duplicated.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/findallreferences.modules.duplicated.fourslash.js +54 -0
- package/dist/tests/fourslash/findallreferences.modules.duplicated.fourslash.js.map +1 -0
- package/dist/tests/fourslash/findallreferences.modules.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/findallreferences.modules.fourslash.js +41 -0
- package/dist/tests/fourslash/findallreferences.modules.fourslash.js.map +1 -0
- package/dist/tests/fourslash/findallreferences.modules.shadow.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/findallreferences.modules.shadow.fourslash.js +83 -0
- package/dist/tests/fourslash/findallreferences.modules.shadow.fourslash.js.map +1 -0
- package/dist/tests/fourslash/findallreferences.openFiles.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/findallreferences.openFiles.fourslash.js +32 -0
- package/dist/tests/fourslash/findallreferences.openFiles.fourslash.js.map +1 -0
- package/dist/tests/fourslash/findallreferences.parameter.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/findallreferences.parameter.fourslash.js +22 -0
- package/dist/tests/fourslash/findallreferences.parameter.fourslash.js.map +1 -0
- package/dist/tests/fourslash/findallreferences.sourceAndStub.class.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/findallreferences.sourceAndStub.class.fourslash.js +29 -0
- package/dist/tests/fourslash/findallreferences.sourceAndStub.class.fourslash.js.map +1 -0
- package/dist/tests/fourslash/findallreferences.sourceAndStub.classMethod.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/findallreferences.sourceAndStub.classMethod.fourslash.js +33 -0
- package/dist/tests/fourslash/findallreferences.sourceAndStub.classMethod.fourslash.js.map +1 -0
- package/dist/tests/fourslash/findallreferences.sourceAndStub.classPropertyReadOnly.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/findallreferences.sourceAndStub.classPropertyReadOnly.fourslash.js +36 -0
- package/dist/tests/fourslash/findallreferences.sourceAndStub.classPropertyReadOnly.fourslash.js.map +1 -0
- package/dist/tests/fourslash/findallreferences.sourceAndStub.classPropertyReadWrite.fourslash.skip.d.ts +1 -0
- package/dist/tests/fourslash/findallreferences.sourceAndStub.classPropertyReadWrite.fourslash.skip.js +44 -0
- package/dist/tests/fourslash/findallreferences.sourceAndStub.classPropertyReadWrite.fourslash.skip.js.map +1 -0
- package/dist/tests/fourslash/findallreferences.sourceAndStub.function.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/findallreferences.sourceAndStub.function.fourslash.js +31 -0
- package/dist/tests/fourslash/findallreferences.sourceAndStub.function.fourslash.js.map +1 -0
- package/dist/tests/fourslash/findallreferences.variable.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/findallreferences.variable.fourslash.js +22 -0
- package/dist/tests/fourslash/findallreferences.variable.fourslash.js.map +1 -0
- package/dist/tests/fourslash/fourslash.d.ts +301 -0
- package/dist/tests/fourslash/fourslash.js +25 -0
- package/dist/tests/fourslash/fourslash.js.map +1 -0
- package/dist/tests/fourslash/highlightreferences.attributes.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/highlightreferences.attributes.fourslash.js +30 -0
- package/dist/tests/fourslash/highlightreferences.attributes.fourslash.js.map +1 -0
- package/dist/tests/fourslash/hover.builtinDocstrings.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/hover.builtinDocstrings.fourslash.js +63 -0
- package/dist/tests/fourslash/hover.builtinDocstrings.fourslash.js.map +1 -0
- package/dist/tests/fourslash/hover.classNoInit.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/hover.classNoInit.fourslash.js +14 -0
- package/dist/tests/fourslash/hover.classNoInit.fourslash.js.map +1 -0
- package/dist/tests/fourslash/hover.docFromScr.stringFormat.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/hover.docFromScr.stringFormat.fourslash.js +47 -0
- package/dist/tests/fourslash/hover.docFromScr.stringFormat.fourslash.js.map +1 -0
- package/dist/tests/fourslash/hover.docFromSrc.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/hover.docFromSrc.fourslash.js +77 -0
- package/dist/tests/fourslash/hover.docFromSrc.fourslash.js.map +1 -0
- package/dist/tests/fourslash/hover.docFromSrc.pkg-vs-module1.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/hover.docFromSrc.pkg-vs-module1.fourslash.js +22 -0
- package/dist/tests/fourslash/hover.docFromSrc.pkg-vs-module1.fourslash.js.map +1 -0
- package/dist/tests/fourslash/hover.docFromSrc.pkg-vs-module2.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/hover.docFromSrc.pkg-vs-module2.fourslash.js +22 -0
- package/dist/tests/fourslash/hover.docFromSrc.pkg-vs-module2.fourslash.js.map +1 -0
- package/dist/tests/fourslash/hover.docFromSrc.relativeImport1.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/hover.docFromSrc.relativeImport1.fourslash.js +21 -0
- package/dist/tests/fourslash/hover.docFromSrc.relativeImport1.fourslash.js.map +1 -0
- package/dist/tests/fourslash/hover.docFromSrc.relativeImport2.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/hover.docFromSrc.relativeImport2.fourslash.js +20 -0
- package/dist/tests/fourslash/hover.docFromSrc.relativeImport2.fourslash.js.map +1 -0
- package/dist/tests/fourslash/hover.docFromSrc.relativeImport3.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/hover.docFromSrc.relativeImport3.fourslash.js +38 -0
- package/dist/tests/fourslash/hover.docFromSrc.relativeImport3.fourslash.js.map +1 -0
- package/dist/tests/fourslash/hover.docFromSrc.stubs-package.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/hover.docFromSrc.stubs-package.fourslash.js +25 -0
- package/dist/tests/fourslash/hover.docFromSrc.stubs-package.fourslash.js.map +1 -0
- package/dist/tests/fourslash/hover.docFromSrc.typeshed.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/hover.docFromSrc.typeshed.fourslash.js +18 -0
- package/dist/tests/fourslash/hover.docFromSrc.typeshed.fourslash.js.map +1 -0
- package/dist/tests/fourslash/hover.docstring.links.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/hover.docstring.links.fourslash.js +12 -0
- package/dist/tests/fourslash/hover.docstring.links.fourslash.js.map +1 -0
- package/dist/tests/fourslash/hover.docstring.overloads.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/hover.docstring.overloads.fourslash.js +38 -0
- package/dist/tests/fourslash/hover.docstring.overloads.fourslash.js.map +1 -0
- package/dist/tests/fourslash/hover.docstring.split.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/hover.docstring.split.fourslash.js +24 -0
- package/dist/tests/fourslash/hover.docstring.split.fourslash.js.map +1 -0
- package/dist/tests/fourslash/hover.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/hover.fourslash.js +20 -0
- package/dist/tests/fourslash/hover.fourslash.js.map +1 -0
- package/dist/tests/fourslash/hover.import.django.view.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/hover.import.django.view.fourslash.js +23 -0
- package/dist/tests/fourslash/hover.import.django.view.fourslash.js.map +1 -0
- package/dist/tests/fourslash/hover.import.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/hover.import.fourslash.js +10 -0
- package/dist/tests/fourslash/hover.import.fourslash.js.map +1 -0
- package/dist/tests/fourslash/hover.inherited.docFromSrc.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/hover.inherited.docFromSrc.fourslash.js +61 -0
- package/dist/tests/fourslash/hover.inherited.docFromSrc.fourslash.js.map +1 -0
- package/dist/tests/fourslash/hover.inherited.docFromSrcWithStub.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/hover.inherited.docFromSrcWithStub.fourslash.js +51 -0
- package/dist/tests/fourslash/hover.inherited.docFromSrcWithStub.fourslash.js.map +1 -0
- package/dist/tests/fourslash/hover.inherited.docFromStub.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/hover.inherited.docFromStub.fourslash.js +40 -0
- package/dist/tests/fourslash/hover.inherited.docFromStub.fourslash.js.map +1 -0
- package/dist/tests/fourslash/hover.inherited.overload.docFromSrcWithStub.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/hover.inherited.overload.docFromSrcWithStub.fourslash.js +43 -0
- package/dist/tests/fourslash/hover.inherited.overload.docFromSrcWithStub.fourslash.js.map +1 -0
- package/dist/tests/fourslash/hover.inherited.overload.docFromStub.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/hover.inherited.overload.docFromStub.fourslash.js +44 -0
- package/dist/tests/fourslash/hover.inherited.overload.docFromStub.fourslash.js.map +1 -0
- package/dist/tests/fourslash/hover.inherited.property.docFromSrcWithStub.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/hover.inherited.property.docFromSrcWithStub.fourslash.js +84 -0
- package/dist/tests/fourslash/hover.inherited.property.docFromSrcWithStub.fourslash.js.map +1 -0
- package/dist/tests/fourslash/hover.inherited.property.docFromStub.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/hover.inherited.property.docFromStub.fourslash.js +88 -0
- package/dist/tests/fourslash/hover.inherited.property.docFromStub.fourslash.js.map +1 -0
- package/dist/tests/fourslash/hover.init.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/hover.init.fourslash.js +38 -0
- package/dist/tests/fourslash/hover.init.fourslash.js.map +1 -0
- package/dist/tests/fourslash/hover.libCodeAndStub.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/hover.libCodeAndStub.fourslash.js +49 -0
- package/dist/tests/fourslash/hover.libCodeAndStub.fourslash.js.map +1 -0
- package/dist/tests/fourslash/hover.libCodeNoStub.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/hover.libCodeNoStub.fourslash.js +39 -0
- package/dist/tests/fourslash/hover.libCodeNoStub.fourslash.js.map +1 -0
- package/dist/tests/fourslash/hover.libStub.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/hover.libStub.fourslash.js +39 -0
- package/dist/tests/fourslash/hover.libStub.fourslash.js.map +1 -0
- package/dist/tests/fourslash/hover.optionalAliasParameter.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/hover.optionalAliasParameter.fourslash.js +14 -0
- package/dist/tests/fourslash/hover.optionalAliasParameter.fourslash.js.map +1 -0
- package/dist/tests/fourslash/hover.plainText.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/hover.plainText.fourslash.js +20 -0
- package/dist/tests/fourslash/hover.plainText.fourslash.js.map +1 -0
- package/dist/tests/fourslash/hover.typedDict.key.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/hover.typedDict.key.fourslash.js +50 -0
- package/dist/tests/fourslash/hover.typedDict.key.fourslash.js.map +1 -0
- package/dist/tests/fourslash/hover.variable.docString.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/hover.variable.docString.fourslash.js +35 -0
- package/dist/tests/fourslash/hover.variable.docString.fourslash.js.map +1 -0
- package/dist/tests/fourslash/hover.wildcardimports.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/hover.wildcardimports.fourslash.js +73 -0
- package/dist/tests/fourslash/hover.wildcardimports.fourslash.js.map +1 -0
- package/dist/tests/fourslash/import.publicSymbols.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/import.publicSymbols.fourslash.js +63 -0
- package/dist/tests/fourslash/import.publicSymbols.fourslash.js.map +1 -0
- package/dist/tests/fourslash/import.pytyped.dunderAll.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/import.pytyped.dunderAll.fourslash.js +72 -0
- package/dist/tests/fourslash/import.pytyped.dunderAll.fourslash.js.map +1 -0
- package/dist/tests/fourslash/import.pytyped.privateSymbols.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/import.pytyped.privateSymbols.fourslash.js +61 -0
- package/dist/tests/fourslash/import.pytyped.privateSymbols.fourslash.js.map +1 -0
- package/dist/tests/fourslash/import.pytyped.typeCheckingBasic.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/import.pytyped.typeCheckingBasic.fourslash.js +35 -0
- package/dist/tests/fourslash/import.pytyped.typeCheckingBasic.fourslash.js.map +1 -0
- package/dist/tests/fourslash/import.pytyped.typeCheckingOff.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/import.pytyped.typeCheckingOff.fourslash.js +35 -0
- package/dist/tests/fourslash/import.pytyped.typeCheckingOff.fourslash.js.map +1 -0
- package/dist/tests/fourslash/import.wildcard.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/import.wildcard.fourslash.js +24 -0
- package/dist/tests/fourslash/import.wildcard.fourslash.js.map +1 -0
- package/dist/tests/fourslash/importnotresolved.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/importnotresolved.fourslash.js +13 -0
- package/dist/tests/fourslash/importnotresolved.fourslash.js.map +1 -0
- package/dist/tests/fourslash/missingModuleSource.disablingInStrictMode.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/missingModuleSource.disablingInStrictMode.fourslash.js +18 -0
- package/dist/tests/fourslash/missingModuleSource.disablingInStrictMode.fourslash.js.map +1 -0
- package/dist/tests/fourslash/missingModuleSource.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/missingModuleSource.fourslash.js +13 -0
- package/dist/tests/fourslash/missingModuleSource.fourslash.js.map +1 -0
- package/dist/tests/fourslash/missingTypeStub.codeAction.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/missingTypeStub.codeAction.fourslash.js +31 -0
- package/dist/tests/fourslash/missingTypeStub.codeAction.fourslash.js.map +1 -0
- package/dist/tests/fourslash/missingTypeStub.command.multipart.fourslash.d.ts +7 -0
- package/dist/tests/fourslash/missingTypeStub.command.multipart.fourslash.js +44 -0
- package/dist/tests/fourslash/missingTypeStub.command.multipart.fourslash.js.map +1 -0
- package/dist/tests/fourslash/missingTypeStub.command.singlefile.fourslash.d.ts +7 -0
- package/dist/tests/fourslash/missingTypeStub.command.singlefile.fourslash.js +35 -0
- package/dist/tests/fourslash/missingTypeStub.command.singlefile.fourslash.js.map +1 -0
- package/dist/tests/fourslash/missingTypeStub.command.singlepart.fourslash.d.ts +7 -0
- package/dist/tests/fourslash/missingTypeStub.command.singlepart.fourslash.js +35 -0
- package/dist/tests/fourslash/missingTypeStub.command.singlepart.fourslash.js.map +1 -0
- package/dist/tests/fourslash/missingTypeStub.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/missingTypeStub.fourslash.js +18 -0
- package/dist/tests/fourslash/missingTypeStub.fourslash.js.map +1 -0
- package/dist/tests/fourslash/missingTypeStub.invokeCodeAction.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/missingTypeStub.invokeCodeAction.fourslash.js +34 -0
- package/dist/tests/fourslash/missingTypeStub.invokeCodeAction.fourslash.js.map +1 -0
- package/dist/tests/fourslash/noerrors.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/noerrors.fourslash.js +9 -0
- package/dist/tests/fourslash/noerrors.fourslash.js.map +1 -0
- package/dist/tests/fourslash/orderImports1.command.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/orderImports1.command.fourslash.js +17 -0
- package/dist/tests/fourslash/orderImports1.command.fourslash.js.map +1 -0
- package/dist/tests/fourslash/orderImports2.command.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/orderImports2.command.fourslash.js +21 -0
- package/dist/tests/fourslash/orderImports2.command.fourslash.js.map +1 -0
- package/dist/tests/fourslash/rename.externallyHidden.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/rename.externallyHidden.fourslash.js +23 -0
- package/dist/tests/fourslash/rename.externallyHidden.fourslash.js.map +1 -0
- package/dist/tests/fourslash/rename.externallyHidden.params.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/rename.externallyHidden.params.fourslash.js +23 -0
- package/dist/tests/fourslash/rename.externallyHidden.params.fourslash.js.map +1 -0
- package/dist/tests/fourslash/rename.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/rename.fourslash.js +26 -0
- package/dist/tests/fourslash/rename.fourslash.js.map +1 -0
- package/dist/tests/fourslash/rename.library.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/rename.library.fourslash.js +26 -0
- package/dist/tests/fourslash/rename.library.fourslash.js.map +1 -0
- package/dist/tests/fourslash/rename.library.sourceAndStub.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/rename.library.sourceAndStub.fourslash.js +29 -0
- package/dist/tests/fourslash/rename.library.sourceAndStub.fourslash.js.map +1 -0
- package/dist/tests/fourslash/rename.multipleDecl.fourslash.d.ts +2 -0
- package/dist/tests/fourslash/rename.multipleDecl.fourslash.js +19 -0
- package/dist/tests/fourslash/rename.multipleDecl.fourslash.js.map +1 -0
- package/dist/tests/fourslash/rename.sourceAndStub.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/rename.sourceAndStub.fourslash.js +33 -0
- package/dist/tests/fourslash/rename.sourceAndStub.fourslash.js.map +1 -0
- package/dist/tests/fourslash/rename.string.excluded.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/rename.string.excluded.fourslash.js +39 -0
- package/dist/tests/fourslash/rename.string.excluded.fourslash.js.map +1 -0
- package/dist/tests/fourslash/rename.string.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/rename.string.fourslash.js +25 -0
- package/dist/tests/fourslash/rename.string.fourslash.js.map +1 -0
- package/dist/tests/fourslash/signature.builtinDocstrings.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/signature.builtinDocstrings.fourslash.js +62 -0
- package/dist/tests/fourslash/signature.builtinDocstrings.fourslash.js.map +1 -0
- package/dist/tests/fourslash/signature.complicated.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/signature.complicated.fourslash.js +97 -0
- package/dist/tests/fourslash/signature.complicated.fourslash.js.map +1 -0
- package/dist/tests/fourslash/signature.cornercases.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/signature.cornercases.fourslash.js +22 -0
- package/dist/tests/fourslash/signature.cornercases.fourslash.js.map +1 -0
- package/dist/tests/fourslash/signature.docstrings.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/signature.docstrings.fourslash.js +42 -0
- package/dist/tests/fourslash/signature.docstrings.fourslash.js.map +1 -0
- package/dist/tests/fourslash/signature.docstrings.overloaded.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/signature.docstrings.overloaded.fourslash.js +49 -0
- package/dist/tests/fourslash/signature.docstrings.overloaded.fourslash.js.map +1 -0
- package/dist/tests/fourslash/signature.docstrings.wildcardimports.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/signature.docstrings.wildcardimports.fourslash.js +115 -0
- package/dist/tests/fourslash/signature.docstrings.wildcardimports.fourslash.js.map +1 -0
- package/dist/tests/fourslash/signature.overload.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/signature.overload.fourslash.js +63 -0
- package/dist/tests/fourslash/signature.overload.fourslash.js.map +1 -0
- package/dist/tests/fourslash/signature.simple.fourslash.d.ts +1 -0
- package/dist/tests/fourslash/signature.simple.fourslash.js +104 -0
- package/dist/tests/fourslash/signature.simple.fourslash.js.map +1 -0
- package/dist/tests/harness/fourslash/fourSlashParser.d.ts +10 -0
- package/dist/tests/harness/fourslash/fourSlashParser.js +347 -0
- package/dist/tests/harness/fourslash/fourSlashParser.js.map +1 -0
- package/dist/tests/harness/fourslash/fourSlashTypes.d.ts +81 -0
- package/dist/tests/harness/fourslash/fourSlashTypes.js +65 -0
- package/dist/tests/harness/fourslash/fourSlashTypes.js.map +1 -0
- package/dist/tests/harness/fourslash/runner.d.ts +20 -0
- package/dist/tests/harness/fourslash/runner.js +93 -0
- package/dist/tests/harness/fourslash/runner.js.map +1 -0
- package/dist/tests/harness/fourslash/testLanguageService.d.ts +40 -0
- package/dist/tests/harness/fourslash/testLanguageService.js +120 -0
- package/dist/tests/harness/fourslash/testLanguageService.js.map +1 -0
- package/dist/tests/harness/fourslash/testState.Consts.d.ts +11 -0
- package/dist/tests/harness/fourslash/testState.Consts.js +50 -0
- package/dist/tests/harness/fourslash/testState.Consts.js.map +1 -0
- package/dist/tests/harness/fourslash/testState.d.ts +232 -0
- package/dist/tests/harness/fourslash/testState.js +1381 -0
- package/dist/tests/harness/fourslash/testState.js.map +1 -0
- package/dist/tests/harness/testAccessHost.d.ts +8 -0
- package/dist/tests/harness/testAccessHost.js +26 -0
- package/dist/tests/harness/testAccessHost.js.map +1 -0
- package/dist/tests/harness/testHost.d.ts +16 -0
- package/dist/tests/harness/testHost.js +161 -0
- package/dist/tests/harness/testHost.js.map +1 -0
- package/dist/tests/harness/utils.d.ts +74 -0
- package/dist/tests/harness/utils.js +328 -0
- package/dist/tests/harness/utils.js.map +1 -0
- package/dist/tests/harness/vfs/factory.d.ts +32 -0
- package/dist/tests/harness/vfs/factory.js +173 -0
- package/dist/tests/harness/vfs/factory.js.map +1 -0
- package/dist/tests/harness/vfs/filesystem.d.ts +430 -0
- package/dist/tests/harness/vfs/filesystem.js +1455 -0
- package/dist/tests/harness/vfs/filesystem.js.map +1 -0
- package/dist/tests/harness/vfs/pathValidation.d.ts +24 -0
- package/dist/tests/harness/vfs/pathValidation.js +123 -0
- package/dist/tests/harness/vfs/pathValidation.js.map +1 -0
- package/dist/tests/importAdder.test.d.ts +1 -0
- package/dist/tests/importAdder.test.js +1192 -0
- package/dist/tests/importAdder.test.js.map +1 -0
- package/dist/tests/importResolver.test.d.ts +1 -0
- package/dist/tests/importResolver.test.js +450 -0
- package/dist/tests/importResolver.test.js.map +1 -0
- package/dist/tests/importStatementUtils.test.d.ts +1 -0
- package/dist/tests/importStatementUtils.test.js +371 -0
- package/dist/tests/importStatementUtils.test.js.map +1 -0
- package/dist/tests/indentationUtils.ptvs.test.d.ts +1 -0
- package/dist/tests/indentationUtils.ptvs.test.js +324 -0
- package/dist/tests/indentationUtils.ptvs.test.js.map +1 -0
- package/dist/tests/indentationUtils.reindent.test.d.ts +1 -0
- package/dist/tests/indentationUtils.reindent.test.js +332 -0
- package/dist/tests/indentationUtils.reindent.test.js.map +1 -0
- package/dist/tests/indentationUtils.test.d.ts +1 -0
- package/dist/tests/indentationUtils.test.js +375 -0
- package/dist/tests/indentationUtils.test.js.map +1 -0
- package/dist/tests/ipythonMode.test.d.ts +1 -0
- package/dist/tests/ipythonMode.test.js +303 -0
- package/dist/tests/ipythonMode.test.js.map +1 -0
- package/dist/tests/localizer.test.d.ts +1 -0
- package/dist/tests/localizer.test.js +64 -0
- package/dist/tests/localizer.test.js.map +1 -0
- package/dist/tests/parseTreeUtils.test.d.ts +1 -0
- package/dist/tests/parseTreeUtils.test.js +228 -0
- package/dist/tests/parseTreeUtils.test.js.map +1 -0
- package/dist/tests/parser.test.d.ts +1 -0
- package/dist/tests/parser.test.js +101 -0
- package/dist/tests/parser.test.js.map +1 -0
- package/dist/tests/pathUtils.test.d.ts +1 -0
- package/dist/tests/pathUtils.test.js +253 -0
- package/dist/tests/pathUtils.test.js.map +1 -0
- package/dist/tests/pyrightFileSystem.test.d.ts +1 -0
- package/dist/tests/pyrightFileSystem.test.js +152 -0
- package/dist/tests/pyrightFileSystem.test.js.map +1 -0
- package/dist/tests/renameModule.folder.test.d.ts +1 -0
- package/dist/tests/renameModule.folder.test.js +229 -0
- package/dist/tests/renameModule.folder.test.js.map +1 -0
- package/dist/tests/renameModule.fromImports.test.d.ts +1 -0
- package/dist/tests/renameModule.fromImports.test.js +790 -0
- package/dist/tests/renameModule.fromImports.test.js.map +1 -0
- package/dist/tests/renameModule.imports.test.d.ts +1 -0
- package/dist/tests/renameModule.imports.test.js +380 -0
- package/dist/tests/renameModule.imports.test.js.map +1 -0
- package/dist/tests/renameModule.misc.test.d.ts +1 -0
- package/dist/tests/renameModule.misc.test.js +615 -0
- package/dist/tests/renameModule.misc.test.js.map +1 -0
- package/dist/tests/renameModule.relativePath.test.d.ts +1 -0
- package/dist/tests/renameModule.relativePath.test.js +231 -0
- package/dist/tests/renameModule.relativePath.test.js.map +1 -0
- package/dist/tests/renameModuleTestUtils.d.ts +4 -0
- package/dist/tests/renameModuleTestUtils.js +148 -0
- package/dist/tests/renameModuleTestUtils.js.map +1 -0
- package/dist/tests/sourceFile.test.d.ts +1 -0
- package/dist/tests/sourceFile.test.js +25 -0
- package/dist/tests/sourceFile.test.js.map +1 -0
- package/dist/tests/stringUtils.test.d.ts +1 -0
- package/dist/tests/stringUtils.test.js +69 -0
- package/dist/tests/stringUtils.test.js.map +1 -0
- package/dist/tests/symbolNameUtils.test.d.ts +1 -0
- package/dist/tests/symbolNameUtils.test.js +83 -0
- package/dist/tests/symbolNameUtils.test.js.map +1 -0
- package/dist/tests/testState.test.d.ts +1 -0
- package/dist/tests/testState.test.js +521 -0
- package/dist/tests/testState.test.js.map +1 -0
- package/dist/tests/testUtils.d.ts +27 -0
- package/dist/tests/testUtils.js +213 -0
- package/dist/tests/testUtils.js.map +1 -0
- package/dist/tests/tokenizer.test.d.ts +1 -0
- package/dist/tests/tokenizer.test.js +1277 -0
- package/dist/tests/tokenizer.test.js.map +1 -0
- package/dist/tests/typeEvaluator1.test.d.ts +1 -0
- package/dist/tests/typeEvaluator1.test.js +1023 -0
- package/dist/tests/typeEvaluator1.test.js.map +1 -0
- package/dist/tests/typeEvaluator2.test.d.ts +1 -0
- package/dist/tests/typeEvaluator2.test.js +869 -0
- package/dist/tests/typeEvaluator2.test.js.map +1 -0
- package/dist/tests/typeEvaluator3.test.d.ts +1 -0
- package/dist/tests/typeEvaluator3.test.js +915 -0
- package/dist/tests/typeEvaluator3.test.js.map +1 -0
- package/dist/tests/typeEvaluator4.test.d.ts +1 -0
- package/dist/tests/typeEvaluator4.test.js +901 -0
- package/dist/tests/typeEvaluator4.test.js.map +1 -0
- package/dist/tests/updateSymbolReference.test.d.ts +1 -0
- package/dist/tests/updateSymbolReference.test.js +980 -0
- package/dist/tests/updateSymbolReference.test.js.map +1 -0
- package/dist/tests/zipfs.test.d.ts +1 -0
- package/dist/tests/zipfs.test.js +112 -0
- package/dist/tests/zipfs.test.js.map +1 -0
- package/dist/workspaceMap.d.ts +6 -0
- package/dist/workspaceMap.js +73 -0
- package/dist/workspaceMap.js.map +1 -0
- package/package.json +45 -0
@@ -0,0 +1,901 @@
|
|
1
|
+
"use strict";
|
2
|
+
/*
|
3
|
+
* typeEvaluator4.test.ts
|
4
|
+
* Copyright (c) Microsoft Corporation.
|
5
|
+
* Licensed under the MIT license.
|
6
|
+
* Author: Eric Traut
|
7
|
+
*
|
8
|
+
* Unit tests for pyright type evaluator. Tests are split
|
9
|
+
* arbitrarily among multiple files so they can run in parallel.
|
10
|
+
*/
|
11
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
12
|
+
if (k2 === undefined) k2 = k;
|
13
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
14
|
+
}) : (function(o, m, k, k2) {
|
15
|
+
if (k2 === undefined) k2 = k;
|
16
|
+
o[k2] = m[k];
|
17
|
+
}));
|
18
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
19
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
20
|
+
}) : function(o, v) {
|
21
|
+
o["default"] = v;
|
22
|
+
});
|
23
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
24
|
+
if (mod && mod.__esModule) return mod;
|
25
|
+
var result = {};
|
26
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
27
|
+
__setModuleDefault(result, mod);
|
28
|
+
return result;
|
29
|
+
};
|
30
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
31
|
+
const assert = __importStar(require("assert"));
|
32
|
+
const configOptions_1 = require("../common/configOptions");
|
33
|
+
const pythonVersion_1 = require("../common/pythonVersion");
|
34
|
+
const TestUtils = __importStar(require("./testUtils"));
|
35
|
+
test('Required1', () => {
|
36
|
+
// Analyze with Python 3.10 settings.
|
37
|
+
const configOptions = new configOptions_1.ConfigOptions('.');
|
38
|
+
configOptions.defaultPythonVersion = pythonVersion_1.PythonVersion.V3_10;
|
39
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['required1.py'], configOptions);
|
40
|
+
TestUtils.validateResults(analysisResults, 8);
|
41
|
+
});
|
42
|
+
test('Required2', () => {
|
43
|
+
// Analyze with Python 3.10 settings.
|
44
|
+
const configOptions = new configOptions_1.ConfigOptions('.');
|
45
|
+
configOptions.defaultPythonVersion = pythonVersion_1.PythonVersion.V3_10;
|
46
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['required2.py'], configOptions);
|
47
|
+
TestUtils.validateResults(analysisResults, 7);
|
48
|
+
});
|
49
|
+
test('Required3', () => {
|
50
|
+
// Analyze with Python 3.10 settings.
|
51
|
+
const configOptions = new configOptions_1.ConfigOptions('.');
|
52
|
+
configOptions.defaultPythonVersion = pythonVersion_1.PythonVersion.V3_10;
|
53
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['required3.py'], configOptions);
|
54
|
+
TestUtils.validateResults(analysisResults, 2);
|
55
|
+
});
|
56
|
+
test('Metaclass1', () => {
|
57
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['metaclass1.py']);
|
58
|
+
TestUtils.validateResults(analysisResults, 0);
|
59
|
+
});
|
60
|
+
test('Metaclass2', () => {
|
61
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['metaclass2.py']);
|
62
|
+
TestUtils.validateResults(analysisResults, 0);
|
63
|
+
});
|
64
|
+
test('Metaclass3', () => {
|
65
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['metaclass3.py']);
|
66
|
+
TestUtils.validateResults(analysisResults, 1);
|
67
|
+
});
|
68
|
+
test('Metaclass4', () => {
|
69
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['metaclass4.py']);
|
70
|
+
TestUtils.validateResults(analysisResults, 1);
|
71
|
+
});
|
72
|
+
test('Metaclass5', () => {
|
73
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['metaclass5.py']);
|
74
|
+
TestUtils.validateResults(analysisResults, 1);
|
75
|
+
});
|
76
|
+
test('Metaclass6', () => {
|
77
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['metaclass6.py']);
|
78
|
+
TestUtils.validateResults(analysisResults, 0);
|
79
|
+
});
|
80
|
+
test('Metaclass7', () => {
|
81
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['metaclass7.py']);
|
82
|
+
TestUtils.validateResults(analysisResults, 0);
|
83
|
+
});
|
84
|
+
test('Metaclass8', () => {
|
85
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['metaclass8.py']);
|
86
|
+
TestUtils.validateResults(analysisResults, 1);
|
87
|
+
});
|
88
|
+
test('Metaclass9', () => {
|
89
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['metaclass9.py']);
|
90
|
+
TestUtils.validateResults(analysisResults, 6);
|
91
|
+
});
|
92
|
+
test('AssignmentExpr1', () => {
|
93
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['assignmentExpr1.py']);
|
94
|
+
TestUtils.validateResults(analysisResults, 5);
|
95
|
+
});
|
96
|
+
test('AssignmentExpr2', () => {
|
97
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['assignmentExpr2.py']);
|
98
|
+
TestUtils.validateResults(analysisResults, 6);
|
99
|
+
});
|
100
|
+
test('AssignmentExpr3', () => {
|
101
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['assignmentExpr3.py']);
|
102
|
+
TestUtils.validateResults(analysisResults, 4);
|
103
|
+
});
|
104
|
+
test('AssignmentExpr4', () => {
|
105
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['assignmentExpr4.py']);
|
106
|
+
TestUtils.validateResults(analysisResults, 17);
|
107
|
+
});
|
108
|
+
test('AssignmentExpr5', () => {
|
109
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['assignmentExpr5.py']);
|
110
|
+
TestUtils.validateResults(analysisResults, 0);
|
111
|
+
});
|
112
|
+
test('AssignmentExpr6', () => {
|
113
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['assignmentExpr6.py']);
|
114
|
+
TestUtils.validateResults(analysisResults, 0);
|
115
|
+
});
|
116
|
+
test('AssignmentExpr7', () => {
|
117
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['assignmentExpr7.py']);
|
118
|
+
TestUtils.validateResults(analysisResults, 2);
|
119
|
+
});
|
120
|
+
test('AssignmentExpr8', () => {
|
121
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['assignmentExpr8.py']);
|
122
|
+
TestUtils.validateResults(analysisResults, 0);
|
123
|
+
});
|
124
|
+
test('AssignmentExpr9', () => {
|
125
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['assignmentExpr9.py']);
|
126
|
+
TestUtils.validateResults(analysisResults, 0);
|
127
|
+
});
|
128
|
+
test('Import1', () => {
|
129
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['import1.py']);
|
130
|
+
TestUtils.validateResults(analysisResults, 0);
|
131
|
+
});
|
132
|
+
test('Import2', () => {
|
133
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['import2.py']);
|
134
|
+
TestUtils.validateResults(analysisResults, 2);
|
135
|
+
});
|
136
|
+
test('Import4', () => {
|
137
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['import4.py']);
|
138
|
+
TestUtils.validateResults(analysisResults, 2);
|
139
|
+
});
|
140
|
+
test('Import6', () => {
|
141
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['import6.py']);
|
142
|
+
TestUtils.validateResults(analysisResults, 2);
|
143
|
+
});
|
144
|
+
test('Import7', () => {
|
145
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['import7.py']);
|
146
|
+
TestUtils.validateResults(analysisResults, 2);
|
147
|
+
});
|
148
|
+
test('Import9', () => {
|
149
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['import9.py']);
|
150
|
+
TestUtils.validateResults(analysisResults, 0);
|
151
|
+
});
|
152
|
+
test('Import10', () => {
|
153
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['import10.py']);
|
154
|
+
TestUtils.validateResults(analysisResults, 1);
|
155
|
+
});
|
156
|
+
test('Import11', () => {
|
157
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['import11.py']);
|
158
|
+
TestUtils.validateResults(analysisResults, 0);
|
159
|
+
});
|
160
|
+
test('Import12', () => {
|
161
|
+
const configOptions = new configOptions_1.ConfigOptions('.');
|
162
|
+
// By default, optional diagnostics are ignored.
|
163
|
+
let analysisResults = TestUtils.typeAnalyzeSampleFiles(['import12.py'], configOptions);
|
164
|
+
TestUtils.validateResults(analysisResults, 0, 1);
|
165
|
+
// Turn on error.
|
166
|
+
configOptions.diagnosticRuleSet.reportWildcardImportFromLibrary = 'error';
|
167
|
+
analysisResults = TestUtils.typeAnalyzeSampleFiles(['import12.py'], configOptions);
|
168
|
+
TestUtils.validateResults(analysisResults, 1, 0);
|
169
|
+
// Turn off diagnostic.
|
170
|
+
configOptions.diagnosticRuleSet.reportWildcardImportFromLibrary = 'none';
|
171
|
+
analysisResults = TestUtils.typeAnalyzeSampleFiles(['import12.py'], configOptions);
|
172
|
+
TestUtils.validateResults(analysisResults, 0, 0);
|
173
|
+
});
|
174
|
+
test('Import14', () => {
|
175
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['import14.py', 'import13.py']);
|
176
|
+
assert.strictEqual(analysisResults.length, 2);
|
177
|
+
assert.strictEqual(analysisResults[0].errors.length, 0);
|
178
|
+
assert.strictEqual(analysisResults[1].errors.length, 0);
|
179
|
+
});
|
180
|
+
test('DunderAll1', () => {
|
181
|
+
const configOptions = new configOptions_1.ConfigOptions('.');
|
182
|
+
// By default, reportUnsupportedDunderAll is a warning.
|
183
|
+
let analysisResults = TestUtils.typeAnalyzeSampleFiles(['dunderAll1.py'], configOptions);
|
184
|
+
TestUtils.validateResults(analysisResults, 0, 7);
|
185
|
+
// Turn on error.
|
186
|
+
configOptions.diagnosticRuleSet.reportUnsupportedDunderAll = 'error';
|
187
|
+
analysisResults = TestUtils.typeAnalyzeSampleFiles(['dunderAll1.py'], configOptions);
|
188
|
+
TestUtils.validateResults(analysisResults, 7, 0);
|
189
|
+
// Turn off diagnostic.
|
190
|
+
configOptions.diagnosticRuleSet.reportUnsupportedDunderAll = 'none';
|
191
|
+
analysisResults = TestUtils.typeAnalyzeSampleFiles(['dunderAll1.py'], configOptions);
|
192
|
+
TestUtils.validateResults(analysisResults, 0, 0);
|
193
|
+
});
|
194
|
+
test('DunderAll2', () => {
|
195
|
+
const configOptions = new configOptions_1.ConfigOptions('.');
|
196
|
+
// By default, reportUnsupportedDunderAll is a warning.
|
197
|
+
let analysisResults = TestUtils.typeAnalyzeSampleFiles(['dunderAll2.py'], configOptions);
|
198
|
+
TestUtils.validateResults(analysisResults, 0, 3);
|
199
|
+
// Turn on error.
|
200
|
+
configOptions.diagnosticRuleSet.reportUnsupportedDunderAll = 'error';
|
201
|
+
analysisResults = TestUtils.typeAnalyzeSampleFiles(['dunderAll2.py'], configOptions);
|
202
|
+
TestUtils.validateResults(analysisResults, 3, 0);
|
203
|
+
// Turn off diagnostic.
|
204
|
+
configOptions.diagnosticRuleSet.reportUnsupportedDunderAll = 'none';
|
205
|
+
analysisResults = TestUtils.typeAnalyzeSampleFiles(['dunderAll2.py'], configOptions);
|
206
|
+
TestUtils.validateResults(analysisResults, 0, 0);
|
207
|
+
});
|
208
|
+
test('DunderAll3', () => {
|
209
|
+
const configOptions = new configOptions_1.ConfigOptions('.');
|
210
|
+
// Turn on error.
|
211
|
+
configOptions.diagnosticRuleSet.reportUnsupportedDunderAll = 'error';
|
212
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['dunderAll3.pyi'], configOptions);
|
213
|
+
TestUtils.validateResults(analysisResults, 0, 0);
|
214
|
+
});
|
215
|
+
test('Overload1', () => {
|
216
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['overload1.py']);
|
217
|
+
TestUtils.validateResults(analysisResults, 2);
|
218
|
+
});
|
219
|
+
test('Overload2', () => {
|
220
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['overload2.py']);
|
221
|
+
TestUtils.validateResults(analysisResults, 0);
|
222
|
+
});
|
223
|
+
test('Overload3', () => {
|
224
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['overload3.py']);
|
225
|
+
TestUtils.validateResults(analysisResults, 1);
|
226
|
+
});
|
227
|
+
test('Overload4', () => {
|
228
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['overload4.py']);
|
229
|
+
TestUtils.validateResults(analysisResults, 3);
|
230
|
+
});
|
231
|
+
test('Overload5', () => {
|
232
|
+
const configOptions = new configOptions_1.ConfigOptions('.');
|
233
|
+
// By default, reportOverlappingOverload is off.
|
234
|
+
let analysisResults = TestUtils.typeAnalyzeSampleFiles(['overload5.py'], configOptions);
|
235
|
+
TestUtils.validateResults(analysisResults, 0);
|
236
|
+
configOptions.diagnosticRuleSet.reportOverlappingOverload = 'error';
|
237
|
+
analysisResults = TestUtils.typeAnalyzeSampleFiles(['overload5.py'], configOptions);
|
238
|
+
TestUtils.validateResults(analysisResults, 11);
|
239
|
+
});
|
240
|
+
test('Overload6', () => {
|
241
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['overload6.py']);
|
242
|
+
TestUtils.validateResults(analysisResults, 2);
|
243
|
+
});
|
244
|
+
test('Overload7', () => {
|
245
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['overload7.py']);
|
246
|
+
TestUtils.validateResults(analysisResults, 6);
|
247
|
+
});
|
248
|
+
test('Overload8', () => {
|
249
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['overload8.py']);
|
250
|
+
TestUtils.validateResults(analysisResults, 2);
|
251
|
+
});
|
252
|
+
test('Overload9', () => {
|
253
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['overload9.py']);
|
254
|
+
TestUtils.validateResults(analysisResults, 1);
|
255
|
+
});
|
256
|
+
test('Overload10', () => {
|
257
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['overload10.py']);
|
258
|
+
TestUtils.validateResults(analysisResults, 1);
|
259
|
+
});
|
260
|
+
test('Final1', () => {
|
261
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['final1.py']);
|
262
|
+
TestUtils.validateResults(analysisResults, 1);
|
263
|
+
});
|
264
|
+
test('Final2', () => {
|
265
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['final2.py']);
|
266
|
+
TestUtils.validateResults(analysisResults, 7);
|
267
|
+
});
|
268
|
+
test('Final3', () => {
|
269
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['final3.py']);
|
270
|
+
TestUtils.validateResults(analysisResults, 28);
|
271
|
+
});
|
272
|
+
test('Final4', () => {
|
273
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['final4.pyi']);
|
274
|
+
TestUtils.validateResults(analysisResults, 3);
|
275
|
+
});
|
276
|
+
test('Final5', () => {
|
277
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['final5.py']);
|
278
|
+
TestUtils.validateResults(analysisResults, 0);
|
279
|
+
});
|
280
|
+
test('InferredTypes1', () => {
|
281
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['inferredTypes1.py']);
|
282
|
+
TestUtils.validateResults(analysisResults, 0);
|
283
|
+
});
|
284
|
+
test('CallSite2', () => {
|
285
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['callSite2.py']);
|
286
|
+
TestUtils.validateResults(analysisResults, 0);
|
287
|
+
});
|
288
|
+
test('FString1', () => {
|
289
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['fstring1.py']);
|
290
|
+
TestUtils.validateResults(analysisResults, 5, 1);
|
291
|
+
});
|
292
|
+
test('FString2', () => {
|
293
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['fstring2.py']);
|
294
|
+
TestUtils.validateResults(analysisResults, 0);
|
295
|
+
});
|
296
|
+
test('FString3', () => {
|
297
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['fstring3.py']);
|
298
|
+
TestUtils.validateResults(analysisResults, 0);
|
299
|
+
});
|
300
|
+
test('FString4', () => {
|
301
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['fstring4.py']);
|
302
|
+
TestUtils.validateResults(analysisResults, 0);
|
303
|
+
});
|
304
|
+
test('FString5', () => {
|
305
|
+
const configOptions = new configOptions_1.ConfigOptions('.');
|
306
|
+
// Analyze with Python 3.7 settings. This will generate errors.
|
307
|
+
configOptions.defaultPythonVersion = pythonVersion_1.PythonVersion.V3_7;
|
308
|
+
const analysisResults37 = TestUtils.typeAnalyzeSampleFiles(['fstring5.py'], configOptions);
|
309
|
+
TestUtils.validateResults(analysisResults37, 6);
|
310
|
+
// Analyze with Python 3.8 settings.
|
311
|
+
configOptions.defaultPythonVersion = pythonVersion_1.PythonVersion.V3_8;
|
312
|
+
const analysisResults38 = TestUtils.typeAnalyzeSampleFiles(['fstring5.py'], configOptions);
|
313
|
+
TestUtils.validateResults(analysisResults38, 0);
|
314
|
+
});
|
315
|
+
test('MemberAccess1', () => {
|
316
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['memberAccess1.py']);
|
317
|
+
TestUtils.validateResults(analysisResults, 0);
|
318
|
+
});
|
319
|
+
test('MemberAccess2', () => {
|
320
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['memberAccess2.py']);
|
321
|
+
TestUtils.validateResults(analysisResults, 0);
|
322
|
+
});
|
323
|
+
test('MemberAccess3', () => {
|
324
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['memberAccess3.py']);
|
325
|
+
TestUtils.validateResults(analysisResults, 3);
|
326
|
+
});
|
327
|
+
test('MemberAccess4', () => {
|
328
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['memberAccess4.py']);
|
329
|
+
TestUtils.validateResults(analysisResults, 3);
|
330
|
+
});
|
331
|
+
test('MemberAccess5', () => {
|
332
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['memberAccess5.py']);
|
333
|
+
TestUtils.validateResults(analysisResults, 0);
|
334
|
+
});
|
335
|
+
test('MemberAccess6', () => {
|
336
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['memberAccess6.py']);
|
337
|
+
TestUtils.validateResults(analysisResults, 2);
|
338
|
+
});
|
339
|
+
test('MemberAccess7', () => {
|
340
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['memberAccess7.py']);
|
341
|
+
TestUtils.validateResults(analysisResults, 0);
|
342
|
+
});
|
343
|
+
test('MemberAccess8', () => {
|
344
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['memberAccess8.py']);
|
345
|
+
TestUtils.validateResults(analysisResults, 0);
|
346
|
+
});
|
347
|
+
test('MemberAccess9', () => {
|
348
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['memberAccess9.py']);
|
349
|
+
TestUtils.validateResults(analysisResults, 0);
|
350
|
+
});
|
351
|
+
test('MemberAccess10', () => {
|
352
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['memberAccess10.py']);
|
353
|
+
TestUtils.validateResults(analysisResults, 3);
|
354
|
+
});
|
355
|
+
test('MemberAccess11', () => {
|
356
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['memberAccess11.py']);
|
357
|
+
TestUtils.validateResults(analysisResults, 0);
|
358
|
+
});
|
359
|
+
test('MemberAccess12', () => {
|
360
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['memberAccess12.py']);
|
361
|
+
TestUtils.validateResults(analysisResults, 0);
|
362
|
+
});
|
363
|
+
test('MemberAccess13', () => {
|
364
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['memberAccess13.py']);
|
365
|
+
TestUtils.validateResults(analysisResults, 0);
|
366
|
+
});
|
367
|
+
test('MemberAccess14', () => {
|
368
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['memberAccess14.py']);
|
369
|
+
TestUtils.validateResults(analysisResults, 0);
|
370
|
+
});
|
371
|
+
test('MemberAccess15', () => {
|
372
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['memberAccess15.py']);
|
373
|
+
TestUtils.validateResults(analysisResults, 0);
|
374
|
+
});
|
375
|
+
test('MemberAccess16', () => {
|
376
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['memberAccess16.py']);
|
377
|
+
TestUtils.validateResults(analysisResults, 0);
|
378
|
+
});
|
379
|
+
test('MemberAccess17', () => {
|
380
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['memberAccess17.py']);
|
381
|
+
TestUtils.validateResults(analysisResults, 0);
|
382
|
+
});
|
383
|
+
test('MemberAccess18', () => {
|
384
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['memberAccess18.py']);
|
385
|
+
TestUtils.validateResults(analysisResults, 0);
|
386
|
+
});
|
387
|
+
test('DataClass1', () => {
|
388
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['dataclass1.py']);
|
389
|
+
TestUtils.validateResults(analysisResults, 2);
|
390
|
+
});
|
391
|
+
test('DataClass2', () => {
|
392
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['dataclass2.py']);
|
393
|
+
TestUtils.validateResults(analysisResults, 0);
|
394
|
+
});
|
395
|
+
test('DataClass3', () => {
|
396
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['dataclass3.py']);
|
397
|
+
TestUtils.validateResults(analysisResults, 1);
|
398
|
+
});
|
399
|
+
test('DataClass4', () => {
|
400
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['dataclass4.py']);
|
401
|
+
TestUtils.validateResults(analysisResults, 5);
|
402
|
+
});
|
403
|
+
test('DataClass5', () => {
|
404
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['dataclass5.py']);
|
405
|
+
TestUtils.validateResults(analysisResults, 1);
|
406
|
+
});
|
407
|
+
test('DataClass6', () => {
|
408
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['dataclass6.py']);
|
409
|
+
TestUtils.validateResults(analysisResults, 2);
|
410
|
+
});
|
411
|
+
test('DataClass7', () => {
|
412
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['dataclass7.py']);
|
413
|
+
TestUtils.validateResults(analysisResults, 4);
|
414
|
+
});
|
415
|
+
test('DataClass8', () => {
|
416
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['dataclass8.py']);
|
417
|
+
TestUtils.validateResults(analysisResults, 0);
|
418
|
+
});
|
419
|
+
test('DataClass9', () => {
|
420
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['dataclass9.py']);
|
421
|
+
TestUtils.validateResults(analysisResults, 0);
|
422
|
+
});
|
423
|
+
test('DataClass10', () => {
|
424
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['dataclass10.py']);
|
425
|
+
TestUtils.validateResults(analysisResults, 1);
|
426
|
+
});
|
427
|
+
test('DataClass11', () => {
|
428
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['dataclass11.py']);
|
429
|
+
TestUtils.validateResults(analysisResults, 1);
|
430
|
+
});
|
431
|
+
test('DataClass12', () => {
|
432
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['dataclass12.py']);
|
433
|
+
TestUtils.validateResults(analysisResults, 0);
|
434
|
+
});
|
435
|
+
test('DataClass13', () => {
|
436
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['dataclass13.py']);
|
437
|
+
TestUtils.validateResults(analysisResults, 3);
|
438
|
+
});
|
439
|
+
test('DataClass14', () => {
|
440
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['dataclass14.py']);
|
441
|
+
TestUtils.validateResults(analysisResults, 3);
|
442
|
+
});
|
443
|
+
test('DataClass15', () => {
|
444
|
+
const configOptions = new configOptions_1.ConfigOptions('.');
|
445
|
+
configOptions.defaultPythonVersion = pythonVersion_1.PythonVersion.V3_10;
|
446
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['dataclass15.py'], configOptions);
|
447
|
+
TestUtils.validateResults(analysisResults, 3);
|
448
|
+
});
|
449
|
+
test('DataClass16', () => {
|
450
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['dataclass16.py']);
|
451
|
+
TestUtils.validateResults(analysisResults, 0);
|
452
|
+
});
|
453
|
+
test('DataClass17', () => {
|
454
|
+
const configOptions = new configOptions_1.ConfigOptions('.');
|
455
|
+
configOptions.defaultPythonVersion = pythonVersion_1.PythonVersion.V3_10;
|
456
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['dataclass17.py'], configOptions);
|
457
|
+
TestUtils.validateResults(analysisResults, 3);
|
458
|
+
});
|
459
|
+
test('DataClass18', () => {
|
460
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['dataclass18.py']);
|
461
|
+
TestUtils.validateResults(analysisResults, 2);
|
462
|
+
});
|
463
|
+
test('DataClass19', () => {
|
464
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['dataclass19.py']);
|
465
|
+
TestUtils.validateResults(analysisResults, 1);
|
466
|
+
});
|
467
|
+
test('DataClass20', () => {
|
468
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['dataclass20.py']);
|
469
|
+
TestUtils.validateResults(analysisResults, 0);
|
470
|
+
});
|
471
|
+
test('DataClass21', () => {
|
472
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['dataclass21.py']);
|
473
|
+
TestUtils.validateResults(analysisResults, 1);
|
474
|
+
});
|
475
|
+
test('DataClassPostInit1', () => {
|
476
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['dataclassPostInit1.py']);
|
477
|
+
TestUtils.validateResults(analysisResults, 3);
|
478
|
+
});
|
479
|
+
test('InitVar1', () => {
|
480
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['initVar1.py']);
|
481
|
+
TestUtils.validateResults(analysisResults, 2, 1);
|
482
|
+
});
|
483
|
+
test('Callable1', () => {
|
484
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['callable1.py']);
|
485
|
+
TestUtils.validateResults(analysisResults, 3);
|
486
|
+
});
|
487
|
+
test('Callable2', () => {
|
488
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['callable2.py']);
|
489
|
+
TestUtils.validateResults(analysisResults, 2);
|
490
|
+
});
|
491
|
+
test('Callable3', () => {
|
492
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['callable3.py']);
|
493
|
+
TestUtils.validateResults(analysisResults, 0);
|
494
|
+
});
|
495
|
+
test('Callable4', () => {
|
496
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['callable4.py']);
|
497
|
+
TestUtils.validateResults(analysisResults, 0);
|
498
|
+
});
|
499
|
+
test('Callable5', () => {
|
500
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['callable5.py']);
|
501
|
+
TestUtils.validateResults(analysisResults, 2);
|
502
|
+
});
|
503
|
+
test('Callable6', () => {
|
504
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['callable6.py']);
|
505
|
+
TestUtils.validateResults(analysisResults, 9);
|
506
|
+
});
|
507
|
+
test('ThreePartVersion1', () => {
|
508
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['threePartVersion1.py']);
|
509
|
+
TestUtils.validateResults(analysisResults, 0);
|
510
|
+
});
|
511
|
+
test('Generic1', () => {
|
512
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['generic1.py']);
|
513
|
+
TestUtils.validateResults(analysisResults, 9);
|
514
|
+
});
|
515
|
+
test('Unions1', () => {
|
516
|
+
const configOptions = new configOptions_1.ConfigOptions('.');
|
517
|
+
// Analyze with Python 3.9 settings. This will generate errors.
|
518
|
+
configOptions.defaultPythonVersion = pythonVersion_1.PythonVersion.V3_9;
|
519
|
+
const analysisResults3_9 = TestUtils.typeAnalyzeSampleFiles(['unions1.py'], configOptions);
|
520
|
+
TestUtils.validateResults(analysisResults3_9, 11);
|
521
|
+
// Analyze with Python 3.10 settings.
|
522
|
+
configOptions.defaultPythonVersion = pythonVersion_1.PythonVersion.V3_10;
|
523
|
+
const analysisResults3_10 = TestUtils.typeAnalyzeSampleFiles(['unions1.py'], configOptions);
|
524
|
+
TestUtils.validateResults(analysisResults3_10, 0);
|
525
|
+
});
|
526
|
+
test('Unions2', () => {
|
527
|
+
const configOptions = new configOptions_1.ConfigOptions('.');
|
528
|
+
// Analyze with Python 3.8 settings.
|
529
|
+
configOptions.defaultPythonVersion = pythonVersion_1.PythonVersion.V3_8;
|
530
|
+
const analysisResults38 = TestUtils.typeAnalyzeSampleFiles(['unions2.py'], configOptions);
|
531
|
+
TestUtils.validateResults(analysisResults38, 0);
|
532
|
+
});
|
533
|
+
test('Unions3', () => {
|
534
|
+
const configOptions = new configOptions_1.ConfigOptions('.');
|
535
|
+
// Analyze with Python 3.9 settings. This will generate errors.
|
536
|
+
configOptions.defaultPythonVersion = pythonVersion_1.PythonVersion.V3_9;
|
537
|
+
const analysisResults3_9 = TestUtils.typeAnalyzeSampleFiles(['unions3.py'], configOptions);
|
538
|
+
TestUtils.validateResults(analysisResults3_9, 1);
|
539
|
+
// Analyze with Python 3.10 settings.
|
540
|
+
configOptions.defaultPythonVersion = pythonVersion_1.PythonVersion.V3_10;
|
541
|
+
const analysisResults3_10 = TestUtils.typeAnalyzeSampleFiles(['unions3.py'], configOptions);
|
542
|
+
TestUtils.validateResults(analysisResults3_10, 0);
|
543
|
+
});
|
544
|
+
test('Unions4', () => {
|
545
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['unions4.py']);
|
546
|
+
TestUtils.validateResults(analysisResults, 3);
|
547
|
+
});
|
548
|
+
test('Unions5', () => {
|
549
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['unions5.py']);
|
550
|
+
TestUtils.validateResults(analysisResults, 6);
|
551
|
+
});
|
552
|
+
test('ParamSpec1', () => {
|
553
|
+
const configOptions = new configOptions_1.ConfigOptions('.');
|
554
|
+
configOptions.defaultPythonVersion = pythonVersion_1.PythonVersion.V3_10;
|
555
|
+
const results = TestUtils.typeAnalyzeSampleFiles(['paramSpec1.py'], configOptions);
|
556
|
+
TestUtils.validateResults(results, 9);
|
557
|
+
});
|
558
|
+
test('ParamSpec2', () => {
|
559
|
+
const configOptions = new configOptions_1.ConfigOptions('.');
|
560
|
+
configOptions.defaultPythonVersion = pythonVersion_1.PythonVersion.V3_9;
|
561
|
+
const analysisResults39 = TestUtils.typeAnalyzeSampleFiles(['paramSpec2.py'], configOptions);
|
562
|
+
TestUtils.validateResults(analysisResults39, 9);
|
563
|
+
configOptions.defaultPythonVersion = pythonVersion_1.PythonVersion.V3_10;
|
564
|
+
const analysisResults310 = TestUtils.typeAnalyzeSampleFiles(['paramSpec2.py'], configOptions);
|
565
|
+
TestUtils.validateResults(analysisResults310, 0);
|
566
|
+
});
|
567
|
+
test('ParamSpec3', () => {
|
568
|
+
const configOptions = new configOptions_1.ConfigOptions('.');
|
569
|
+
configOptions.defaultPythonVersion = pythonVersion_1.PythonVersion.V3_10;
|
570
|
+
const results = TestUtils.typeAnalyzeSampleFiles(['paramSpec3.py'], configOptions);
|
571
|
+
TestUtils.validateResults(results, 2);
|
572
|
+
});
|
573
|
+
test('ParamSpec4', () => {
|
574
|
+
const configOptions = new configOptions_1.ConfigOptions('.');
|
575
|
+
configOptions.defaultPythonVersion = pythonVersion_1.PythonVersion.V3_10;
|
576
|
+
const results = TestUtils.typeAnalyzeSampleFiles(['paramSpec4.py'], configOptions);
|
577
|
+
TestUtils.validateResults(results, 7);
|
578
|
+
});
|
579
|
+
test('ParamSpec5', () => {
|
580
|
+
const configOptions = new configOptions_1.ConfigOptions('.');
|
581
|
+
configOptions.defaultPythonVersion = pythonVersion_1.PythonVersion.V3_10;
|
582
|
+
const results = TestUtils.typeAnalyzeSampleFiles(['paramSpec5.py'], configOptions);
|
583
|
+
TestUtils.validateResults(results, 0);
|
584
|
+
});
|
585
|
+
test('ParamSpec6', () => {
|
586
|
+
const configOptions = new configOptions_1.ConfigOptions('.');
|
587
|
+
configOptions.defaultPythonVersion = pythonVersion_1.PythonVersion.V3_10;
|
588
|
+
const results = TestUtils.typeAnalyzeSampleFiles(['paramSpec6.py'], configOptions);
|
589
|
+
TestUtils.validateResults(results, 0);
|
590
|
+
});
|
591
|
+
test('ParamSpec7', () => {
|
592
|
+
const configOptions = new configOptions_1.ConfigOptions('.');
|
593
|
+
configOptions.defaultPythonVersion = pythonVersion_1.PythonVersion.V3_10;
|
594
|
+
const results = TestUtils.typeAnalyzeSampleFiles(['paramSpec7.py'], configOptions);
|
595
|
+
TestUtils.validateResults(results, 0);
|
596
|
+
});
|
597
|
+
test('ParamSpec8', () => {
|
598
|
+
const configOptions = new configOptions_1.ConfigOptions('.');
|
599
|
+
configOptions.defaultPythonVersion = pythonVersion_1.PythonVersion.V3_10;
|
600
|
+
const results = TestUtils.typeAnalyzeSampleFiles(['paramSpec8.py'], configOptions);
|
601
|
+
TestUtils.validateResults(results, 5);
|
602
|
+
});
|
603
|
+
test('ParamSpec9', () => {
|
604
|
+
const configOptions = new configOptions_1.ConfigOptions('.');
|
605
|
+
configOptions.defaultPythonVersion = pythonVersion_1.PythonVersion.V3_10;
|
606
|
+
const results = TestUtils.typeAnalyzeSampleFiles(['paramSpec9.py'], configOptions);
|
607
|
+
TestUtils.validateResults(results, 9);
|
608
|
+
});
|
609
|
+
test('ParamSpec10', () => {
|
610
|
+
const configOptions = new configOptions_1.ConfigOptions('.');
|
611
|
+
configOptions.defaultPythonVersion = pythonVersion_1.PythonVersion.V3_10;
|
612
|
+
const results = TestUtils.typeAnalyzeSampleFiles(['paramSpec10.py'], configOptions);
|
613
|
+
TestUtils.validateResults(results, 0);
|
614
|
+
});
|
615
|
+
test('ParamSpec11', () => {
|
616
|
+
const configOptions = new configOptions_1.ConfigOptions('.');
|
617
|
+
configOptions.defaultPythonVersion = pythonVersion_1.PythonVersion.V3_10;
|
618
|
+
const results = TestUtils.typeAnalyzeSampleFiles(['paramSpec11.py'], configOptions);
|
619
|
+
TestUtils.validateResults(results, 0);
|
620
|
+
});
|
621
|
+
test('ParamSpec12', () => {
|
622
|
+
const configOptions = new configOptions_1.ConfigOptions('.');
|
623
|
+
configOptions.defaultPythonVersion = pythonVersion_1.PythonVersion.V3_10;
|
624
|
+
const results = TestUtils.typeAnalyzeSampleFiles(['paramSpec12.py'], configOptions);
|
625
|
+
TestUtils.validateResults(results, 16);
|
626
|
+
});
|
627
|
+
test('ParamSpec13', () => {
|
628
|
+
const configOptions = new configOptions_1.ConfigOptions('.');
|
629
|
+
configOptions.defaultPythonVersion = pythonVersion_1.PythonVersion.V3_10;
|
630
|
+
const results = TestUtils.typeAnalyzeSampleFiles(['paramSpec13.py'], configOptions);
|
631
|
+
TestUtils.validateResults(results, 6);
|
632
|
+
});
|
633
|
+
test('ParamSpec14', () => {
|
634
|
+
const configOptions = new configOptions_1.ConfigOptions('.');
|
635
|
+
configOptions.defaultPythonVersion = pythonVersion_1.PythonVersion.V3_10;
|
636
|
+
const results = TestUtils.typeAnalyzeSampleFiles(['paramSpec14.py'], configOptions);
|
637
|
+
TestUtils.validateResults(results, 0);
|
638
|
+
});
|
639
|
+
test('ParamSpec15', () => {
|
640
|
+
const configOptions = new configOptions_1.ConfigOptions('.');
|
641
|
+
configOptions.defaultPythonVersion = pythonVersion_1.PythonVersion.V3_10;
|
642
|
+
const results = TestUtils.typeAnalyzeSampleFiles(['paramSpec15.py'], configOptions);
|
643
|
+
TestUtils.validateResults(results, 0);
|
644
|
+
});
|
645
|
+
test('ParamSpec16', () => {
|
646
|
+
const configOptions = new configOptions_1.ConfigOptions('.');
|
647
|
+
configOptions.defaultPythonVersion = pythonVersion_1.PythonVersion.V3_10;
|
648
|
+
const results = TestUtils.typeAnalyzeSampleFiles(['paramSpec16.py'], configOptions);
|
649
|
+
TestUtils.validateResults(results, 0);
|
650
|
+
});
|
651
|
+
test('ParamSpec17', () => {
|
652
|
+
const configOptions = new configOptions_1.ConfigOptions('.');
|
653
|
+
configOptions.defaultPythonVersion = pythonVersion_1.PythonVersion.V3_10;
|
654
|
+
const results = TestUtils.typeAnalyzeSampleFiles(['paramSpec17.py'], configOptions);
|
655
|
+
TestUtils.validateResults(results, 0);
|
656
|
+
});
|
657
|
+
test('ParamSpec18', () => {
|
658
|
+
const configOptions = new configOptions_1.ConfigOptions('.');
|
659
|
+
configOptions.defaultPythonVersion = pythonVersion_1.PythonVersion.V3_10;
|
660
|
+
const results = TestUtils.typeAnalyzeSampleFiles(['paramSpec18.py'], configOptions);
|
661
|
+
TestUtils.validateResults(results, 0);
|
662
|
+
});
|
663
|
+
test('ParamSpec19', () => {
|
664
|
+
const configOptions = new configOptions_1.ConfigOptions('.');
|
665
|
+
configOptions.defaultPythonVersion = pythonVersion_1.PythonVersion.V3_10;
|
666
|
+
const results = TestUtils.typeAnalyzeSampleFiles(['paramSpec19.py'], configOptions);
|
667
|
+
TestUtils.validateResults(results, 0);
|
668
|
+
});
|
669
|
+
test('ParamSpec20', () => {
|
670
|
+
const configOptions = new configOptions_1.ConfigOptions('.');
|
671
|
+
configOptions.defaultPythonVersion = pythonVersion_1.PythonVersion.V3_10;
|
672
|
+
const results = TestUtils.typeAnalyzeSampleFiles(['paramSpec20.py'], configOptions);
|
673
|
+
TestUtils.validateResults(results, 6);
|
674
|
+
});
|
675
|
+
test('ParamSpec21', () => {
|
676
|
+
const configOptions = new configOptions_1.ConfigOptions('.');
|
677
|
+
configOptions.defaultPythonVersion = pythonVersion_1.PythonVersion.V3_10;
|
678
|
+
const results = TestUtils.typeAnalyzeSampleFiles(['paramSpec21.py'], configOptions);
|
679
|
+
TestUtils.validateResults(results, 0);
|
680
|
+
});
|
681
|
+
test('ParamSpec22', () => {
|
682
|
+
const configOptions = new configOptions_1.ConfigOptions('.');
|
683
|
+
configOptions.defaultPythonVersion = pythonVersion_1.PythonVersion.V3_10;
|
684
|
+
const results = TestUtils.typeAnalyzeSampleFiles(['paramSpec22.py'], configOptions);
|
685
|
+
TestUtils.validateResults(results, 0);
|
686
|
+
});
|
687
|
+
test('ParamSpec23', () => {
|
688
|
+
const configOptions = new configOptions_1.ConfigOptions('.');
|
689
|
+
configOptions.defaultPythonVersion = pythonVersion_1.PythonVersion.V3_10;
|
690
|
+
const results = TestUtils.typeAnalyzeSampleFiles(['paramSpec23.py'], configOptions);
|
691
|
+
TestUtils.validateResults(results, 0);
|
692
|
+
});
|
693
|
+
test('ParamSpec24', () => {
|
694
|
+
const configOptions = new configOptions_1.ConfigOptions('.');
|
695
|
+
configOptions.defaultPythonVersion = pythonVersion_1.PythonVersion.V3_10;
|
696
|
+
const results = TestUtils.typeAnalyzeSampleFiles(['paramSpec24.py'], configOptions);
|
697
|
+
TestUtils.validateResults(results, 0);
|
698
|
+
});
|
699
|
+
test('ParamSpec25', () => {
|
700
|
+
const configOptions = new configOptions_1.ConfigOptions('.');
|
701
|
+
configOptions.defaultPythonVersion = pythonVersion_1.PythonVersion.V3_10;
|
702
|
+
const results = TestUtils.typeAnalyzeSampleFiles(['paramSpec25.py'], configOptions);
|
703
|
+
TestUtils.validateResults(results, 0);
|
704
|
+
});
|
705
|
+
test('ParamSpec26', () => {
|
706
|
+
const configOptions = new configOptions_1.ConfigOptions('.');
|
707
|
+
configOptions.defaultPythonVersion = pythonVersion_1.PythonVersion.V3_10;
|
708
|
+
const results = TestUtils.typeAnalyzeSampleFiles(['paramSpec26.py'], configOptions);
|
709
|
+
TestUtils.validateResults(results, 0);
|
710
|
+
});
|
711
|
+
test('ParamSpec27', () => {
|
712
|
+
const configOptions = new configOptions_1.ConfigOptions('.');
|
713
|
+
configOptions.defaultPythonVersion = pythonVersion_1.PythonVersion.V3_10;
|
714
|
+
const results = TestUtils.typeAnalyzeSampleFiles(['paramSpec27.py'], configOptions);
|
715
|
+
TestUtils.validateResults(results, 2);
|
716
|
+
});
|
717
|
+
test('ParamSpec28', () => {
|
718
|
+
const configOptions = new configOptions_1.ConfigOptions('.');
|
719
|
+
configOptions.defaultPythonVersion = pythonVersion_1.PythonVersion.V3_10;
|
720
|
+
const results = TestUtils.typeAnalyzeSampleFiles(['paramSpec28.py'], configOptions);
|
721
|
+
TestUtils.validateResults(results, 0);
|
722
|
+
});
|
723
|
+
test('ParamSpec29', () => {
|
724
|
+
const configOptions = new configOptions_1.ConfigOptions('.');
|
725
|
+
configOptions.defaultPythonVersion = pythonVersion_1.PythonVersion.V3_10;
|
726
|
+
const results = TestUtils.typeAnalyzeSampleFiles(['paramSpec29.py'], configOptions);
|
727
|
+
TestUtils.validateResults(results, 3);
|
728
|
+
});
|
729
|
+
test('ParamSpec30', () => {
|
730
|
+
const configOptions = new configOptions_1.ConfigOptions('.');
|
731
|
+
configOptions.defaultPythonVersion = pythonVersion_1.PythonVersion.V3_10;
|
732
|
+
const results = TestUtils.typeAnalyzeSampleFiles(['paramSpec30.py'], configOptions);
|
733
|
+
TestUtils.validateResults(results, 0);
|
734
|
+
});
|
735
|
+
test('ParamSpec31', () => {
|
736
|
+
const configOptions = new configOptions_1.ConfigOptions('.');
|
737
|
+
configOptions.defaultPythonVersion = pythonVersion_1.PythonVersion.V3_10;
|
738
|
+
const results = TestUtils.typeAnalyzeSampleFiles(['paramSpec31.py'], configOptions);
|
739
|
+
TestUtils.validateResults(results, 0);
|
740
|
+
});
|
741
|
+
test('ParamSpec32', () => {
|
742
|
+
const configOptions = new configOptions_1.ConfigOptions('.');
|
743
|
+
configOptions.defaultPythonVersion = pythonVersion_1.PythonVersion.V3_10;
|
744
|
+
const results = TestUtils.typeAnalyzeSampleFiles(['paramSpec32.py'], configOptions);
|
745
|
+
TestUtils.validateResults(results, 4);
|
746
|
+
});
|
747
|
+
test('ParamSpec33', () => {
|
748
|
+
const configOptions = new configOptions_1.ConfigOptions('.');
|
749
|
+
configOptions.defaultPythonVersion = pythonVersion_1.PythonVersion.V3_10;
|
750
|
+
const results = TestUtils.typeAnalyzeSampleFiles(['paramSpec33.py'], configOptions);
|
751
|
+
TestUtils.validateResults(results, 4);
|
752
|
+
});
|
753
|
+
test('ParamSpec34', () => {
|
754
|
+
const configOptions = new configOptions_1.ConfigOptions('.');
|
755
|
+
configOptions.defaultPythonVersion = pythonVersion_1.PythonVersion.V3_10;
|
756
|
+
const results = TestUtils.typeAnalyzeSampleFiles(['paramSpec34.py'], configOptions);
|
757
|
+
TestUtils.validateResults(results, 0);
|
758
|
+
});
|
759
|
+
test('ParamSpec35', () => {
|
760
|
+
const configOptions = new configOptions_1.ConfigOptions('.');
|
761
|
+
configOptions.defaultPythonVersion = pythonVersion_1.PythonVersion.V3_10;
|
762
|
+
const results = TestUtils.typeAnalyzeSampleFiles(['paramSpec35.py'], configOptions);
|
763
|
+
TestUtils.validateResults(results, 1);
|
764
|
+
});
|
765
|
+
test('ParamSpec36', () => {
|
766
|
+
const configOptions = new configOptions_1.ConfigOptions('.');
|
767
|
+
configOptions.defaultPythonVersion = pythonVersion_1.PythonVersion.V3_10;
|
768
|
+
const results = TestUtils.typeAnalyzeSampleFiles(['paramSpec36.py'], configOptions);
|
769
|
+
TestUtils.validateResults(results, 2);
|
770
|
+
});
|
771
|
+
test('ParamSpec37', () => {
|
772
|
+
const configOptions = new configOptions_1.ConfigOptions('.');
|
773
|
+
configOptions.defaultPythonVersion = pythonVersion_1.PythonVersion.V3_10;
|
774
|
+
const results = TestUtils.typeAnalyzeSampleFiles(['paramSpec37.py'], configOptions);
|
775
|
+
TestUtils.validateResults(results, 0);
|
776
|
+
});
|
777
|
+
test('ClassVar1', () => {
|
778
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['classVar1.py']);
|
779
|
+
TestUtils.validateResults(analysisResults, 1);
|
780
|
+
});
|
781
|
+
test('ClassVar2', () => {
|
782
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['classVar2.py']);
|
783
|
+
TestUtils.validateResults(analysisResults, 1);
|
784
|
+
});
|
785
|
+
test('ClassVar3', () => {
|
786
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['classVar3.py']);
|
787
|
+
TestUtils.validateResults(analysisResults, 10);
|
788
|
+
});
|
789
|
+
test('ClassVar4', () => {
|
790
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['classVar4.py']);
|
791
|
+
TestUtils.validateResults(analysisResults, 2);
|
792
|
+
});
|
793
|
+
test('TypeVar1', () => {
|
794
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['typeVar1.py']);
|
795
|
+
TestUtils.validateResults(analysisResults, 3);
|
796
|
+
});
|
797
|
+
test('TypeVar2', () => {
|
798
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['typeVar2.py']);
|
799
|
+
TestUtils.validateResults(analysisResults, 0);
|
800
|
+
});
|
801
|
+
test('TypeVar3', () => {
|
802
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['typeVar3.py']);
|
803
|
+
TestUtils.validateResults(analysisResults, 11);
|
804
|
+
});
|
805
|
+
test('TypeVar4', () => {
|
806
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['typeVar4.py']);
|
807
|
+
TestUtils.validateResults(analysisResults, 2);
|
808
|
+
});
|
809
|
+
test('TypeVar5', () => {
|
810
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['typeVar5.py']);
|
811
|
+
TestUtils.validateResults(analysisResults, 18);
|
812
|
+
});
|
813
|
+
test('TypeVar6', () => {
|
814
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['typeVar6.py']);
|
815
|
+
TestUtils.validateResults(analysisResults, 20);
|
816
|
+
});
|
817
|
+
test('TypeVar7', () => {
|
818
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['typeVar7.py']);
|
819
|
+
TestUtils.validateResults(analysisResults, 26);
|
820
|
+
});
|
821
|
+
test('TypeVar8', () => {
|
822
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['typeVar8.py']);
|
823
|
+
TestUtils.validateResults(analysisResults, 2);
|
824
|
+
});
|
825
|
+
test('TypeVar9', () => {
|
826
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['typeVar9.py']);
|
827
|
+
TestUtils.validateResults(analysisResults, 10);
|
828
|
+
});
|
829
|
+
test('TypeVar10', () => {
|
830
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['typeVar10.py']);
|
831
|
+
TestUtils.validateResults(analysisResults, 0);
|
832
|
+
});
|
833
|
+
test('TypeVar11', () => {
|
834
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['typeVar11.py']);
|
835
|
+
TestUtils.validateResults(analysisResults, 0);
|
836
|
+
});
|
837
|
+
test('Annotated1', () => {
|
838
|
+
const configOptions = new configOptions_1.ConfigOptions('.');
|
839
|
+
configOptions.defaultPythonVersion = pythonVersion_1.PythonVersion.V3_8;
|
840
|
+
const analysisResults38 = TestUtils.typeAnalyzeSampleFiles(['annotated1.py'], configOptions);
|
841
|
+
TestUtils.validateResults(analysisResults38, 3);
|
842
|
+
configOptions.defaultPythonVersion = pythonVersion_1.PythonVersion.V3_9;
|
843
|
+
const analysisResults39 = TestUtils.typeAnalyzeSampleFiles(['annotated1.py'], configOptions);
|
844
|
+
TestUtils.validateResults(analysisResults39, 3);
|
845
|
+
});
|
846
|
+
test('Circular1', () => {
|
847
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['circular1.py']);
|
848
|
+
TestUtils.validateResults(analysisResults, 0);
|
849
|
+
});
|
850
|
+
test('Circular2', () => {
|
851
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['circular2.py']);
|
852
|
+
TestUtils.validateResults(analysisResults, 0);
|
853
|
+
});
|
854
|
+
test('TryExcept1', () => {
|
855
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['tryExcept1.py']);
|
856
|
+
TestUtils.validateResults(analysisResults, 1);
|
857
|
+
});
|
858
|
+
test('TryExcept2', () => {
|
859
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['tryExcept2.py']);
|
860
|
+
TestUtils.validateResults(analysisResults, 0);
|
861
|
+
});
|
862
|
+
test('TryExcept3', () => {
|
863
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['tryExcept3.py']);
|
864
|
+
TestUtils.validateResults(analysisResults, 0);
|
865
|
+
});
|
866
|
+
test('TryExcept4', () => {
|
867
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['tryExcept4.py']);
|
868
|
+
TestUtils.validateResults(analysisResults, 2);
|
869
|
+
});
|
870
|
+
test('TryExcept5', () => {
|
871
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['tryExcept5.py']);
|
872
|
+
TestUtils.validateResults(analysisResults, 1);
|
873
|
+
});
|
874
|
+
test('TryExcept6', () => {
|
875
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['tryExcept6.py']);
|
876
|
+
TestUtils.validateResults(analysisResults, 1);
|
877
|
+
});
|
878
|
+
test('TryExcept7', () => {
|
879
|
+
const configOptions = new configOptions_1.ConfigOptions('.');
|
880
|
+
configOptions.defaultPythonVersion = pythonVersion_1.PythonVersion.V3_10;
|
881
|
+
const analysisResults1 = TestUtils.typeAnalyzeSampleFiles(['tryExcept7.py'], configOptions);
|
882
|
+
TestUtils.validateResults(analysisResults1, 3);
|
883
|
+
configOptions.defaultPythonVersion = pythonVersion_1.PythonVersion.V3_11;
|
884
|
+
const analysisResults2 = TestUtils.typeAnalyzeSampleFiles(['tryExcept7.py'], configOptions);
|
885
|
+
TestUtils.validateResults(analysisResults2, 0);
|
886
|
+
});
|
887
|
+
test('TryExcept8', () => {
|
888
|
+
const configOptions = new configOptions_1.ConfigOptions('.');
|
889
|
+
configOptions.defaultPythonVersion = pythonVersion_1.PythonVersion.V3_11;
|
890
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['tryExcept8.py'], configOptions);
|
891
|
+
TestUtils.validateResults(analysisResults, 3);
|
892
|
+
});
|
893
|
+
test('TryExcept9', () => {
|
894
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['tryExcept9.py']);
|
895
|
+
TestUtils.validateResults(analysisResults, 0);
|
896
|
+
});
|
897
|
+
test('TryExcept10', () => {
|
898
|
+
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['tryExcept10.py']);
|
899
|
+
TestUtils.validateResults(analysisResults, 1);
|
900
|
+
});
|
901
|
+
//# sourceMappingURL=typeEvaluator4.test.js.map
|