Repository Analysis

python/typeshed

Collection of library stubs for Python, with static types

62.6 Strong AI signal View on GitHub

Analysis Overview

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).

62.6
Adjusted Score
62.6
Raw Score
100%
Time Factor
2026-07-14
Last Push
5.1K
Stars
Python
Language
14.2K
Lines of Code
149
Files
380
Pattern Hits
2026-07-14
Scan Date
0.02
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

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.

No multi-scan history yet — run the scanner again to build trend data.

Severity Breakdown

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.

CRITICAL 0HIGH 3MEDIUM 204LOW 173

Directory Score Breakdown

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.

Pattern Findings

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.

Decorative Section Separators195 hits · 680 pts
SeverityFileLineSnippetContext
MEDIUMlib/ts_utils/utils.py67# ====================================================================COMMENT
MEDIUMlib/ts_utils/utils.py69# ====================================================================COMMENT
MEDIUMlib/ts_utils/utils.py116# ====================================================================COMMENT
MEDIUMlib/ts_utils/utils.py118# ====================================================================COMMENT
MEDIUMlib/ts_utils/utils.py128# ====================================================================COMMENT
MEDIUMlib/ts_utils/utils.py130# ====================================================================COMMENT
MEDIUMlib/ts_utils/utils.py147# ====================================================================COMMENT
MEDIUMlib/ts_utils/utils.py149# ====================================================================COMMENT
MEDIUMlib/ts_utils/utils.py190# ====================================================================COMMENT
MEDIUMlib/ts_utils/utils.py192# ====================================================================COMMENT
MEDIUMlib/ts_utils/utils.py261# ====================================================================COMMENT
MEDIUMlib/ts_utils/utils.py263# ====================================================================COMMENT
MEDIUMlib/ts_utils/utils.py279# ====================================================================COMMENT
MEDIUMlib/ts_utils/utils.py281# ====================================================================COMMENT
MEDIUMstdlib/@tests/stubtest_allowlists/linux.txt1# ==========================================COMMENT
MEDIUMstdlib/@tests/stubtest_allowlists/linux.txt3# ==========================================COMMENT
MEDIUMstdlib/@tests/stubtest_allowlists/linux.txt16# ==========================================================COMMENT
MEDIUMstdlib/@tests/stubtest_allowlists/linux.txt18# ==========================================================COMMENT
MEDIUMstdlib/@tests/stubtest_allowlists/darwin-py314.txt1# =============COMMENT
MEDIUMstdlib/@tests/stubtest_allowlists/darwin-py314.txt3# =============COMMENT
MEDIUMstdlib/@tests/stubtest_allowlists/common.txt1# ============================================COMMENT
MEDIUMstdlib/@tests/stubtest_allowlists/common.txt3# ============================================COMMENT
MEDIUMstdlib/@tests/stubtest_allowlists/common.txt12# ===============================================================COMMENT
MEDIUMstdlib/@tests/stubtest_allowlists/common.txt14# ===============================================================COMMENT
MEDIUMstdlib/@tests/stubtest_allowlists/common.txt20# ======================================================================COMMENT
MEDIUMstdlib/@tests/stubtest_allowlists/common.txt22# ======================================================================COMMENT
MEDIUMstdlib/@tests/stubtest_allowlists/common.txt27# =============================================================================COMMENT
MEDIUMstdlib/@tests/stubtest_allowlists/common.txt29# =============================================================================COMMENT
MEDIUMstdlib/@tests/stubtest_allowlists/common.txt119# =====================================COMMENT
MEDIUMstdlib/@tests/stubtest_allowlists/common.txt121# =====================================COMMENT
MEDIUMstdlib/@tests/stubtest_allowlists/common.txt145# ==========================================================COMMENT
MEDIUMstdlib/@tests/stubtest_allowlists/common.txt147# ==========================================================COMMENT
MEDIUMstdlib/@tests/stubtest_allowlists/win32-py312.txt48# =============================================================COMMENT
MEDIUMstdlib/@tests/stubtest_allowlists/win32-py312.txt50# =============================================================COMMENT
MEDIUMstdlib/@tests/stubtest_allowlists/darwin-py315.txt1# =============================================================COMMENT
MEDIUMstdlib/@tests/stubtest_allowlists/darwin-py315.txt3# =============================================================COMMENT
MEDIUMstdlib/@tests/stubtest_allowlists/win32-py310.txt69# =============================================================COMMENT
MEDIUMstdlib/@tests/stubtest_allowlists/win32-py310.txt71# =============================================================COMMENT
MEDIUMstdlib/@tests/stubtest_allowlists/win32-py311.txt44# =============================================================COMMENT
MEDIUMstdlib/@tests/stubtest_allowlists/win32-py311.txt46# =============================================================COMMENT
MEDIUMstdlib/@tests/stubtest_allowlists/darwin.txt1# ============================================COMMENT
MEDIUMstdlib/@tests/stubtest_allowlists/darwin.txt3# ============================================COMMENT
MEDIUMstdlib/@tests/stubtest_allowlists/darwin.txt13# ==========================================COMMENT
MEDIUMstdlib/@tests/stubtest_allowlists/darwin.txt15# ==========================================COMMENT
MEDIUMstdlib/@tests/stubtest_allowlists/darwin.txt28# ==========================================================COMMENT
MEDIUMstdlib/@tests/stubtest_allowlists/darwin.txt30# ==========================================================COMMENT
MEDIUMstdlib/@tests/stubtest_allowlists/darwin-py312.txt31# ============COMMENT
MEDIUMstdlib/@tests/stubtest_allowlists/darwin-py312.txt33# ============COMMENT
MEDIUMstdlib/@tests/stubtest_allowlists/darwin-py312.txt41# =============================================================COMMENT
MEDIUMstdlib/@tests/stubtest_allowlists/darwin-py312.txt43# =============================================================COMMENT
MEDIUMstdlib/@tests/stubtest_allowlists/darwin-py312.txt52# ================COMMENT
MEDIUMstdlib/@tests/stubtest_allowlists/darwin-py312.txt54# ================COMMENT
MEDIUMstdlib/@tests/stubtest_allowlists/win32-py315.txt1# =============================================================COMMENT
MEDIUMstdlib/@tests/stubtest_allowlists/win32-py315.txt3# =============================================================COMMENT
MEDIUMstdlib/@tests/stubtest_allowlists/darwin-py313.txt1# =============COMMENT
MEDIUMstdlib/@tests/stubtest_allowlists/darwin-py313.txt3# =============COMMENT
MEDIUMstdlib/@tests/stubtest_allowlists/darwin-py311.txt44# ============COMMENT
MEDIUMstdlib/@tests/stubtest_allowlists/darwin-py311.txt46# ============COMMENT
MEDIUMstdlib/@tests/stubtest_allowlists/darwin-py311.txt54# =============================================================COMMENT
MEDIUMstdlib/@tests/stubtest_allowlists/darwin-py311.txt56# =============================================================COMMENT
135 more matches not shown…
Unused Imports79 hits · 78 pts
SeverityFileLineSnippetContext
LOWtests/check_typeshed_structure.py8CODE
LOWtests/regr_test.py4CODE
LOWtests/stubtest_third_party.py4CODE
LOWtests/typecheck_typeshed.py4CODE
LOWtests/stubtest_stdlib.py10CODE
LOWtests/mypy_test.py4CODE
LOWtests/mypy_test.py42CODE
LOWtests/runtests.py2CODE
LOWscripts/create_baseline_stubs.py11CODE
LOWscripts/stubsabot.py2CODE
LOWscripts/sync_protobuf/s2clientprotocol.py7CODE
LOWscripts/sync_protobuf/google_protobuf.py7CODE
LOWscripts/sync_protobuf/tensorflow.py7CODE
LOWscripts/sync_protobuf/_utils.py1CODE
LOWlib/ts_utils/metadata.py6CODE
LOWlib/ts_utils/mypy.py1CODE
LOWlib/ts_utils/utils.py3CODE
LOWlib/ts_utils/requirements.py1CODE
LOWstdlib/@tests/test_cases/check_SupportsGetItem.py1CODE
LOWstdlib/@tests/test_cases/check_functools.py1CODE
LOWstdlib/@tests/test_cases/check_inspect.py1CODE
LOWstdlib/@tests/test_cases/check_copy.py1CODE
LOWstdlib/@tests/test_cases/check_concurrent_futures.py1CODE
LOWstdlib/@tests/test_cases/check_dataclasses.py1CODE
LOWstdlib/@tests/test_cases/check_dataclasses.py9CODE
LOWstdlib/@tests/test_cases/check_codecs.py1CODE
LOWstdlib/@tests/test_cases/check_types.py1CODE
LOWstdlib/@tests/test_cases/check_tkinter.py1CODE
LOWstdlib/@tests/test_cases/check_pathlib.py1CODE
LOWstdlib/@tests/test_cases/check_sqlite3.py1CODE
LOWstdlib/@tests/test_cases/check_importlib_resources.py1CODE
LOWstdlib/@tests/test_cases/check_re.py1CODE
LOWstdlib/@tests/test_cases/check_importlib_metadata.py1CODE
LOWstdlib/@tests/test_cases/check_platform.py1CODE
LOWstdlib/@tests/test_cases/check_enum.py1CODE
LOWstdlib/@tests/test_cases/check_math.py1CODE
LOWstdlib/@tests/test_cases/check_xml.py1CODE
LOWstdlib/@tests/test_cases/check_logging.py1CODE
LOWstdlib/@tests/test_cases/check_zipfile.py1CODE
LOWstdlib/@tests/test_cases/check_compression.py1CODE
LOWstdlib/@tests/test_cases/check_threading.py1CODE
LOWstdlib/@tests/test_cases/check_os_path.py1CODE
LOWstdlib/@tests/test_cases/check_importlib.py1CODE
LOWstdlib/@tests/test_cases/check_socket.py1CODE
LOWstdlib/@tests/test_cases/check_contextlib.py1CODE
LOWstdlib/@tests/test_cases/check_unittest.py1CODE
LOWstdlib/@tests/test_cases/check_tempfile.py1CODE
LOWstdlib/@tests/test_cases/ctypes/check_pointer.py1CODE
LOW…s/test_cases/multiprocessing/check_pipe_connections.py1CODE
LOW…dlib/@tests/test_cases/multiprocessing/check_ctypes.py1CODE
LOWstdlib/@tests/test_cases/urllib/check_parse.py1CODE
LOWstdlib/@tests/test_cases/builtins/check_slice.py33CODE
LOWstdlib/@tests/test_cases/builtins/check_slice.py36CODE
LOW…b/@tests/test_cases/builtins/check_frozendict-py315.py1CODE
LOWstdlib/@tests/test_cases/builtins/check_memoryview.py1CODE
LOWstdlib/@tests/test_cases/builtins/check_sum.py1CODE
LOWstdlib/@tests/test_cases/builtins/check_tuple.py1CODE
LOWstdlib/@tests/test_cases/builtins/check_iteration.py1CODE
LOWstdlib/@tests/test_cases/builtins/check_object.py1CODE
LOWstdlib/@tests/test_cases/builtins/check_list.py1CODE
19 more matches not shown…
Hyper-Verbose Identifiers64 hits · 68 pts
SeverityFileLineSnippetContext
LOWtests/check_typeshed_structure.py37def assert_consistent_filetypes(CODE
LOWtests/check_typeshed_structure.py100 def all_relative_paths_in_directory(path: Path) -> set[Path]:CODE
LOWtests/check_typeshed_structure.py178def check_pyright_exclude_order() -> None:CODE
LOWtests/regr_test.py51def distribution_with_test_cases(distribution_name: str) -> DistributionTests:CODE
LOWtests/regr_test.py325def concurrently_run_testcases(CODE
LOWtests/stubtest_third_party.py212def setup_gdb_stubtest_command(venv_dir: Path, stubtest_cmd: list[str]) -> bool:CODE
LOWtests/stubtest_third_party.py305def setup_uwsgi_stubtest_command(dist: Path, venv_dir: Path, stubtest_cmd: list[str]) -> bool:STRING
LOWtests/mypy_test.py258def test_third_party_distribution(CODE
LOWtests/mypy_test.py313def remove_modules_not_in_python_version(paths: list[Path], py_version: VersionString) -> list[Path]:CODE
LOWtests/mypy_test.py327def stdlib_module_name_from_path(path: Path) -> str:CODE
LOWtests/mypy_test.py365def setup_venv_for_external_requirements_set(CODE
LOWtests/mypy_test.py376def install_requirements_for_venv(venv_dir: Path, args: TestConfig, external_requirements: frozenset[Requirement]) -> NoCODE
LOWtests/mypy_test.py392def setup_virtual_environments(distributions: dict[str, PackageDependencies], args: TestConfig, tempdir: Path) -> None:CODE
LOWscripts/create_baseline_stubs.py40def get_installed_package_info(project: str) -> tuple[str, str] | None:CODE
LOWscripts/create_baseline_stubs.py74async def get_project_urls_from_pypi(project: str, session: aiohttp.ClientSession) -> dict[str, str]:CODE
LOWscripts/stubsabot.py493 def describe_public_files_added(self) -> str:CODE
LOWscripts/stubsabot.py499 def describe_typeshed_files_deleted(self) -> str:CODE
LOWscripts/stubsabot.py505 def describe_typeshed_files_modified(self) -> str:CODE
LOWscripts/stubsabot.py766async def update_pull_request_label(*, pr_number: int, session: aiohttp.ClientSession) -> None:CODE
LOWscripts/stubsabot.py774def has_non_stubsabot_commits(branch: str) -> bool:CODE
LOWscripts/stubsabot.py117 def releases_in_descending_order(self) -> Iterator[PypiReleaseDownload]:CODE
LOWscripts/stubsabot.py221def all_py_files_in_source_are_in_py_typed_dirs(source: zipfile.ZipFile | tarfile.TarFile) -> bool:CODE
LOWscripts/stubsabot.py269async def release_contains_py_typed(release_to_download: PypiReleaseDownload, *, session: aiohttp.ClientSession) -> boolCODE
LOWscripts/stubsabot.py273async def find_first_release_with_py_typed(pypi_info: PypiInfo, *, session: aiohttp.ClientSession) -> PypiReleaseDownloaCODE
LOWscripts/stubsabot.py445 def runtime_definitely_has_consistent_directory_structure_with_typeshed(self) -> bool:CODE
LOWscripts/stubsabot.py586def obsolete_more_than_n_months(since_date: datetime.date) -> bool:CODE
LOWscripts/stubsabot.py592def parse_no_longer_updated_from_archive(source: zipfile.ZipFile | tarfile.TarFile) -> bool:CODE
LOWscripts/stubsabot.py615async def has_no_longer_updated_release(release_to_download: PypiReleaseDownload, *, session: aiohttp.ClientSession) -> CODE
LOWscripts/stubsabot.py630async def determine_action_no_error_handling(CODE
LOWscripts/stubsabot.py722async def create_or_update_pull_request(*, title: str, body: str, branch_name: str, session: aiohttp.ClientSession) -> NCODE
LOWscripts/stubsabot.py744async def update_existing_pull_request(*, title: str, body: str, branch_name: str, session: aiohttp.ClientSession) -> inCODE
LOWscripts/stubsabot.py801def latest_commit_is_different_to_last_commit_on_origin(branch: str) -> bool:CODE
LOWscripts/stubsabot.py902async def suggest_typeshed_obsolete(obsolete: Obsolete, session: aiohttp.ClientSession, action_level: ActionLevel) -> NoSTRING
LOWlib/ts_utils/metadata.py57def get_oldest_supported_python() -> str:CODE
LOWlib/ts_utils/metadata.py89 def system_requirements_for_platform(self, platform: str) -> list[str]:CODE
LOWlib/ts_utils/metadata.py394def get_pypi_name_to_typeshed_name_mapping() -> Mapping[str, str]:CODE
LOWlib/ts_utils/metadata.py426def get_recursive_requirements(package_name: str) -> PackageDependencies:CODE
LOWlib/ts_utils/mypy.py31def mypy_configuration_from_distribution(distribution: str) -> list[MypyDistConf]:CODE
LOWlib/ts_utils/mypy.py57def temporary_mypy_config_file(CODE
LOWlib/ts_utils/utils.py159def parse_stdlib_versions_file() -> SupportedVersionsDict:CODE
LOWlib/ts_utils/utils.py176def supported_versions_for_module(module_versions: SupportedVersionsDict, module_name: str) -> tuple[VersionTuple, VersiCODE
LOWlib/ts_utils/utils.py215def get_all_testcase_directories() -> list[DistributionTests]:CODE
LOWlib/ts_utils/utils.py284def allowlist_stubtest_arguments(distribution_name: str) -> list[str]:CODE
LOWlib/ts_utils/requirements.py14def get_external_stub_requirements(distributions: Iterable[str] = ()) -> set[Requirement]:CODE
LOWlib/ts_utils/requirements.py21def get_stubtest_system_requirements(distributions: Iterable[str] = (), platform: str = sys.platform) -> set[str]:CODE
LOWstdlib/@tests/test_cases/check_functools.py91def check_lru_cache_with_maxsize(x: int) -> int:CODE
LOWstdlib/@tests/test_cases/check_functools.py130def check_cached_property_settable(x: int) -> None:CODE
LOWstdlib/@tests/test_cases/check_inspect.py10def test_iscoroutinefunction_inspect(CODE
LOWstdlib/@tests/test_cases/check_concurrent_futures.py16def check_as_completed_covariance() -> None:CODE
LOWstdlib/@tests/test_cases/check_concurrent_futures.py40 def check_interpreter_pool_executor() -> None:CODE
LOWstdlib/@tests/test_cases/check_concurrent_futures.py69 def check_thread_worker_context() -> None:CODE
LOWstdlib/@tests/test_cases/check_dataclasses.py55def check_other_isdataclass_overloads(x: type, y: object) -> None:CODE
LOWstdlib/@tests/test_cases/check_unittest.py209def obj_f_explicit_new_callable(i: int, new_callable_ret: int) -> str:CODE
LOWstdlib/@tests/test_cases/builtins/check_set.py17def test_set_interface_overlapping_type(s: set[Literal["foo", "bar"]], y: set[str], key: str) -> None:CODE
LOWstdlib/@tests/test_cases/builtins/check_min.py57def test_min_custom_comparison() -> None:CODE
LOW…sts/test_cases/builtins/check_exception_group-py311.py328 def test_exception_group_default_type() -> None:CODE
LOW…sts/test_cases/builtins/check_exception_group-py311.py335 def test_exception_group_with_specific_type() -> None:CODE
LOW…sts/test_cases/builtins/check_exception_group-py311.py342 def test_base_exception_group_default_type() -> None:CODE
LOW…sts/test_cases/builtins/check_exception_group-py311.py349 def test_base_exception_group_with_specific_type() -> None:CODE
LOWstdlib/@tests/test_cases/builtins/check_dict.py47def test_iterable_tuple_overload(x: Iterable[tuple[int, str]]) -> dict[int, str]:CODE
4 more matches not shown…
Over-Commented Block16 hits · 15 pts
SeverityFileLineSnippetContext
LOWpyproject.toml181 # We're not a library, no need to document everythingCOMMENT
LOWpyproject.toml221 # See https://github.com/python/typeshed/pull/13108COMMENT
LOWtests/regr_test.py121def setup_testcase_dir(package: DistributionTests, tempdir: Path, verbosity: Verbosity) -> None:COMMENT
LOWscripts/stubsabot.py221def all_py_files_in_source_are_in_py_typed_dirs(source: zipfile.ZipFile | tarfile.TarFile) -> bool:COMMENT
LOWstdlib/@tests/stubtest_allowlists/darwin-py314.txt1# =============COMMENT
LOWstdlib/@tests/stubtest_allowlists/win32-py313.txt1# =======COMMENT
LOWstdlib/@tests/stubtest_allowlists/win32-py314.txt1# =======COMMENT
LOWstdlib/@tests/stubtest_allowlists/darwin-py313.txt1# =============COMMENT
LOWstdlib/@tests/stubtest_allowlists/py311.txt1# =========================COMMENT
LOWstdlib/@tests/stubtest_allowlists/py312.txt1# =========================COMMENT
LOWstdlib/@tests/stubtest_allowlists/linux-py314.txt1# =============COMMENT
LOWstdlib/@tests/stubtest_allowlists/py313.txt1# =========================COMMENT
LOWstdlib/@tests/stubtest_allowlists/linux-py313.txt1# =============COMMENT
LOWstdlib/@tests/test_cases/check_math.py61# TODO: these pass pyright with the current stubs, but mypy erroneously emits an error:COMMENT
LOW…sts/test_cases/builtins/check_exception_group-py311.py141COMMENT
LOWstdlib/@tests/test_cases/builtins/check_dict.py121#COMMENT
Cross-File Repetition3 hits · 15 pts
SeverityFileLineSnippetContext
HIGHscripts/sync_protobuf/s2clientprotocol.py0generates the protobuf stubs for the given tensorflow version using mypy-protobuf. generally, new minor versions are a gSTRING
HIGHscripts/sync_protobuf/google_protobuf.py0generates the protobuf stubs for the given tensorflow version using mypy-protobuf. generally, new minor versions are a gSTRING
HIGHscripts/sync_protobuf/tensorflow.py0generates the protobuf stubs for the given tensorflow version using mypy-protobuf. generally, new minor versions are a gSTRING
Slop Phrases3 hits · 9 pts
SeverityFileLineSnippetContext
MEDIUMstdlib/@tests/test_cases/check_importlib.py30 return None # simplified mock for demonstration purposes onlyCODE
MEDIUMstdlib/@tests/test_cases/check_importlib.py36 return cls # simplified mock for demonstration purposes onlyCODE
MEDIUMstdlib/@tests/test_cases/check_importlib.py40 return None # simplified mock for demonstration purposes onlyCODE
Excessive Try-Catch Wrapping5 hits · 8 pts
SeverityFileLineSnippetContext
LOWtests/stubtest_third_party.py251 except Exception:CODE
MEDIUMscripts/create_baseline_stubs.py225 print(f'Error: "{project}" is not installed', file=sys.stderr)CODE
LOWscripts/stubsabot.py626 except Exception as exc:CODE
MEDIUM…sts/test_cases/builtins/check_exception_group-py311.py328def test_exception_group_default_type() -> None:CODE
MEDIUM…sts/test_cases/builtins/check_exception_group-py311.py335def test_exception_group_with_specific_type() -> None:CODE
Deep Nesting8 hits · 6 pts
SeverityFileLineSnippetContext
LOWtests/check_typeshed_structure.py147CODE
LOWtests/regr_test.py171CODE
LOWtests/regr_test.py325CODE
LOWtests/stubtest_third_party.py35CODE
LOWscripts/stubsabot.py192CODE
LOWscripts/stubsabot.py542CODE
LOWscripts/stubsabot.py948CODE
LOWlib/ts_utils/mypy.py57CODE
Self-Referential Comments2 hits · 5 pts
SeverityFileLineSnippetContext
MEDIUMtests/check_typeshed_structure.py33 "django_settings.py" # This file contains Django settings used by the mypy_django_plugin during stubtest execution.CODE
MEDIUMlib/ts_utils/metadata.py1# This module is made specifically to abstract away those type errorsCOMMENT
Modern Structural Boilerplate2 hits · 2 pts
SeverityFileLineSnippetContext
LOWscripts/stubsabot.py766async def update_pull_request_label(*, pr_number: int, session: aiohttp.ClientSession) -> None:CODE
LOWlib/ts_utils/metadata.py29__all__ = [CODE
Redundant / Tautological Comments1 hit · 2 pts
SeverityFileLineSnippetContext
LOWscripts/sync_protobuf/tensorflow.py80 # Write the file out againCOMMENT
AI Slop Vocabulary1 hit · 1 pts
SeverityFileLineSnippetContext
MEDIUMtests/stubtest_third_party.py306 """Perform some black magic in order to run stubtest inside uWSGI.STRING
AI Structural Patterns1 hit · 1 pts
SeverityFileLineSnippetContext
LOWstdlib/@tests/test_cases/check_dataclasses.py120CODE