Collection of library stubs for Python, with static types
This report presents the forensic synthetic code analysis of python/typeshed, a Python project with 5,094 GitHub stars. SynthScan v2.0 examined 14,224 lines of code across 149 source files, recording 380 pattern matches distributed across 13 syntactic categories. The overall adjusted score of 62.6 places this repository in the Strong 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).
Longitudinal tracking requires multiple scan runs. Once this repository is re-scanned after new commits land, this chart will visualise how the synthetic code signal evolves over time — enabling you to detect whether AI authorship is growing, stabilising, or being actively corrected by human engineers.
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 380 distinct pattern matches across 13 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 |
|---|---|---|---|---|
| MEDIUM | lib/ts_utils/utils.py | 67 | # ==================================================================== | COMMENT |
| MEDIUM | lib/ts_utils/utils.py | 69 | # ==================================================================== | COMMENT |
| MEDIUM⚡ | lib/ts_utils/utils.py | 116 | # ==================================================================== | COMMENT |
| MEDIUM⚡ | lib/ts_utils/utils.py | 118 | # ==================================================================== | COMMENT |
| MEDIUM⚡ | lib/ts_utils/utils.py | 128 | # ==================================================================== | COMMENT |
| MEDIUM⚡ | lib/ts_utils/utils.py | 130 | # ==================================================================== | COMMENT |
| MEDIUM⚡ | lib/ts_utils/utils.py | 147 | # ==================================================================== | COMMENT |
| MEDIUM⚡ | lib/ts_utils/utils.py | 149 | # ==================================================================== | COMMENT |
| MEDIUM | lib/ts_utils/utils.py | 190 | # ==================================================================== | COMMENT |
| MEDIUM | lib/ts_utils/utils.py | 192 | # ==================================================================== | COMMENT |
| MEDIUM | lib/ts_utils/utils.py | 261 | # ==================================================================== | COMMENT |
| MEDIUM | lib/ts_utils/utils.py | 263 | # ==================================================================== | COMMENT |
| MEDIUM⚡ | lib/ts_utils/utils.py | 279 | # ==================================================================== | COMMENT |
| MEDIUM⚡ | lib/ts_utils/utils.py | 281 | # ==================================================================== | 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 | 119 | # ===================================== | COMMENT |
| MEDIUM | stdlib/@tests/stubtest_allowlists/common.txt | 121 | # ===================================== | COMMENT |
| MEDIUM | stdlib/@tests/stubtest_allowlists/common.txt | 145 | # ========================================================== | COMMENT |
| MEDIUM | stdlib/@tests/stubtest_allowlists/common.txt | 147 | # ========================================================== | COMMENT |
| MEDIUM | stdlib/@tests/stubtest_allowlists/win32-py312.txt | 48 | # ============================================================= | COMMENT |
| MEDIUM | stdlib/@tests/stubtest_allowlists/win32-py312.txt | 50 | # ============================================================= | 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 | 69 | # ============================================================= | COMMENT |
| MEDIUM | stdlib/@tests/stubtest_allowlists/win32-py310.txt | 71 | # ============================================================= | COMMENT |
| MEDIUM | stdlib/@tests/stubtest_allowlists/win32-py311.txt | 44 | # ============================================================= | COMMENT |
| MEDIUM | stdlib/@tests/stubtest_allowlists/win32-py311.txt | 46 | # ============================================================= | 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 | 31 | # ============ | COMMENT |
| MEDIUM⚡ | stdlib/@tests/stubtest_allowlists/darwin-py312.txt | 33 | # ============ | COMMENT |
| MEDIUM⚡ | stdlib/@tests/stubtest_allowlists/darwin-py312.txt | 41 | # ============================================================= | COMMENT |
| MEDIUM⚡ | stdlib/@tests/stubtest_allowlists/darwin-py312.txt | 43 | # ============================================================= | COMMENT |
| MEDIUM⚡ | stdlib/@tests/stubtest_allowlists/darwin-py312.txt | 52 | # ================ | COMMENT |
| MEDIUM⚡ | stdlib/@tests/stubtest_allowlists/darwin-py312.txt | 54 | # ================ | 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 | 44 | # ============ | COMMENT |
| MEDIUM⚡ | stdlib/@tests/stubtest_allowlists/darwin-py311.txt | 46 | # ============ | COMMENT |
| MEDIUM⚡ | stdlib/@tests/stubtest_allowlists/darwin-py311.txt | 54 | # ============================================================= | COMMENT |
| MEDIUM⚡ | stdlib/@tests/stubtest_allowlists/darwin-py311.txt | 56 | # ============================================================= | COMMENT |
| 135 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| 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/mypy_test.py | 4 | CODE | |
| LOW | tests/mypy_test.py | 42 | 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 | |
| LOW | stdlib/@tests/test_cases/builtins/check_object.py | 1 | CODE | |
| LOW | stdlib/@tests/test_cases/builtins/check_list.py | 1 | CODE | |
| 19 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 | 325 | def concurrently_run_testcases( | CODE |
| LOW | tests/stubtest_third_party.py | 212 | def setup_gdb_stubtest_command(venv_dir: Path, stubtest_cmd: list[str]) -> bool: | CODE |
| LOW | tests/stubtest_third_party.py | 305 | def setup_uwsgi_stubtest_command(dist: Path, venv_dir: Path, stubtest_cmd: list[str]) -> bool: | STRING |
| LOW | tests/mypy_test.py | 258 | def test_third_party_distribution( | CODE |
| LOW | tests/mypy_test.py | 313 | def remove_modules_not_in_python_version(paths: list[Path], py_version: VersionString) -> list[Path]: | CODE |
| LOW | tests/mypy_test.py | 327 | def stdlib_module_name_from_path(path: Path) -> str: | CODE |
| LOW | tests/mypy_test.py | 365 | def setup_venv_for_external_requirements_set( | CODE |
| LOW | tests/mypy_test.py | 376 | def install_requirements_for_venv(venv_dir: Path, args: TestConfig, external_requirements: frozenset[Requirement]) -> No | CODE |
| LOW | tests/mypy_test.py | 392 | 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 | 493 | def describe_public_files_added(self) -> str: | CODE |
| LOW⚡ | scripts/stubsabot.py | 499 | def describe_typeshed_files_deleted(self) -> str: | CODE |
| LOW⚡ | scripts/stubsabot.py | 505 | def describe_typeshed_files_modified(self) -> str: | CODE |
| LOW⚡ | scripts/stubsabot.py | 766 | async def update_pull_request_label(*, pr_number: int, session: aiohttp.ClientSession) -> None: | CODE |
| LOW⚡ | scripts/stubsabot.py | 774 | def has_non_stubsabot_commits(branch: str) -> bool: | CODE |
| LOW | scripts/stubsabot.py | 117 | def releases_in_descending_order(self) -> Iterator[PypiReleaseDownload]: | CODE |
| LOW | scripts/stubsabot.py | 221 | def all_py_files_in_source_are_in_py_typed_dirs(source: zipfile.ZipFile | tarfile.TarFile) -> bool: | CODE |
| LOW | scripts/stubsabot.py | 269 | async def release_contains_py_typed(release_to_download: PypiReleaseDownload, *, session: aiohttp.ClientSession) -> bool | CODE |
| LOW | scripts/stubsabot.py | 273 | async def find_first_release_with_py_typed(pypi_info: PypiInfo, *, session: aiohttp.ClientSession) -> PypiReleaseDownloa | CODE |
| LOW | scripts/stubsabot.py | 445 | def runtime_definitely_has_consistent_directory_structure_with_typeshed(self) -> bool: | CODE |
| LOW | scripts/stubsabot.py | 586 | def obsolete_more_than_n_months(since_date: datetime.date) -> bool: | CODE |
| LOW | scripts/stubsabot.py | 592 | def parse_no_longer_updated_from_archive(source: zipfile.ZipFile | tarfile.TarFile) -> bool: | CODE |
| LOW | scripts/stubsabot.py | 615 | async def has_no_longer_updated_release(release_to_download: PypiReleaseDownload, *, session: aiohttp.ClientSession) -> | CODE |
| LOW | scripts/stubsabot.py | 630 | async def determine_action_no_error_handling( | CODE |
| LOW | scripts/stubsabot.py | 722 | async def create_or_update_pull_request(*, title: str, body: str, branch_name: str, session: aiohttp.ClientSession) -> N | CODE |
| LOW | scripts/stubsabot.py | 744 | async def update_existing_pull_request(*, title: str, body: str, branch_name: str, session: aiohttp.ClientSession) -> in | CODE |
| LOW | scripts/stubsabot.py | 801 | def latest_commit_is_different_to_last_commit_on_origin(branch: str) -> bool: | CODE |
| LOW | scripts/stubsabot.py | 902 | async def suggest_typeshed_obsolete(obsolete: Obsolete, session: aiohttp.ClientSession, action_level: ActionLevel) -> No | STRING |
| LOW | lib/ts_utils/metadata.py | 57 | def get_oldest_supported_python() -> str: | CODE |
| LOW | lib/ts_utils/metadata.py | 89 | def system_requirements_for_platform(self, platform: str) -> list[str]: | CODE |
| LOW | lib/ts_utils/metadata.py | 394 | def get_pypi_name_to_typeshed_name_mapping() -> Mapping[str, str]: | CODE |
| LOW | lib/ts_utils/metadata.py | 426 | 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 | 159 | def parse_stdlib_versions_file() -> SupportedVersionsDict: | CODE |
| LOW | lib/ts_utils/utils.py | 176 | def supported_versions_for_module(module_versions: SupportedVersionsDict, module_name: str) -> tuple[VersionTuple, Versi | CODE |
| LOW | lib/ts_utils/utils.py | 215 | def get_all_testcase_directories() -> list[DistributionTests]: | CODE |
| LOW⚡ | lib/ts_utils/utils.py | 284 | 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 | 10 | def test_iscoroutinefunction_inspect( | 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 |
| 4 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | pyproject.toml | 181 | # We're not a library, no need to document everything | COMMENT |
| LOW | pyproject.toml | 221 | # See https://github.com/python/typeshed/pull/13108 | COMMENT |
| LOW | tests/regr_test.py | 121 | def setup_testcase_dir(package: DistributionTests, tempdir: Path, verbosity: Verbosity) -> None: | COMMENT |
| LOW | scripts/stubsabot.py | 221 | def all_py_files_in_source_are_in_py_typed_dirs(source: zipfile.ZipFile | tarfile.TarFile) -> bool: | 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_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 |
|---|---|---|---|---|
| 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 | 251 | 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 | 626 | 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 | 325 | CODE | |
| LOW | tests/stubtest_third_party.py | 35 | CODE | |
| LOW | scripts/stubsabot.py | 192 | CODE | |
| LOW | scripts/stubsabot.py | 542 | CODE | |
| LOW | scripts/stubsabot.py | 948 | 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 | 766 | 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 | 306 | """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 |