Collection of library stubs for Python, with static types
This report summarizes scanner evidence for python/typeshed, a Python project with 5,132 GitHub stars. SynthScan examined 15,240 lines of code across 159 source files, recording 383 pattern matches distributed across 14 syntactic categories. The legacy adjusted pattern signal is 59.4 (High pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Can maintainers explain intent, assumptions, and trade-offs? 95 finding(s).
Are imports declared and package/API names verified? 81 finding(s).
Are wrappers, guards, and repeated structures necessary? 272 finding(s).
Which changes need focused human review? 383 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 383 distinct pattern matches across 14 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. 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 configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | lib/ts_utils/utils.py | 87 | # ==================================================================== | COMMENT |
| MEDIUM | lib/ts_utils/utils.py | 89 | # ==================================================================== | COMMENT |
| MEDIUM⚡ | lib/ts_utils/utils.py | 118 | # ==================================================================== | COMMENT |
| MEDIUM⚡ | lib/ts_utils/utils.py | 120 | # ==================================================================== | COMMENT |
| MEDIUM⚡ | lib/ts_utils/utils.py | 130 | # ==================================================================== | COMMENT |
| MEDIUM⚡ | lib/ts_utils/utils.py | 132 | # ==================================================================== | COMMENT |
| MEDIUM | lib/ts_utils/utils.py | 149 | # ==================================================================== | COMMENT |
| MEDIUM | lib/ts_utils/utils.py | 151 | # ==================================================================== | COMMENT |
| MEDIUM | lib/ts_utils/utils.py | 200 | # ==================================================================== | COMMENT |
| MEDIUM | lib/ts_utils/utils.py | 202 | # ==================================================================== | COMMENT |
| MEDIUM | lib/ts_utils/utils.py | 277 | # ==================================================================== | COMMENT |
| MEDIUM | lib/ts_utils/utils.py | 279 | # ==================================================================== | COMMENT |
| MEDIUM⚡ | lib/ts_utils/utils.py | 295 | # ==================================================================== | COMMENT |
| MEDIUM⚡ | lib/ts_utils/utils.py | 297 | # ==================================================================== | COMMENT |
| MEDIUM | stdlib/@tests/stubtest_allowlists/linux.txt | 1 | # ========================================== | COMMENT |
| MEDIUM | stdlib/@tests/stubtest_allowlists/linux.txt | 3 | # ========================================== | COMMENT |
| MEDIUM | stdlib/@tests/stubtest_allowlists/linux.txt | 16 | # ========================================================== | COMMENT |
| MEDIUM | stdlib/@tests/stubtest_allowlists/linux.txt | 18 | # ========================================================== | COMMENT |
| MEDIUM | stdlib/@tests/stubtest_allowlists/darwin-py314.txt | 1 | # ============= | COMMENT |
| MEDIUM | stdlib/@tests/stubtest_allowlists/darwin-py314.txt | 3 | # ============= | COMMENT |
| MEDIUM⚡ | stdlib/@tests/stubtest_allowlists/common.txt | 1 | # ============================================ | COMMENT |
| MEDIUM⚡ | stdlib/@tests/stubtest_allowlists/common.txt | 3 | # ============================================ | COMMENT |
| MEDIUM⚡ | stdlib/@tests/stubtest_allowlists/common.txt | 12 | # =============================================================== | COMMENT |
| MEDIUM⚡ | stdlib/@tests/stubtest_allowlists/common.txt | 14 | # =============================================================== | COMMENT |
| MEDIUM⚡ | stdlib/@tests/stubtest_allowlists/common.txt | 20 | # ====================================================================== | COMMENT |
| MEDIUM⚡ | stdlib/@tests/stubtest_allowlists/common.txt | 22 | # ====================================================================== | COMMENT |
| MEDIUM⚡ | stdlib/@tests/stubtest_allowlists/common.txt | 27 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | stdlib/@tests/stubtest_allowlists/common.txt | 29 | # ============================================================================= | COMMENT |
| MEDIUM | stdlib/@tests/stubtest_allowlists/common.txt | 127 | # ===================================== | COMMENT |
| MEDIUM | stdlib/@tests/stubtest_allowlists/common.txt | 129 | # ===================================== | COMMENT |
| MEDIUM | stdlib/@tests/stubtest_allowlists/common.txt | 153 | # ========================================================== | COMMENT |
| MEDIUM | stdlib/@tests/stubtest_allowlists/common.txt | 155 | # ========================================================== | COMMENT |
| MEDIUM | stdlib/@tests/stubtest_allowlists/win32-py312.txt | 53 | # ============================================================= | COMMENT |
| MEDIUM | stdlib/@tests/stubtest_allowlists/win32-py312.txt | 55 | # ============================================================= | COMMENT |
| MEDIUM | stdlib/@tests/stubtest_allowlists/darwin-py315.txt | 1 | # ============================================================= | COMMENT |
| MEDIUM | stdlib/@tests/stubtest_allowlists/darwin-py315.txt | 3 | # ============================================================= | COMMENT |
| MEDIUM | stdlib/@tests/stubtest_allowlists/win32-py310.txt | 74 | # ============================================================= | COMMENT |
| MEDIUM | stdlib/@tests/stubtest_allowlists/win32-py310.txt | 76 | # ============================================================= | COMMENT |
| MEDIUM | stdlib/@tests/stubtest_allowlists/win32-py311.txt | 49 | # ============================================================= | COMMENT |
| MEDIUM | stdlib/@tests/stubtest_allowlists/win32-py311.txt | 51 | # ============================================================= | COMMENT |
| MEDIUM⚡ | stdlib/@tests/stubtest_allowlists/darwin.txt | 1 | # ============================================ | COMMENT |
| MEDIUM⚡ | stdlib/@tests/stubtest_allowlists/darwin.txt | 3 | # ============================================ | COMMENT |
| MEDIUM⚡ | stdlib/@tests/stubtest_allowlists/darwin.txt | 13 | # ========================================== | COMMENT |
| MEDIUM⚡ | stdlib/@tests/stubtest_allowlists/darwin.txt | 15 | # ========================================== | COMMENT |
| MEDIUM | stdlib/@tests/stubtest_allowlists/darwin.txt | 28 | # ========================================================== | COMMENT |
| MEDIUM | stdlib/@tests/stubtest_allowlists/darwin.txt | 30 | # ========================================================== | COMMENT |
| MEDIUM⚡ | stdlib/@tests/stubtest_allowlists/darwin-py312.txt | 36 | # ============ | COMMENT |
| MEDIUM⚡ | stdlib/@tests/stubtest_allowlists/darwin-py312.txt | 38 | # ============ | COMMENT |
| MEDIUM⚡ | stdlib/@tests/stubtest_allowlists/darwin-py312.txt | 46 | # ============================================================= | COMMENT |
| MEDIUM⚡ | stdlib/@tests/stubtest_allowlists/darwin-py312.txt | 48 | # ============================================================= | COMMENT |
| MEDIUM⚡ | stdlib/@tests/stubtest_allowlists/darwin-py312.txt | 57 | # ================ | COMMENT |
| MEDIUM⚡ | stdlib/@tests/stubtest_allowlists/darwin-py312.txt | 59 | # ================ | COMMENT |
| MEDIUM | stdlib/@tests/stubtest_allowlists/win32-py315.txt | 1 | # ============================================================= | COMMENT |
| MEDIUM | stdlib/@tests/stubtest_allowlists/win32-py315.txt | 3 | # ============================================================= | COMMENT |
| MEDIUM | stdlib/@tests/stubtest_allowlists/darwin-py313.txt | 1 | # ============= | COMMENT |
| MEDIUM | stdlib/@tests/stubtest_allowlists/darwin-py313.txt | 3 | # ============= | COMMENT |
| MEDIUM⚡ | stdlib/@tests/stubtest_allowlists/darwin-py311.txt | 49 | # ============ | COMMENT |
| MEDIUM⚡ | stdlib/@tests/stubtest_allowlists/darwin-py311.txt | 51 | # ============ | COMMENT |
| MEDIUM⚡ | stdlib/@tests/stubtest_allowlists/darwin-py311.txt | 59 | # ============================================================= | COMMENT |
| MEDIUM⚡ | stdlib/@tests/stubtest_allowlists/darwin-py311.txt | 61 | # ============================================================= | COMMENT |
| 135 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/ty_test.py | 4 | CODE | |
| LOW | tests/check_typeshed_structure.py | 8 | CODE | |
| LOW | tests/regr_test.py | 4 | CODE | |
| LOW | tests/stubtest_third_party.py | 4 | CODE | |
| LOW | tests/typecheck_typeshed.py | 4 | CODE | |
| LOW | tests/stubtest_stdlib.py | 10 | CODE | |
| LOW | tests/pyrefly_test.py | 4 | CODE | |
| LOW | tests/mypy_test.py | 4 | CODE | |
| LOW | tests/mypy_test.py | 41 | CODE | |
| LOW | tests/runtests.py | 2 | CODE | |
| LOW | scripts/create_baseline_stubs.py | 11 | CODE | |
| LOW | scripts/stubsabot.py | 2 | CODE | |
| LOW | scripts/sync_protobuf/s2clientprotocol.py | 7 | CODE | |
| LOW | scripts/sync_protobuf/google_protobuf.py | 7 | CODE | |
| LOW | scripts/sync_protobuf/tensorflow.py | 7 | CODE | |
| LOW | scripts/sync_protobuf/_utils.py | 1 | CODE | |
| LOW | lib/ts_utils/metadata.py | 6 | CODE | |
| LOW | lib/ts_utils/mypy.py | 1 | CODE | |
| LOW | lib/ts_utils/utils.py | 3 | CODE | |
| LOW | lib/ts_utils/requirements.py | 1 | CODE | |
| LOW | stdlib/@tests/test_cases/check_SupportsGetItem.py | 1 | CODE | |
| LOW | stdlib/@tests/test_cases/check_functools.py | 1 | CODE | |
| LOW | stdlib/@tests/test_cases/check_inspect.py | 1 | CODE | |
| LOW | stdlib/@tests/test_cases/check_copy.py | 1 | CODE | |
| LOW | stdlib/@tests/test_cases/check_concurrent_futures.py | 1 | CODE | |
| LOW | stdlib/@tests/test_cases/check_dataclasses.py | 1 | CODE | |
| LOW | stdlib/@tests/test_cases/check_dataclasses.py | 9 | CODE | |
| LOW | stdlib/@tests/test_cases/check_codecs.py | 1 | CODE | |
| LOW | stdlib/@tests/test_cases/check_types.py | 1 | CODE | |
| LOW | stdlib/@tests/test_cases/check_tkinter.py | 1 | CODE | |
| LOW | stdlib/@tests/test_cases/check_pathlib.py | 1 | CODE | |
| LOW | stdlib/@tests/test_cases/check_sqlite3.py | 1 | CODE | |
| LOW | stdlib/@tests/test_cases/check_importlib_resources.py | 1 | CODE | |
| LOW | stdlib/@tests/test_cases/check_re.py | 1 | CODE | |
| LOW | stdlib/@tests/test_cases/check_importlib_metadata.py | 1 | CODE | |
| LOW | stdlib/@tests/test_cases/check_platform.py | 1 | CODE | |
| LOW | stdlib/@tests/test_cases/check_enum.py | 1 | CODE | |
| LOW | stdlib/@tests/test_cases/check_math.py | 1 | CODE | |
| LOW | stdlib/@tests/test_cases/check_xml.py | 1 | CODE | |
| LOW | stdlib/@tests/test_cases/check_logging.py | 1 | CODE | |
| LOW | stdlib/@tests/test_cases/check_zipfile.py | 1 | CODE | |
| LOW | stdlib/@tests/test_cases/check_compression.py | 1 | CODE | |
| LOW | stdlib/@tests/test_cases/check_threading.py | 1 | CODE | |
| LOW | stdlib/@tests/test_cases/check_os_path.py | 1 | CODE | |
| LOW | stdlib/@tests/test_cases/check_importlib.py | 1 | CODE | |
| LOW | stdlib/@tests/test_cases/check_socket.py | 1 | CODE | |
| LOW | stdlib/@tests/test_cases/check_contextlib.py | 1 | CODE | |
| LOW | stdlib/@tests/test_cases/check_unittest.py | 1 | CODE | |
| LOW | stdlib/@tests/test_cases/check_tempfile.py | 1 | CODE | |
| LOW | stdlib/@tests/test_cases/ctypes/check_pointer.py | 1 | CODE | |
| LOW | …s/test_cases/multiprocessing/check_pipe_connections.py | 1 | CODE | |
| LOW | …dlib/@tests/test_cases/multiprocessing/check_ctypes.py | 1 | CODE | |
| LOW | stdlib/@tests/test_cases/urllib/check_parse.py | 1 | CODE | |
| LOW | stdlib/@tests/test_cases/builtins/check_slice.py | 33 | CODE | |
| LOW | stdlib/@tests/test_cases/builtins/check_slice.py | 36 | CODE | |
| LOW | …b/@tests/test_cases/builtins/check_frozendict-py315.py | 1 | CODE | |
| LOW | stdlib/@tests/test_cases/builtins/check_memoryview.py | 1 | CODE | |
| LOW | stdlib/@tests/test_cases/builtins/check_sum.py | 1 | CODE | |
| LOW | stdlib/@tests/test_cases/builtins/check_tuple.py | 1 | CODE | |
| LOW | stdlib/@tests/test_cases/builtins/check_iteration.py | 1 | CODE | |
| 21 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/check_typeshed_structure.py | 37 | def assert_consistent_filetypes( | CODE |
| LOW | tests/check_typeshed_structure.py | 100 | def all_relative_paths_in_directory(path: Path) -> set[Path]: | CODE |
| LOW | tests/check_typeshed_structure.py | 178 | def check_pyright_exclude_order() -> None: | CODE |
| LOW | tests/regr_test.py | 51 | def distribution_with_test_cases(distribution_name: str) -> DistributionTests: | CODE |
| LOW | tests/regr_test.py | 324 | def concurrently_run_testcases( | CODE |
| LOW | tests/stubtest_third_party.py | 203 | def setup_gdb_stubtest_command(venv_dir: Path, stubtest_cmd: list[str], formatter: StatusLineFormatter) -> bool: | CODE |
| LOW | tests/stubtest_third_party.py | 297 | def setup_uwsgi_stubtest_command(dist: Path, venv_dir: Path, stubtest_cmd: list[str], formatter: StatusLineFormatter) -> | STRING |
| LOW | tests/mypy_test.py | 245 | def test_third_party_distribution( | CODE |
| LOW | tests/mypy_test.py | 322 | def setup_venv_for_external_requirements_set( | CODE |
| LOW | tests/mypy_test.py | 333 | def install_requirements_for_venv(venv_dir: Path, args: TestConfig, external_requirements: frozenset[Requirement]) -> No | CODE |
| LOW | tests/mypy_test.py | 349 | def setup_virtual_environments(distributions: dict[str, PackageDependencies], args: TestConfig, tempdir: Path) -> None: | CODE |
| LOW | scripts/create_baseline_stubs.py | 40 | def get_installed_package_info(project: str) -> tuple[str, str] | None: | CODE |
| LOW | scripts/create_baseline_stubs.py | 74 | async def get_project_urls_from_pypi(project: str, session: aiohttp.ClientSession) -> dict[str, str]: | CODE |
| LOW⚡ | scripts/stubsabot.py | 505 | def describe_public_files_added(self) -> str: | CODE |
| LOW⚡ | scripts/stubsabot.py | 511 | def describe_typeshed_files_deleted(self) -> str: | CODE |
| LOW⚡ | scripts/stubsabot.py | 517 | def describe_typeshed_files_modified(self) -> str: | CODE |
| LOW | scripts/stubsabot.py | 125 | def releases_in_descending_order(self) -> Iterator[PypiReleaseDownload]: | CODE |
| LOW | scripts/stubsabot.py | 233 | def all_py_files_in_source_are_in_py_typed_dirs(source: zipfile.ZipFile | tarfile.TarFile) -> bool: | CODE |
| LOW | scripts/stubsabot.py | 281 | async def release_contains_py_typed(release_to_download: PypiReleaseDownload, *, session: aiohttp.ClientSession) -> bool | CODE |
| LOW | scripts/stubsabot.py | 285 | async def find_first_release_with_py_typed(pypi_info: PypiInfo, *, session: aiohttp.ClientSession) -> PypiReleaseDownloa | CODE |
| LOW | scripts/stubsabot.py | 457 | def runtime_definitely_has_consistent_directory_structure_with_typeshed(self) -> bool: | CODE |
| LOW | scripts/stubsabot.py | 598 | def obsolete_more_than_n_months(since_date: datetime.date) -> bool: | CODE |
| LOW | scripts/stubsabot.py | 604 | def parse_no_longer_updated_from_archive(source: zipfile.ZipFile | tarfile.TarFile) -> bool: | CODE |
| LOW | scripts/stubsabot.py | 627 | async def has_no_longer_updated_release(release_to_download: PypiReleaseDownload, *, session: aiohttp.ClientSession) -> | CODE |
| LOW | scripts/stubsabot.py | 642 | async def determine_action_no_error_handling( | CODE |
| LOW | scripts/stubsabot.py | 734 | async def create_or_update_pull_request(*, title: str, body: str, branch_name: str, session: aiohttp.ClientSession) -> N | CODE |
| LOW | scripts/stubsabot.py | 773 | async def update_existing_pull_request(*, title: str, body: str, branch_name: str, session: aiohttp.ClientSession) -> in | CODE |
| LOW | scripts/stubsabot.py | 784 | async def update_pull_request_label(*, pr_number: int, session: aiohttp.ClientSession) -> None: | CODE |
| LOW | scripts/stubsabot.py | 798 | def has_non_stubsabot_commits(branch: str) -> bool: | CODE |
| LOW | scripts/stubsabot.py | 812 | def latest_commit_is_different_to_last_commit_on_origin(branch: str) -> bool: | CODE |
| LOW | lib/ts_utils/metadata.py | 61 | def get_oldest_supported_python() -> str: | CODE |
| LOW | lib/ts_utils/metadata.py | 94 | def system_requirements_for_platform(self, platform: str) -> list[str]: | CODE |
| LOW | lib/ts_utils/metadata.py | 418 | def get_pypi_name_to_typeshed_name_mapping() -> Mapping[str, str]: | CODE |
| LOW | lib/ts_utils/metadata.py | 450 | def get_recursive_requirements(package_name: str) -> PackageDependencies: | CODE |
| LOW | lib/ts_utils/mypy.py | 31 | def mypy_configuration_from_distribution(distribution: str) -> list[MypyDistConf]: | CODE |
| LOW | lib/ts_utils/mypy.py | 57 | def temporary_mypy_config_file( | CODE |
| LOW | lib/ts_utils/utils.py | 164 | def supported_versions_for_module(self, module_name: str) -> tuple[VersionTuple, VersionTuple]: | CODE |
| LOW | lib/ts_utils/utils.py | 177 | def parse_stdlib_versions_file() -> SupportedVersions: | CODE |
| LOW | lib/ts_utils/utils.py | 225 | def get_all_testcase_directories() -> list[DistributionTests]: | CODE |
| LOW⚡ | lib/ts_utils/utils.py | 300 | def allowlist_stubtest_arguments(distribution_name: str) -> list[str]: | CODE |
| LOW | lib/ts_utils/requirements.py | 14 | def get_external_stub_requirements(distributions: Iterable[str] = ()) -> set[Requirement]: | CODE |
| LOW | lib/ts_utils/requirements.py | 21 | def get_stubtest_system_requirements(distributions: Iterable[str] = (), platform: str = sys.platform) -> set[str]: | CODE |
| LOW | stdlib/@tests/test_cases/check_functools.py | 91 | def check_lru_cache_with_maxsize(x: int) -> int: | CODE |
| LOW | stdlib/@tests/test_cases/check_functools.py | 130 | def check_cached_property_settable(x: int) -> None: | CODE |
| LOW | stdlib/@tests/test_cases/check_inspect.py | 9 | def test_iscoroutinefunction_inspect( | CODE |
| LOW | stdlib/@tests/test_cases/check_inspect.py | 28 | def test_isgeneratorfunction_inspect(x: Callable[[str], object], y: object) -> None: | CODE |
| LOW | stdlib/@tests/test_cases/check_inspect.py | 35 | def test_isasyncgenfunction_inspect(x: Callable[[str], object], y: object) -> None: | CODE |
| LOW | stdlib/@tests/test_cases/check_concurrent_futures.py | 16 | def check_as_completed_covariance() -> None: | CODE |
| LOW | stdlib/@tests/test_cases/check_concurrent_futures.py | 40 | def check_interpreter_pool_executor() -> None: | CODE |
| LOW | stdlib/@tests/test_cases/check_concurrent_futures.py | 69 | def check_thread_worker_context() -> None: | CODE |
| LOW | stdlib/@tests/test_cases/check_dataclasses.py | 55 | def check_other_isdataclass_overloads(x: type, y: object) -> None: | CODE |
| LOW | stdlib/@tests/test_cases/check_unittest.py | 209 | def obj_f_explicit_new_callable(i: int, new_callable_ret: int) -> str: | CODE |
| LOW | stdlib/@tests/test_cases/builtins/check_set.py | 17 | def test_set_interface_overlapping_type(s: set[Literal["foo", "bar"]], y: set[str], key: str) -> None: | CODE |
| LOW | stdlib/@tests/test_cases/builtins/check_min.py | 57 | def test_min_custom_comparison() -> None: | CODE |
| LOW⚡ | …sts/test_cases/builtins/check_exception_group-py311.py | 328 | def test_exception_group_default_type() -> None: | CODE |
| LOW⚡ | …sts/test_cases/builtins/check_exception_group-py311.py | 335 | def test_exception_group_with_specific_type() -> None: | CODE |
| LOW⚡ | …sts/test_cases/builtins/check_exception_group-py311.py | 342 | def test_base_exception_group_default_type() -> None: | CODE |
| LOW⚡ | …sts/test_cases/builtins/check_exception_group-py311.py | 349 | def test_base_exception_group_with_specific_type() -> None: | CODE |
| LOW | stdlib/@tests/test_cases/builtins/check_dict.py | 47 | def test_iterable_tuple_overload(x: Iterable[tuple[int, str]]) -> dict[int, str]: | CODE |
| LOW | stdlib/@tests/test_cases/typing/check_MutableMapping.py | 7 | def check_update_method__int_key() -> None: | CODE |
| 4 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | pyproject.toml | 181 | ### | COMMENT |
| LOW | pyproject.toml | 221 | "ANN2", # Missing return type annotation for ... | COMMENT |
| LOW | tests/regr_test.py | 121 | def setup_testcase_dir(package: DistributionTests, tempdir: Path, verbosity: Verbosity) -> None: | COMMENT |
| LOW | stdlib/@tests/stubtest_allowlists/darwin-py314.txt | 1 | # ============= | COMMENT |
| LOW | stdlib/@tests/stubtest_allowlists/win32-py313.txt | 1 | # ======= | COMMENT |
| LOW | stdlib/@tests/stubtest_allowlists/win32-py314.txt | 1 | # ======= | COMMENT |
| LOW | stdlib/@tests/stubtest_allowlists/darwin-py313.txt | 1 | # ============= | COMMENT |
| LOW | stdlib/@tests/stubtest_allowlists/py311.txt | 1 | # ========================= | COMMENT |
| LOW | stdlib/@tests/stubtest_allowlists/py312.txt | 1 | # ========================= | COMMENT |
| LOW | stdlib/@tests/stubtest_allowlists/linux-py314.txt | 1 | # ============= | COMMENT |
| LOW | stdlib/@tests/stubtest_allowlists/py313.txt | 1 | # ========================= | COMMENT |
| LOW | stdlib/@tests/stubtest_allowlists/linux-py313.txt | 1 | # ============= | COMMENT |
| LOW | stdlib/@tests/test_cases/check_types.py | 81 | # pyright and mypy infer different types here | COMMENT |
| LOW | stdlib/@tests/test_cases/check_math.py | 61 | # TODO: these pass pyright with the current stubs, but mypy erroneously emits an error: | COMMENT |
| LOW | …sts/test_cases/builtins/check_exception_group-py311.py | 141 | COMMENT | |
| LOW | stdlib/@tests/test_cases/builtins/check_dict.py | 121 | # | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | scripts/sync_protobuf/s2clientprotocol.py | 0 | generates the protobuf stubs for the given tensorflow version using mypy-protobuf. generally, new minor versions are a g | STRING |
| HIGH | scripts/sync_protobuf/google_protobuf.py | 0 | generates the protobuf stubs for the given tensorflow version using mypy-protobuf. generally, new minor versions are a g | STRING |
| HIGH | scripts/sync_protobuf/tensorflow.py | 0 | generates the protobuf stubs for the given tensorflow version using mypy-protobuf. generally, new minor versions are a g | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | tests/stubtest_third_party.py | 410 | except KeyboardInterrupt: | CODE |
| HIGH | …@tests/test_cases/itertools/check_itertools_recipes.py | 176 | except exception: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | stdlib/@tests/test_cases/check_importlib.py | 30 | return None # simplified mock for demonstration purposes only | CODE |
| MEDIUM⚡ | stdlib/@tests/test_cases/check_importlib.py | 36 | return cls # simplified mock for demonstration purposes only | CODE |
| MEDIUM⚡ | stdlib/@tests/test_cases/check_importlib.py | 40 | return None # simplified mock for demonstration purposes only | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/stubtest_third_party.py | 242 | except Exception: | CODE |
| MEDIUM | scripts/create_baseline_stubs.py | 225 | print(f'Error: "{project}" is not installed', file=sys.stderr) | CODE |
| LOW | scripts/stubsabot.py | 638 | except Exception as exc: | CODE |
| MEDIUM | …sts/test_cases/builtins/check_exception_group-py311.py | 328 | def test_exception_group_default_type() -> None: | CODE |
| MEDIUM | …sts/test_cases/builtins/check_exception_group-py311.py | 335 | def test_exception_group_with_specific_type() -> None: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/check_typeshed_structure.py | 147 | CODE | |
| LOW | tests/regr_test.py | 171 | CODE | |
| LOW | tests/regr_test.py | 324 | CODE | |
| LOW | tests/stubtest_third_party.py | 24 | CODE | |
| LOW | scripts/stubsabot.py | 204 | CODE | |
| LOW | scripts/stubsabot.py | 554 | CODE | |
| LOW | lib/ts_utils/mypy.py | 57 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tests/check_typeshed_structure.py | 33 | "django_settings.py" # This file contains Django settings used by the mypy_django_plugin during stubtest execution. | CODE |
| MEDIUM | lib/ts_utils/metadata.py | 1 | # This module is made specifically to abstract away those type errors | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scripts/stubsabot.py | 784 | async def update_pull_request_label(*, pr_number: int, session: aiohttp.ClientSession) -> None: | CODE |
| LOW | lib/ts_utils/metadata.py | 29 | __all__ = [ | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scripts/sync_protobuf/tensorflow.py | 80 | # Write the file out again | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tests/stubtest_third_party.py | 298 | """Perform some black magic in order to run stubtest inside uWSGI. | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | stdlib/@tests/test_cases/check_dataclasses.py | 120 | CODE |