pyright fork with various type checking improvements, improved vscode support and pylance features built into the language server
This report presents the forensic synthetic code analysis of DetachHead/basedpyright, a TypeScript project with 3,479 GitHub stars. SynthScan v2.0 examined 291,469 lines of code across 2134 source files, recording 1586 pattern matches distributed across 17 syntactic categories. The overall adjusted score of 7.5 places this repository in the Low AI signal band.
The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).
This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.
Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.
This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.
The scanner identified 1586 distinct pattern matches across 17 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH⚡ | …pyright-internal/src/tests/docStringConversion.test.ts | 251 | print(foo_bar) | CODE |
| HIGH⚡ | …pyright-internal/src/tests/docStringConversion.test.ts | 254 | print(bar_foo) | CODE |
| HIGH⚡ | …pyright-internal/src/tests/docStringConversion.test.ts | 263 | print(foo_bar) | CODE |
| HIGH⚡ | …pyright-internal/src/tests/docStringConversion.test.ts | 266 | print(bar_foo) | CODE |
| HIGH⚡ | …pyright-internal/src/tests/docStringConversion.test.ts | 279 | print(foo_bar) | CODE |
| HIGH⚡ | …pyright-internal/src/tests/docStringConversion.test.ts | 282 | print(bar_foo) | CODE |
| HIGH⚡ | …pyright-internal/src/tests/docStringConversion.test.ts | 291 | print(foo_bar) | CODE |
| HIGH⚡ | …pyright-internal/src/tests/docStringConversion.test.ts | 294 | print(bar_foo) | CODE |
| HIGH⚡ | …pyright-internal/src/tests/docStringConversion.test.ts | 308 | print(foo) | CODE |
| HIGH⚡ | …pyright-internal/src/tests/docStringConversion.test.ts | 310 | print('not foo!') | CODE |
| HIGH⚡ | …pyright-internal/src/tests/docStringConversion.test.ts | 319 | print(foo) | CODE |
| HIGH⚡ | …pyright-internal/src/tests/docStringConversion.test.ts | 321 | print('not foo!') | CODE |
| HIGH⚡ | …pyright-internal/src/tests/docStringConversion.test.ts | 335 | print(foo) | CODE |
| HIGH⚡ | …pyright-internal/src/tests/docStringConversion.test.ts | 337 | print('not foo!') | CODE |
| HIGH⚡ | …pyright-internal/src/tests/docStringConversion.test.ts | 342 | print(foo) | CODE |
| HIGH⚡ | …pyright-internal/src/tests/docStringConversion.test.ts | 344 | print('not foo!') | CODE |
| HIGH⚡ | …pyright-internal/src/tests/docStringConversion.test.ts | 359 | print(foo) | CODE |
| HIGH⚡ | …pyright-internal/src/tests/docStringConversion.test.ts | 361 | print('not foo!') | CODE |
| HIGH⚡ | …pyright-internal/src/tests/docStringConversion.test.ts | 370 | print(foo) | CODE |
| HIGH⚡ | …pyright-internal/src/tests/docStringConversion.test.ts | 372 | print('not foo!') | CODE |
| HIGH⚡ | …pyright-internal/src/tests/docStringConversion.test.ts | 455 | print(foo) | CODE |
| HIGH⚡ | …pyright-internal/src/tests/docStringConversion.test.ts | 457 | print('not foo!') | CODE |
| HIGH⚡ | …pyright-internal/src/tests/docStringConversion.test.ts | 466 | print(foo) | CODE |
| HIGH⚡ | …pyright-internal/src/tests/docStringConversion.test.ts | 468 | print('not foo!') | CODE |
| HIGH | …pyright-internal/src/tests/docStringConversion.test.ts | 385 | print(a + foo + 123) | CODE |
| HIGH | …pyright-internal/src/tests/docStringConversion.test.ts | 393 | print(a + foo + 123) | CODE |
| HIGH | …ourslash/hover.docFromSrc.relativeImport2.fourslash.ts | 8 | //// return True | COMMENT |
| HIGH | …ests/fourslash/hover.inherited.docFromSrc.fourslash.ts | 8 | //// return True | COMMENT |
| HIGH | …ests/fourslash/hover.inherited.docFromSrc.fourslash.ts | 14 | //// return True | COMMENT |
| HIGH | …ests/fourslash/hover.inherited.docFromSrc.fourslash.ts | 27 | //// return True | COMMENT |
| HIGH | …/fourslash/hover.docFromSrc.stubs-package.fourslash.ts | 19 | //// return True | COMMENT |
| HIGH⚡ | …rnal/src/tests/fourslash/hover.docFromSrc.fourslash.ts | 13 | //// return True | COMMENT |
| HIGH⚡ | …rnal/src/tests/fourslash/hover.docFromSrc.fourslash.ts | 19 | //// return True | COMMENT |
| HIGH⚡ | …rnal/src/tests/fourslash/hover.docFromSrc.fourslash.ts | 24 | //// return True | COMMENT |
| HIGH | …rnal/src/tests/fourslash/hover.docFromSrc.fourslash.ts | 57 | //// return True | COMMENT |
| HIGH | …/fourslash/import.pytyped.typeCheckingOff.fourslash.ts | 17 | //// return None | COMMENT |
| HIGH⚡ | …ests/fourslash/completions.libCodeAndStub.fourslash.ts | 20 | //// return True | COMMENT |
| HIGH⚡ | …ests/fourslash/completions.libCodeAndStub.fourslash.ts | 24 | //// return True | COMMENT |
| HIGH⚡ | …ests/fourslash/completions.libCodeAndStub.fourslash.ts | 28 | //// return True | COMMENT |
| HIGH | …sts/fourslash/hover.inherited.docFromStub.fourslash.ts | 6 | //// return True | COMMENT |
| HIGH | …sts/fourslash/hover.inherited.docFromStub.fourslash.ts | 9 | //// return True | COMMENT |
| HIGH | …sts/fourslash/hover.inherited.docFromStub.fourslash.ts | 27 | //// return True | COMMENT |
| HIGH | …sts/fourslash/hover.inherited.docFromStub.fourslash.ts | 30 | //// return True | COMMENT |
| HIGH⚡ | …tests/fourslash/completions.libCodeNoStub.fourslash.ts | 20 | //// return True | COMMENT |
| HIGH⚡ | …tests/fourslash/completions.libCodeNoStub.fourslash.ts | 24 | //// return True | COMMENT |
| HIGH⚡ | …tests/fourslash/completions.libCodeNoStub.fourslash.ts | 28 | //// return True | COMMENT |
| HIGH | …fourslash/hover.docFromSrc.pkg-vs-module1.fourslash.ts | 11 | //// return True | COMMENT |
| HIGH | …ourslash/import.pytyped.typeCheckingBasic.fourslash.ts | 17 | //// return None | COMMENT |
| HIGH⚡ | …l/src/tests/fourslash/hover.libCodeNoStub.fourslash.ts | 14 | //// return True | COMMENT |
| HIGH⚡ | …l/src/tests/fourslash/hover.libCodeNoStub.fourslash.ts | 18 | //// return True | COMMENT |
| HIGH⚡ | …l/src/tests/fourslash/hover.libCodeNoStub.fourslash.ts | 22 | //// return True | COMMENT |
| HIGH⚡ | …/src/tests/fourslash/hover.libCodeAndStub.fourslash.ts | 14 | //// return True | COMMENT |
| HIGH⚡ | …/src/tests/fourslash/hover.libCodeAndStub.fourslash.ts | 18 | //// return True | COMMENT |
| HIGH⚡ | …/src/tests/fourslash/hover.libCodeAndStub.fourslash.ts | 22 | //// return True | COMMENT |
| HIGH | …rslash/hover.inherited.docFromSrcWithStub.fourslash.ts | 8 | //// return True | COMMENT |
| HIGH | …rslash/hover.inherited.docFromSrcWithStub.fourslash.ts | 13 | //// return True | COMMENT |
| HIGH | …rslash/hover.inherited.docFromSrcWithStub.fourslash.ts | 30 | //// return True | COMMENT |
| HIGH | …rslash/hover.inherited.docFromSrcWithStub.fourslash.ts | 33 | //// return True | COMMENT |
| HIGH | …fourslash/hover.docFromSrc.pkg-vs-module2.fourslash.ts | 13 | //// return True | COMMENT |
| HIGH | …ourslash/hover.docFromSrc.relativeImport1.fourslash.ts | 8 | //// return True | COMMENT |
| 5 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | packages/pyright-internal/jest.config.js | 1 | /* | COMMENT |
| LOW | …yright-internal/src/tests/importStatementUtils.test.ts | 281 | // @filename: pkg/nnn.py | COMMENT |
| LOW | …yright-internal/src/tests/importStatementUtils.test.ts | 301 | // inserts stay as separate same-range edits instead of merging. When applyTextEditsToString | COMMENT |
| LOW | …ght-internal/src/tests/documentSymbolCollector.test.ts | 21 | // @filename: io2/tools/__init__.py | COMMENT |
| LOW | …ght-internal/src/tests/documentSymbolCollector.test.ts | 41 | //// from .[|io2|].tools import pathUtils as p | COMMENT |
| LOW | …ght-internal/src/tests/documentSymbolCollector.test.ts | 81 | //// def getFilename(path): | COMMENT |
| LOW | …ght-internal/src/tests/documentSymbolCollector.test.ts | 121 | COMMENT | |
| LOW | …ght-internal/src/tests/documentSymbolCollector.test.ts | 141 | //// | COMMENT |
| LOW | …ght-internal/src/tests/documentSymbolCollector.test.ts | 181 | //// from io2.tools import pathUtils as pathUtils | COMMENT |
| LOW | …ght-internal/src/tests/documentSymbolCollector.test.ts | 201 | //// from .io2 import tools as t | COMMENT |
| LOW | …ght-internal/src/tests/documentSymbolCollector.test.ts | 241 | const code = ` | COMMENT |
| LOW | …ght-internal/src/tests/documentSymbolCollector.test.ts | 261 | //// pathUtils.getFilename("c") | COMMENT |
| LOW | …ght-internal/src/tests/documentSymbolCollector.test.ts | 301 | }); | COMMENT |
| LOW | …kages/pyright-internal/src/tests/hoverProvider.test.ts | 41 | COMMENT | |
| LOW | …kages/pyright-internal/src/tests/hoverProvider.test.ts | 81 | COMMENT | |
| LOW | …kages/pyright-internal/src/tests/hoverProvider.test.ts | 121 | // @library: true | COMMENT |
| LOW | …kages/pyright-internal/src/tests/hoverProvider.test.ts | 181 | const code = ` | COMMENT |
| LOW | …kages/pyright-internal/src/tests/hoverProvider.test.ts | 241 | // @filename: test.py | COMMENT |
| LOW | …kages/pyright-internal/src/tests/hoverProvider.test.ts | 301 | test('function hover does not substitute unsafe multiline defaults for stub ellipsis defaults', async () => { | COMMENT |
| LOW | …kages/pyright-internal/src/tests/hoverProvider.test.ts | 341 | COMMENT | |
| LOW | …kages/pyright-internal/src/tests/hoverProvider.test.ts | 401 | // @filename: pyrightconfig.json | COMMENT |
| LOW | …kages/pyright-internal/src/tests/hoverProvider.test.ts | 441 | // @library: true | COMMENT |
| LOW | …kages/pyright-internal/src/tests/hoverProvider.test.ts | 501 | //// class Test: | COMMENT |
| LOW | …kages/pyright-internal/src/tests/hoverProvider.test.ts | 561 | test('import symbol tooltip - useLibraryCodeForTypes true', async () => { | COMMENT |
| LOW | …kages/pyright-internal/src/tests/hoverProvider.test.ts | 681 | }); | COMMENT |
| LOW | …kages/pyright-internal/src/tests/hoverProvider.test.ts | 701 | //// from typing import NotRequired, TypedDict | COMMENT |
| LOW | packages/pyright-internal/src/tests/parser.test.ts | 421 | // the isLazy flag too (otherwise downstream consumers reading | COMMENT |
| LOW | packages/pyright-internal/src/tests/service.test.ts | 381 | //// { | COMMENT |
| LOW | packages/pyright-internal/src/tests/testState.test.ts | 61 | //// ], | COMMENT |
| LOW | packages/pyright-internal/src/tests/testState.test.ts | 81 | //// "pythonVersion": "3.6", | COMMENT |
| LOW | packages/pyright-internal/src/tests/testState.test.ts | 101 | //// { | COMMENT |
| LOW | packages/pyright-internal/src/tests/testState.test.ts | 521 | //// | COMMENT |
| LOW | packages/pyright-internal/src/tests/testState.test.ts | 561 | //// from dataclasses import dataclass, InitVar | COMMENT |
| LOW | packages/pyright-internal/src/tests/testState.test.ts | 581 | //// # parameter types don't match. | COMMENT |
| LOW | …s/pyright-internal/src/tests/sourceMapperUtils.test.ts | 201 | //// from typing import Mapping | COMMENT |
| LOW | …s/pyright-internal/src/tests/sourceMapperUtils.test.ts | 261 | COMMENT | |
| LOW | …s/pyright-internal/src/tests/sourceMapperUtils.test.ts | 281 | //// class MutableMapping: | COMMENT |
| LOW | …s/pyright-internal/src/tests/sourceMapperUtils.test.ts | 421 | //// class MutableMapping: | COMMENT |
| LOW | …kages/pyright-internal/src/tests/signatureHelp.test.ts | 61 | }); | COMMENT |
| LOW | …kages/pyright-internal/src/tests/signatureHelp.test.ts | 141 | COMMENT | |
| LOW | …kages/pyright-internal/src/tests/signatureHelp.test.ts | 181 | assert.strictEqual(actual.signatures[0].label, '(a: int = 3, b: str = "hello") -> None'); | COMMENT |
| LOW | …kages/pyright-internal/src/tests/signatureHelp.test.ts | 241 | // @filename: pyrightconfig.json | COMMENT |
| LOW | …kages/pyright-internal/src/tests/signatureHelp.test.ts | 301 | //// { | COMMENT |
| LOW | …kages/pyright-internal/src/tests/signatureHelp.test.ts | 341 | //// "useLibraryCodeForTypes": true | COMMENT |
| LOW | …kages/pyright-internal/src/tests/signatureHelp.test.ts | 381 | //// } | COMMENT |
| LOW | …kages/pyright-internal/src/tests/signatureHelp.test.ts | 421 | COMMENT | |
| LOW | …kages/pyright-internal/src/tests/signatureHelp.test.ts | 461 | //// import mylib | COMMENT |
| LOW | …kages/pyright-internal/src/tests/signatureHelp.test.ts | 501 | checkSignatureHelp(code, true); | COMMENT |
| LOW | …kages/pyright-internal/src/tests/signatureHelp.test.ts | 541 | //// | COMMENT |
| LOW | …-internal/src/tests/wildcardImportPackageMerge.test.ts | 21 | //// def do_something(value: str) -> None: | COMMENT |
| LOW | …es/pyright-internal/src/tests/classDeclaration.test.ts | 21 | const code = ` | COMMENT |
| LOW | …es/pyright-internal/src/tests/classDeclaration.test.ts | 101 | COMMENT | |
| LOW | …ages/pyright-internal/src/tests/parseTreeUtils.test.ts | 161 | } | COMMENT |
| LOW | …ages/pyright-internal/src/tests/parseTreeUtils.test.ts | 201 | const code = ` | COMMENT |
| LOW | …ages/pyright-internal/src/tests/parseTreeUtils.test.ts | 341 | COMMENT | |
| LOW | …ages/pyright-internal/src/tests/parseTreeUtils.test.ts | 381 | const code = ` | COMMENT |
| LOW | packages/pyright-internal/src/tests/ipythonMode.test.ts | 161 | // @ipythonMode: true | COMMENT |
| LOW | packages/pyright-internal/src/tests/ipythonMode.test.ts | 441 | }); | COMMENT |
| LOW | packages/pyright-internal/src/tests/completions.test.ts | 301 | test('completion from import statement tooltip - child module', async () => { | COMMENT |
| LOW | packages/pyright-internal/src/tests/completions.test.ts | 1061 | COMMENT | |
| 420 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/test_generate_docstubs.py | 50 | def test_windows_only_docstring(): | STRING |
| LOW | tests/test_generate_docstubs.py | 60 | def test_linux_or_mac_only_docstring(): | STRING |
| LOW | tests/test_generate_docstubs.py | 80 | def test_newer_python_version_docstring(): | STRING |
| LOW | tests/test_generate_docstubs.py | 105 | def test_older_python_version_docstring(): | STRING |
| LOW | packages/pyright-internal/src/languageServerBase.ts | 2228 | function convertCategoryToSeverity(category: DiagnosticCategory) { | CODE |
| LOW | packages/pyright-internal/src/pyright.ts | 1012 | function accumulateReportDiagnosticStats(diag: PyrightJsonDiagnostic, report: PyrightJsonResults) { | CODE |
| LOW | packages/pyright-internal/src/pyright.ts | 1022 | function buildTypeCompletenessReport( | CODE |
| LOW | packages/pyright-internal/src/pyright.ts | 1146 | function printTypeCompletenessReportText(results: PyrightJsonResults, verboseOutput: boolean) { | CODE |
| LOW | packages/pyright-internal/src/pyright.ts | 1289 | function reportDiagnosticsAsJsonWithoutLogging( | CODE |
| LOW | packages/pyright-internal/src/pyright.ts | 1366 | function convertDiagnosticCategoryToSeverity(category: DiagnosticCategory): SeverityLevel { | CODE |
| LOW | …/pyright-internal/src/tests/privateImportUsage.test.ts | 41 | function createServiceProviderFromFiles(files: { path: string; content: string }[]) { | CODE |
| LOW | …/pyright-internal/src/tests/chainedSourceFiles.test.ts | 471 | function createServiceWithChainedSourceFiles(basePath: Uri, code: string) { | CODE |
| LOW | packages/pyright-internal/src/tests/service.test.ts | 686 | function testSourceFileWatchChange(code: string, expected = true, isFile = true) { | CODE |
| LOW | packages/pyright-internal/src/tests/service.test.ts | 697 | function getRegisteredLibraryFileWatchers(root: string, extraPaths: string[], excludes: string[] = []) { | CODE |
| LOW | …s/pyright-internal/src/tests/sourceMapperUtils.test.ts | 418 | function getTypeshedStdlibAliasChainCode() { | CODE |
| LOW | …s/pyright-internal/src/tests/sourceMapperUtils.test.ts | 454 | function createAnalyzerServiceFromCode(code: string, pythonSearchPaths: string[], options?: CustomAnalyzerOptions) { | CODE |
| LOW | …kages/pyright-internal/src/tests/signatureHelp.test.ts | 592 | function getSignatureHelpForMarker(state: TestState, markerName: string): SignatureHelp | undefined { | CODE |
| LOW | …es/pyright-internal/src/tests/classDeclaration.test.ts | 148 | function checkSpecialBuiltInClassDetail(code: string) { | CODE |
| LOW | …es/pyright-internal/src/tests/classDeclaration.test.ts | 167 | function checkNoDeclarationInClassDetail(code: string) { | CODE |
| LOW | …ages/pyright-internal/src/tests/importResolver.test.ts | 1136 | function createServiceProviderFromFiles(files: { path: string; content: string }[]): ServiceProvider { | CODE |
| LOW | …ages/pyright-internal/src/tests/importResolver.test.ts | 1143 | function createServiceProviderWithCombinedFs(files: { path: string; content: string }[]): ServiceProvider { | CODE |
| LOW | packages/pyright-internal/src/tests/testStateUtils.ts | 28 | export function convertFileEditActionToString(edit: FileEditAction): string { | CODE |
| LOW | packages/pyright-internal/src/tests/testStateUtils.ts | 34 | export function convertRangeToFileEditAction(state: TestState, range: Range, replacementText?: string): FileEditAction { | CODE |
| LOW | packages/pyright-internal/src/tests/testStateUtils.ts | 153 | export function verifyReferencesAtPosition( | CODE |
| LOW | …/pyright-internal/src/tests/workspaceEditUtils.test.ts | 492 | function applyWorkspaceEditToService(service: AnalyzerService, edits: WorkspaceEdit, filesChanged: Map<string, Uri>) { | CODE |
| LOW | packages/pyright-internal/src/tests/ipythonMode.test.ts | 564 | function verifyAnalysisDiagnosticCount(code: string, expectedCount: number, expectedRule?: string) { | CODE |
| LOW | …right-internal/src/tests/importResolverSupport.test.ts | 214 | function createFsWithTypeshedLayout() { | CODE |
| LOW | …yright-internal/src/tests/benchmarkData/large_class.py | 364 | def transform_metadata_values(self, func: Any) -> Dict[str, Any]: | CODE |
| LOW | …ight-internal/src/tests/lsp/languageServerTestUtils.ts | 270 | function updateConfigurationSection( | CODE |
| LOW | …ight-internal/src/tests/lsp/languageServerTestUtils.ts | 422 | function convertDiagnosticReportItem( | CODE |
| LOW | …ight-internal/src/tests/lsp/languageServerTestUtils.ts | 778 | function startWorkspaceDiagnostics(info: PyrightServerInfo, extraMessage: string) { | CODE |
| LOW | packages/pyright-internal/src/tests/samples/fstring2.py | 6 | def return_right_aligned_string(): | CODE |
| LOW | …kages/pyright-internal/src/tests/samples/codeFlow11.py | 37 | def if_else_untyped_in_one_branch(flag: bool, s: str): | CODE |
| LOW | packages/pyright-internal/src/tests/samples/self2.py | 125 | def object_with_concrete_type( | CODE |
| LOW | packages/pyright-internal/src/tests/samples/lambda1.py | 67 | def may_need_function_generic(callback: Callable[[_T1], _T1] | None): | CODE |
| LOW | packages/pyright-internal/src/tests/samples/with7.py | 15 | def test_generic_bool_context_manager() -> None: | CODE |
| LOW | packages/pyright-internal/src/tests/samples/with7.py | 33 | def test_multi_typevar_context_manager() -> None: | CODE |
| LOW | …s/pyright-internal/src/tests/samples/matchSequence1.py | 539 | def test_tuple_with_subpattern( | CODE |
| LOW | …s/pyright-internal/src/tests/samples/matchSequence1.py | 674 | def test_tuple_subexpressions(d: D): | CODE |
| LOW | …s/pyright-internal/src/tests/samples/matchSequence1.py | 681 | def test_unpacked_variadic_regression( | CODE |
| LOW | packages/pyright-internal/src/tests/samples/super7.py | 36 | def classmethod_super_extra_arg(cls, value: int) -> int: | CODE |
| LOW | packages/pyright-internal/src/tests/samples/super7.py | 51 | def staticmethod_super_extra_arg(value: int) -> int: | CODE |
| LOW | …ages/pyright-internal/src/tests/samples/matchValue1.py | 118 | def test_enum_narrowing_with_annotated(subj: DC1) -> None: | CODE |
| LOW | …ages/pyright-internal/src/tests/samples/matchValue1.py | 146 | def test_enum_narrowing_with_inf(subj: float): | CODE |
| LOW⚡ | …yright-internal/src/tests/samples/typeNarrowingAny1.py | 16 | def test_any_equality_narrowing(x: Any): | CODE |
| LOW⚡ | …yright-internal/src/tests/samples/typeNarrowingAny1.py | 24 | def test_any_list_comprehension(xs: list[Any]): | CODE |
| LOW | …ages/pyright-internal/src/tests/samples/paramSpec21.py | 39 | def call_int_context_callback( | CODE |
| LOW | …ages/pyright-internal/src/tests/samples/paramSpec21.py | 53 | def call_int_context_callable( | CODE |
| LOW⚡ | …ight-internal/src/tests/samples/dataclassConverter1.py | 18 | def converter_with_param_before_args(s: str, *args: int, **kwargs: int) -> int: | CODE |
| LOW⚡ | …ight-internal/src/tests/samples/dataclassConverter1.py | 26 | def converter_with_extra_defaulted_params( | CODE |
| LOW⚡ | …ight-internal/src/tests/samples/dataclassConverter1.py | 32 | def converter_with_default_for_first_param(s: str = "1") -> int: | CODE |
| LOW⚡ | …ight-internal/src/tests/samples/dataclassConverter1.py | 36 | def converter_with_more_specialized_return_type(s: str) -> int: | CODE |
| LOW | …ernal/src/tests/samples/uninitializedVariableBased1.py | 17 | def a_method_not_called_by_init(self) -> None: | CODE |
| LOW⚡ | …/pyright-internal/src/tests/samples/literalForLoop1.py | 8 | def test_non_empty_list_literal(): | CODE |
| LOW⚡ | …/pyright-internal/src/tests/samples/literalForLoop1.py | 16 | def test_non_empty_tuple_literal(): | CODE |
| LOW⚡ | …/pyright-internal/src/tests/samples/literalForLoop1.py | 24 | def test_non_empty_list_multiple_elements(): | CODE |
| LOW⚡ | …/pyright-internal/src/tests/samples/literalForLoop1.py | 32 | def test_non_empty_tuple_multiple_elements(): | CODE |
| LOW | …/pyright-internal/src/tests/samples/literalForLoop1.py | 56 | def test_non_literal_iterable(): | CODE |
| LOW | …/pyright-internal/src/tests/samples/literalForLoop1.py | 100 | def test_break_in_guaranteed_loop(): | CODE |
| LOW | …/pyright-internal/src/tests/samples/literalForLoop1.py | 109 | def test_conditional_break_in_guaranteed_loop(): | CODE |
| 325 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | pdm_build.py | 1 | CODE | |
| LOW | basedpyright/run_node.py | 1 | CODE | |
| LOW | basedpyright/pyright.py | 1 | CODE | |
| LOW | basedpyright/langserver.py | 1 | CODE | |
| LOW | basedpyright/__main__.py | 1 | CODE | |
| LOW | tests/test_python_command.py | 1 | CODE | |
| LOW | tests/test_generate_docstubs.py | 6 | CODE | |
| LOW | …ight-internal/src/tests/benchmarkData/comment_heavy.py | 4 | CODE | |
| LOW | …ight-internal/src/tests/benchmarkData/comment_heavy.py | 4 | CODE | |
| LOW | …ight-internal/src/tests/benchmarkData/comment_heavy.py | 43 | CODE | |
| LOW | …ight-internal/src/tests/benchmarkData/comment_heavy.py | 44 | CODE | |
| LOW | …ight-internal/src/tests/benchmarkData/comment_heavy.py | 45 | CODE | |
| LOW | …ight-internal/src/tests/benchmarkData/comment_heavy.py | 46 | CODE | |
| LOW | …ight-internal/src/tests/benchmarkData/comment_heavy.py | 47 | CODE | |
| LOW | …ight-internal/src/tests/benchmarkData/comment_heavy.py | 48 | CODE | |
| LOW | …yright-internal/src/tests/benchmarkData/union_heavy.py | 4 | CODE | |
| LOW | …yright-internal/src/tests/benchmarkData/union_heavy.py | 6 | CODE | |
| LOW | …right-internal/src/tests/benchmarkData/large_stdlib.py | 4 | CODE | |
| LOW | …right-internal/src/tests/benchmarkData/large_stdlib.py | 7 | CODE | |
| LOW | …right-internal/src/tests/benchmarkData/import_heavy.py | 3 | CODE | |
| LOW | …right-internal/src/tests/benchmarkData/import_heavy.py | 6 | CODE | |
| LOW | …right-internal/src/tests/benchmarkData/import_heavy.py | 7 | CODE | |
| LOW | …right-internal/src/tests/benchmarkData/import_heavy.py | 8 | CODE | |
| LOW | …right-internal/src/tests/benchmarkData/import_heavy.py | 9 | CODE | |
| LOW | …right-internal/src/tests/benchmarkData/import_heavy.py | 10 | CODE | |
| LOW | …right-internal/src/tests/benchmarkData/import_heavy.py | 11 | CODE | |
| LOW | …right-internal/src/tests/benchmarkData/import_heavy.py | 12 | CODE | |
| LOW | …right-internal/src/tests/benchmarkData/import_heavy.py | 13 | CODE | |
| LOW | …right-internal/src/tests/benchmarkData/import_heavy.py | 14 | CODE | |
| LOW | …right-internal/src/tests/benchmarkData/import_heavy.py | 15 | CODE | |
| LOW | …right-internal/src/tests/benchmarkData/import_heavy.py | 16 | CODE | |
| LOW | …right-internal/src/tests/benchmarkData/import_heavy.py | 17 | CODE | |
| LOW | …right-internal/src/tests/benchmarkData/import_heavy.py | 18 | CODE | |
| LOW | …right-internal/src/tests/benchmarkData/import_heavy.py | 19 | CODE | |
| LOW | …right-internal/src/tests/benchmarkData/import_heavy.py | 20 | CODE | |
| LOW | …right-internal/src/tests/benchmarkData/import_heavy.py | 21 | CODE | |
| LOW | …right-internal/src/tests/benchmarkData/import_heavy.py | 22 | CODE | |
| LOW | …right-internal/src/tests/benchmarkData/import_heavy.py | 23 | CODE | |
| LOW | …right-internal/src/tests/benchmarkData/import_heavy.py | 24 | CODE | |
| LOW | …right-internal/src/tests/benchmarkData/import_heavy.py | 25 | CODE | |
| LOW | …right-internal/src/tests/benchmarkData/import_heavy.py | 26 | CODE | |
| LOW | …right-internal/src/tests/benchmarkData/import_heavy.py | 27 | CODE | |
| LOW | …right-internal/src/tests/benchmarkData/import_heavy.py | 28 | CODE | |
| LOW | …right-internal/src/tests/benchmarkData/import_heavy.py | 29 | CODE | |
| LOW | …right-internal/src/tests/benchmarkData/import_heavy.py | 30 | CODE | |
| LOW | …right-internal/src/tests/benchmarkData/import_heavy.py | 31 | CODE | |
| LOW | …right-internal/src/tests/benchmarkData/import_heavy.py | 32 | CODE | |
| LOW | …right-internal/src/tests/benchmarkData/import_heavy.py | 33 | CODE | |
| LOW | …right-internal/src/tests/benchmarkData/import_heavy.py | 34 | CODE | |
| LOW | …right-internal/src/tests/benchmarkData/import_heavy.py | 35 | CODE | |
| LOW | …right-internal/src/tests/benchmarkData/import_heavy.py | 36 | CODE | |
| LOW | …right-internal/src/tests/benchmarkData/import_heavy.py | 37 | CODE | |
| LOW | …right-internal/src/tests/benchmarkData/import_heavy.py | 38 | CODE | |
| LOW | …right-internal/src/tests/benchmarkData/import_heavy.py | 39 | CODE | |
| LOW | …right-internal/src/tests/benchmarkData/import_heavy.py | 40 | CODE | |
| LOW | …right-internal/src/tests/benchmarkData/import_heavy.py | 41 | CODE | |
| LOW | …right-internal/src/tests/benchmarkData/import_heavy.py | 42 | CODE | |
| LOW | …right-internal/src/tests/benchmarkData/import_heavy.py | 43 | CODE | |
| LOW | …right-internal/src/tests/benchmarkData/import_heavy.py | 44 | CODE | |
| LOW | …right-internal/src/tests/benchmarkData/import_heavy.py | 45 | CODE | |
| 460 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | …s/pyright-internal/src/languageService/tooltipUtils.ts | 523 | const name = resolvedDecl.node.d.module.d.nameParts.find((n) => n.d.value === optional.name); | CODE |
| CRITICAL | …ght-internal/src/languageService/completionProvider.ts | 2722 | return [entry.d.keyExpr.d.strings.map((s) => s.d.value).join('')]; | CODE |
| CRITICAL | packages/pyright-internal/src/parser/parser.ts | 2754 | nameParts: importFromNode.d.module.d.nameParts.map((p) => p.d.value), | CODE |
| CRITICAL | packages/pyright-internal/src/parser/parser.ts | 2816 | const nameParts = importAsNode.d.module.d.nameParts.map((p) => p.d.value); | CODE |
| CRITICAL | packages/pyright-internal/src/parser/parser.ts | 2832 | importAsNode.d.module.d.nameParts.forEach((_, index) => { | CODE |
| CRITICAL | packages/pyright-internal/src/common/textEditTracker.ts | 424 | nodeToDelete.d.module.d.nameParts.forEach((n) => this._nodesRemoved.set(n, parseFileResults)); | CODE |
| CRITICAL | packages/pyright-internal/src/analyzer/checker.ts | 2483 | node.d.funcAnnotationComment.d.paramAnnotations.forEach((expr) => { | CODE |
| CRITICAL | packages/pyright-internal/src/analyzer/checker.ts | 5415 | return initNode.d.suite.d.statements.some((maybeStatementList) => { | CODE |
| CRITICAL | packages/pyright-internal/src/analyzer/checker.ts | 6117 | overriddenClassAndSymbol.classType.shared.typedDictEntries.knownItems.get(memberName) ?? | CODE |
| CRITICAL | packages/pyright-internal/src/analyzer/checker.ts | 6129 | overrideClassAndSymbol.classType.shared.typedDictEntries.knownItems.get(memberName) ?? | CODE |
| CRITICAL | …kages/pyright-internal/src/analyzer/patternMatching.ts | 203 | !parentNode.d.suite.d.statements.some( | CODE |
| CRITICAL | packages/pyright-internal/src/analyzer/dataClasses.ts | 289 | const initArg = statement.d.rightExpr.d.args.find((arg) => arg.d.name?.d.value === 'init'); | CODE |
| CRITICAL | packages/pyright-internal/src/analyzer/dataClasses.ts | 308 | const kwOnlyArg = statement.d.rightExpr.d.args.find((arg) => arg.d.name?.d.value === 'kw_only'); | CODE |
| CRITICAL | packages/pyright-internal/src/analyzer/dataClasses.ts | 327 | const defaultValueArg = statement.d.rightExpr.d.args.find( | CODE |
| CRITICAL | packages/pyright-internal/src/analyzer/dataClasses.ts | 335 | const defaultFactoryArg = statement.d.rightExpr.d.args.find( | CODE |
| CRITICAL | packages/pyright-internal/src/analyzer/dataClasses.ts | 346 | const aliasArg = statement.d.rightExpr.d.args.find((arg) => arg.d.name?.d.value === 'alias'); | CODE |
| CRITICAL | packages/pyright-internal/src/analyzer/dataClasses.ts | 358 | const converterArg = statement.d.rightExpr.d.args.find( | CODE |
| CRITICAL | packages/pyright-internal/src/analyzer/binder.ts | 2421 | node.d.expr.d.items.forEach((itemExpr) => { | CODE |
| CRITICAL | …ckages/pyright-internal/src/analyzer/parseTreeUtils.ts | 2099 | node.d.suite.d.statements.forEach((statement) => { | CODE |
| CRITICAL | packages/pyright-internal/src/analyzer/typedDicts.ts | 1001 | const entryName = entry.d.keyExpr.d.strings.map((s) => s.d.value).join(''); | CODE |
| CRITICAL | …ges/pyright-internal/src/analyzer/staticExpressions.ts | 168 | const comparisonPlatform = node.d.rightExpr.d.strings.map((s) => s.d.value).join(''); | CODE |
| CRITICAL | …ges/pyright-internal/src/analyzer/staticExpressions.ts | 175 | const comparisonOsName = node.d.rightExpr.d.strings.map((s) => s.d.value).join(''); | CODE |
| CRITICAL | …ges/pyright-internal/src/analyzer/staticExpressions.ts | 192 | const comparisonStringName = node.d.rightExpr.d.strings.map((s) => s.d.value).join(''); | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …-internal/src/tests/wildcardImportPackageMerge.test.ts | 21 | //// def do_something(value: str) -> None: | COMMENT |
| LOW | packages/pyright-internal/src/tests/completions.test.ts | 2496 | //// def my_function(): ... | COMMENT |
| LOW | packages/pyright-internal/src/tests/completions.test.ts | 2545 | //// def my_function(): ... | COMMENT |
| LOW | packages/pyright-internal/src/tests/samples/loop12.py | 8 | def do_stuff(self, x: int | None): | CODE |
| LOW | packages/pyright-internal/src/tests/samples/unions1.py | 33 | def helper(value: T) -> T | None: ... | CODE |
| LOW | …es/pyright-internal/src/tests/samples/memberAccess4.py | 13 | def do_stuff(self: HasItemProtocol1): | CODE |
| LOW | …es/pyright-internal/src/tests/samples/memberAccess4.py | 47 | def do_stuff(cls: type[HasItemProtocol2]): | CODE |
| LOW | …ages/pyright-internal/src/tests/samples/assignment1.py | 11 | def do_something(self, num: int) -> str: | CODE |
| LOW | …kages/pyright-internal/src/tests/samples/metaclass4.py | 7 | def do_something(self, p1: str, p2: int): | CODE |
| LOW | …kages/pyright-internal/src/tests/samples/protocol21.py | 17 | def do_something(a: A, class_a: type[A]) -> None: | CODE |
| LOW | …ages/pyright-internal/src/tests/samples/paramSpec27.py | 56 | def do_something(int_handler: Handler[int], var_args_handler: Handler[P], /) -> None: | CODE |
| LOW | packages/pyright-internal/src/tests/samples/enum6.py | 38 | def do_something(self): | CODE |
| LOW | …ckages/pyright-internal/src/tests/samples/optional1.py | 14 | def do_stuff(self): | CODE |
| LOW | packages/pyright-internal/src/tests/samples/super7.py | 11 | def my_method(self, value: int) -> int: ... | CODE |
| LOW | …/pyright-internal/src/tests/samples/methodOverride3.py | 74 | def do_stuff(self) -> Iterable[_T_F]: ... | CODE |
| LOW | …/pyright-internal/src/tests/samples/methodOverride3.py | 78 | def do_stuff(self) -> Iterable[_T_F]: ... | CODE |
| LOW | …es/pyright-internal/src/tests/samples/overloadCall8.py | 8 | def my_method(cmd, *args, **kwargs): | CODE |
| LOW | …ages/pyright-internal/src/tests/samples/paramSpec11.py | 19 | def do_stuff(self, name: str, *args: _P.args, **kwargs: _P.kwargs) -> int: | CODE |
| LOW | …ight-internal/src/tests/samples/constrainedTypeVar2.py | 68 | def do_something(value: T3) -> T3: ... | CODE |
| LOW | packages/pyright-internal/src/tests/samples/classes1.py | 41 | def my_method(self) -> "G": | CODE |
| LOW | …es/pyright-internal/src/tests/samples/overloadCall2.py | 22 | async def test_function(): | CODE |
| LOW | …kages/pyright-internal/src/tests/samples/tryExcept5.py | 9 | async def do_stuff(self): | CODE |
| LOW | packages/pyright-internal/src/tests/samples/typeVar7.py | 14 | def do_stuff(self) -> int: | CODE |
| LOW | packages/pyright-internal/src/tests/samples/typeVar7.py | 28 | def do_stuff(self) -> float: | CODE |
| LOW | packages/pyright-internal/src/tests/samples/typeVar6.py | 14 | def do_stuff(self) -> int: | CODE |
| LOW | packages/pyright-internal/src/tests/samples/typeVar6.py | 25 | def do_stuff(self) -> float: | CODE |
| LOW | packages/pyright-internal/src/tests/samples/self4.py | 15 | def do_something(self) -> str: ... | CODE |
| LOW | …ts/fourslash/completions.import.submodule.fourslash.ts | 15 | //// def test_function(): | COMMENT |
| LOW | …nal/src/tests/fourslash/import.multipart3.fourslash.ts | 7 | //// def do_something(value: str) -> None: | COMMENT |
| LOW | …ostics.missingModuleSource.compiledModule.fourslash.ts | 76 | //// def helper() -> int: ... | COMMENT |
| LOW | …stics.missingModuleSource.nativeSubmodule.fourslash.ts | 37 | //// def helper() -> int: ... | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | docs/usage/type-inference.md | 75 | # In this example, symbol var1 has an inferred type of `str | int`. | COMMENT |
| HIGH | docs/usage/type-inference.md | 84 | # In this example, symbol var2 has an inferred type of `Foo | None`. | COMMENT |
| HIGH | docs/usage/type-inference.md | 400 | # In this example, the types of the lambda’s input parameters | COMMENT |
| HIGH | …right-internal/src/tests/samples/solverHigherOrder1.py | 2 | # variables during TypeVar solving. In this example, we | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | …ges/pyright-internal/src/tests/samples/typePrinter2.py | 1 | # This sample is used in conjunction with the typePrinter1.py sample. | COMMENT |
| MEDIUM | packages/pyright-internal/src/tests/samples/final7.py | 1 | # This sample is used in conjunction with final8.py to test that imported | COMMENT |
| MEDIUM | packages/pyright-internal/src/tests/samples/import13.py | 1 | # This sample is used in conjunction with import14.py to test | COMMENT |
| MEDIUM | …/pyright-internal/src/tests/samples/protocolModule1.py | 1 | # This sample is used in conjunction with protocolModule2.py. | COMMENT |
| MEDIUM | packages/pyright-internal/src/tests/samples/import14.py | 1 | # This sample is used in conjunction with import13.py to test | COMMENT |
| MEDIUM | packages/pyright-internal/src/tests/samples/call6.py | 2 | # used in argument expressions when used in conjunction with | COMMENT |
| MEDIUM | …/pyright-internal/src/tests/samples/protocolModule3.py | 1 | # This sample is used in conjunction with protocolModule4.py. | COMMENT |
| MEDIUM | …s/pyright-internal/src/tests/samples/typeVarTuple10.py | 2 | # in conjunction with unpacked tuples. | COMMENT |
| MEDIUM | packages/pyright-internal/src/common/pythonVersion.ts | 98 | // We leverage the fact that the alphabetical ordering | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | …pyright-internal/src/tests/docStringConversion.test.ts | 1094 | -------------------- ## ------------------------------------------ | CODE |
| MEDIUM | …pyright-internal/src/tests/docStringConversion.test.ts | 1110 | -------------------- ## ------------------------------------------ | CODE |
| MEDIUM | packages/pyright-internal/src/tests/samples/lambda1.py | 4 | #------------------------------------------------------ | COMMENT |
| MEDIUM | packages/pyright-internal/src/tests/samples/lambda1.py | 17 | #------------------------------------------------------ | COMMENT |
| MEDIUM | packages/pyright-internal/src/tests/samples/lambda1.py | 26 | #------------------------------------------------------ | COMMENT |
| MEDIUM | packages/pyright-internal/src/tests/samples/lambda1.py | 40 | #------------------------------------------------------ | COMMENT |
| MEDIUM | packages/pyright-internal/src/tests/samples/lambda1.py | 62 | #------------------------------------------------------ | COMMENT |
| MEDIUM | packages/pyright-internal/src/tests/samples/lambda1.py | 80 | #------------------------------------------------------ | COMMENT |
| MEDIUM | packages/pyright-internal/src/tests/samples/call1.py | 6 | # ------------------------------------------------------ | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | …rnal/src/tests/benchmarkData/repetitive_identifiers.py | 29 | def set_x(self, x: T) -> None: | CODE |
| LOW⚡ | …rnal/src/tests/benchmarkData/repetitive_identifiers.py | 32 | def set_y(self, y: K) -> None: | CODE |
| LOW⚡ | …rnal/src/tests/benchmarkData/repetitive_identifiers.py | 35 | def set_z(self, z: V) -> None: | CODE |
| LOW⚡ | …rnal/src/tests/benchmarkData/repetitive_identifiers.py | 67 | def set_x(self, x: T) -> None: | CODE |
| LOW⚡ | …rnal/src/tests/benchmarkData/repetitive_identifiers.py | 70 | def set_y(self, y: K) -> None: | CODE |
| LOW⚡ | …rnal/src/tests/benchmarkData/repetitive_identifiers.py | 73 | def set_z(self, z: V) -> None: | CODE |
| LOW | …yright-internal/src/tests/benchmarkData/large_class.py | 195 | def set_item(self, index: int, value: Any) -> None: | CODE |
| LOW | …yright-internal/src/tests/benchmarkData/large_class.py | 331 | def set_metadata(self, key: str, value: Any) -> None: | CODE |
| LOW | …yright-internal/src/tests/benchmarkData/large_class.py | 428 | def set_flags(self, flags: Set[str]) -> None: | CODE |
| LOW | …yright-internal/src/tests/benchmarkData/large_class.py | 649 | def set_counter(self, value: int) -> None: | CODE |
| LOW | …yright-internal/src/tests/benchmarkData/large_class.py | 840 | def set_version(self, version: int) -> None: | CODE |
| LOW | packages/pyright-internal/src/tests/samples/import3.py | 3 | __all__ = ["foo", "_foo", "_bar"] | CODE |
| LOW | …kages/pyright-internal/src/tests/samples/dunderAll2.py | 9 | __all__ = ["a", "b", "c", "d"] | CODE |
| LOW | …es/pyright-internal/src/tests/samples/autoVariance1.py | 157 | def set_value(self, value: T) -> None: | CODE |
| LOW | …right-internal/src/tests/samples/typedDictReadOnly2.py | 211 | def update_a(a: TD18, b: TD19) -> None: | CODE |
| LOW | packages/pyright-internal/src/tests/samples/private3.py | 4 | __all__ = ["_exported_via_all", "Public"] | CODE |
| LOW | …kages/pyright-internal/src/tests/samples/dunderAll1.py | 14 | __all__ = ["test", "hello"] | CODE |
| LOW | …kages/pyright-internal/src/tests/samples/dunderAll1.py | 26 | __all__ = ["test", my_string] | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …yright-internal/src/tests/benchmarkData/union_heavy.py | 98 | CODE | |
| LOW | …yright-internal/src/tests/benchmarkData/union_heavy.py | 115 | CODE | |
| LOW | …yright-internal/src/tests/benchmarkData/union_heavy.py | 155 | CODE | |
| LOW | …yright-internal/src/tests/benchmarkData/union_heavy.py | 170 | CODE | |
| LOW | …yright-internal/src/tests/benchmarkData/union_heavy.py | 188 | CODE | |
| LOW | …yright-internal/src/tests/benchmarkData/union_heavy.py | 265 | CODE | |
| LOW | …yright-internal/src/tests/benchmarkData/union_heavy.py | 397 | CODE | |
| LOW | …yright-internal/src/tests/benchmarkData/union_heavy.py | 481 | CODE | |
| LOW | …right-internal/src/tests/benchmarkData/large_stdlib.py | 943 | CODE | |
| LOW | …right-internal/src/tests/benchmarkData/large_stdlib.py | 1071 | CODE | |
| LOW | …right-internal/src/tests/benchmarkData/large_stdlib.py | 1601 | CODE | |
| LOW | …right-internal/src/tests/benchmarkData/large_stdlib.py | 1678 | CODE | |
| LOW | packages/pyright-internal/src/tests/samples/classes8.py | 33 | CODE | |
| LOW | packages/pyright-internal/src/tests/samples/loop16.py | 7 | CODE | |
| LOW | …ckages/pyright-internal/src/tests/samples/codeFlow4.py | 87 | CODE | |
| LOW | packages/pyright-internal/src/tests/samples/loop20.py | 18 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …kages/pyright-internal/src/tests/samples/tryExcept9.py | 10 | except Exception: | CODE |
| LOW | …kages/pyright-internal/src/tests/samples/tryExcept9.py | 26 | except Exception: | CODE |
| LOW | …ages/pyright-internal/src/tests/samples/tryExcept10.py | 9 | except Exception: | CODE |
| LOW | …kages/pyright-internal/src/tests/samples/tryExcept8.py | 16 | except Exception: | CODE |
| MEDIUM | …kages/pyright-internal/src/tests/samples/tryExcept8.py | 11 | def func2(): | CODE |
| LOW | packages/pyright-internal/src/tests/samples/with5.py | 19 | except Exception: | CODE |
| LOW | packages/pyright-internal/src/tests/samples/with5.py | 30 | except Exception: | CODE |
| LOW | …ages/pyright-internal/src/tests/samples/paramSpec30.py | 45 | except Exception as ex: | CODE |
| LOW | …kages/pyright-internal/src/tests/samples/tryExcept1.py | 23 | except Exception as e: | CODE |
| MEDIUM | …kages/pyright-internal/src/tests/samples/tryExcept1.py | 8 | def func1(): | CODE |
| MEDIUM | …kages/pyright-internal/src/tests/samples/tryExcept1.py | 48 | def func4(): | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | …ckages/pyright-internal/src/tests/samples/builtins1.py | 1 | # This file is intentionally blank. It's used to test | COMMENT |
| MEDIUM⚡ | …yright-internal/src/tests/samples/typeNarrowingAny1.py | 30 | # Create an Unknown type | COMMENT |
| MEDIUM | …es/pyright-internal/src/tests/samples/memberAccess2.py | 30 | # This class is a data class (because it derives from | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | …ckages/pyright-internal/src/tests/samples/codeFlow1.py | 48 | CODE | |
| MEDIUM | …ges/pyright-internal/src/tests/samples/unreachable1.py | 111 | CODE | |
| MEDIUM | …kages/pyright-internal/src/tests/samples/generator6.py | 9 | CODE | |
| MEDIUM | …kages/pyright-internal/src/tests/samples/generator6.py | 14 | CODE | |
| MEDIUM | …kages/pyright-internal/src/tests/samples/generator3.py | 61 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | …ckages/pyright-internal/src/analyzer/docStringUtils.ts | 92 | * Description of function (we don't parse this) * * Args: * param1: multi-line description first li | STRING |
| HIGH | …ckages/pyright-internal/src/analyzer/docStringUtils.ts | 111 | * Description of function (we don't parse this) * * Args: * param1 (type): multi-line description f | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …es/pyright-internal/src/tests/samples/genericType47.py | 34 | CODE | |
| LOW | …es/pyright-internal/src/tests/samples/genericType23.py | 13 | CODE | |
| LOW | …kages/pyright-internal/src/tests/samples/decorator5.py | 9 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …kages/pyright-internal/src/tests/hoverProvider.test.ts | 512 | //// Lorem Ipsum | COMMENT |
| LOW | …kages/pyright-internal/src/tests/hoverProvider.test.ts | 523 | marker: '```python\n(property) test: (self: Self@Test) -> bool\n```\n---\nTest DocString.\n\nReturns\n-------\nb | CODE |