Repository Analysis

python/typeshed

Collection of library stubs for Python, with static types

60.3 Strong AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of python/typeshed, a Python project with 5,116 GitHub stars. SynthScan v2.0 examined 14,838 lines of code across 155 source files, recording 382 pattern matches distributed across 13 syntactic categories. The overall adjusted score of 60.3 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).

60.3
Adjusted Score
60.3
Raw Score
100%
Time Factor
2026-08-28
Last Push
5.1K
Stars
Python
Language
14.8K
Lines of Code
155
Files
382
Pattern Hits
2026-08-29
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

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.

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 175

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 382 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 · 682 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.py198# ====================================================================COMMENT
MEDIUMlib/ts_utils/utils.py200# ====================================================================COMMENT
MEDIUMlib/ts_utils/utils.py269# ====================================================================COMMENT
MEDIUMlib/ts_utils/utils.py271# ====================================================================COMMENT
MEDIUMlib/ts_utils/utils.py287# ====================================================================COMMENT
MEDIUMlib/ts_utils/utils.py289# ====================================================================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.txt53# =============================================================COMMENT
MEDIUMstdlib/@tests/stubtest_allowlists/win32-py312.txt55# =============================================================COMMENT
MEDIUMstdlib/@tests/stubtest_allowlists/darwin-py315.txt1# =============================================================COMMENT
MEDIUMstdlib/@tests/stubtest_allowlists/darwin-py315.txt3# =============================================================COMMENT
MEDIUMstdlib/@tests/stubtest_allowlists/win32-py310.txt74# =============================================================COMMENT
MEDIUMstdlib/@tests/stubtest_allowlists/win32-py310.txt76# =============================================================COMMENT
MEDIUMstdlib/@tests/stubtest_allowlists/win32-py311.txt49# =============================================================COMMENT
MEDIUMstdlib/@tests/stubtest_allowlists/win32-py311.txt51# =============================================================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.txt36# ============COMMENT
MEDIUMstdlib/@tests/stubtest_allowlists/darwin-py312.txt38# ============COMMENT
MEDIUMstdlib/@tests/stubtest_allowlists/darwin-py312.txt46# =============================================================COMMENT
MEDIUMstdlib/@tests/stubtest_allowlists/darwin-py312.txt48# =============================================================COMMENT
MEDIUMstdlib/@tests/stubtest_allowlists/darwin-py312.txt57# ================COMMENT
MEDIUMstdlib/@tests/stubtest_allowlists/darwin-py312.txt59# ================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.txt49# ============COMMENT
MEDIUMstdlib/@tests/stubtest_allowlists/darwin-py311.txt51# ============COMMENT
MEDIUMstdlib/@tests/stubtest_allowlists/darwin-py311.txt59# =============================================================COMMENT
MEDIUMstdlib/@tests/stubtest_allowlists/darwin-py311.txt61# =============================================================COMMENT
135 more matches not shown…
Unused Imports81 hits · 80 pts
SeverityFileLineSnippetContext
LOWtests/ty_test.py4CODE
LOWtests/check_typeshed_structure.py8CODE
LOWtests/regr_test.py4CODE
LOWtests/stubtest_third_party.py4CODE
LOWtests/typecheck_typeshed.py4CODE
LOWtests/stubtest_stdlib.py10CODE
LOWtests/pyrefly_test.py4CODE
LOWtests/mypy_test.py4CODE
LOWtests/mypy_test.py41CODE
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
21 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.py216def setup_gdb_stubtest_command(venv_dir: Path, stubtest_cmd: list[str]) -> bool:CODE
LOWtests/stubtest_third_party.py309def setup_uwsgi_stubtest_command(dist: Path, venv_dir: Path, stubtest_cmd: list[str]) -> bool:STRING
LOWtests/mypy_test.py245def test_third_party_distribution(CODE
LOWtests/mypy_test.py322def setup_venv_for_external_requirements_set(CODE
LOWtests/mypy_test.py333def install_requirements_for_venv(venv_dir: Path, args: TestConfig, external_requirements: frozenset[Requirement]) -> NoCODE
LOWtests/mypy_test.py349def 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.py494 def describe_public_files_added(self) -> str:CODE
LOWscripts/stubsabot.py500 def describe_typeshed_files_deleted(self) -> str:CODE
LOWscripts/stubsabot.py506 def describe_typeshed_files_modified(self) -> str:CODE
LOWscripts/stubsabot.py767async def update_pull_request_label(*, pr_number: int, session: aiohttp.ClientSession) -> None:CODE
LOWscripts/stubsabot.py775def has_non_stubsabot_commits(branch: str) -> bool:CODE
LOWscripts/stubsabot.py118 def releases_in_descending_order(self) -> Iterator[PypiReleaseDownload]:CODE
LOWscripts/stubsabot.py222def all_py_files_in_source_are_in_py_typed_dirs(source: zipfile.ZipFile | tarfile.TarFile) -> bool:CODE
LOWscripts/stubsabot.py270async def release_contains_py_typed(release_to_download: PypiReleaseDownload, *, session: aiohttp.ClientSession) -> boolCODE
LOWscripts/stubsabot.py274async def find_first_release_with_py_typed(pypi_info: PypiInfo, *, session: aiohttp.ClientSession) -> PypiReleaseDownloaCODE
LOWscripts/stubsabot.py446 def runtime_definitely_has_consistent_directory_structure_with_typeshed(self) -> bool:CODE
LOWscripts/stubsabot.py587def obsolete_more_than_n_months(since_date: datetime.date) -> bool:CODE
LOWscripts/stubsabot.py593def parse_no_longer_updated_from_archive(source: zipfile.ZipFile | tarfile.TarFile) -> bool:CODE
LOWscripts/stubsabot.py616async def has_no_longer_updated_release(release_to_download: PypiReleaseDownload, *, session: aiohttp.ClientSession) -> CODE
LOWscripts/stubsabot.py631async def determine_action_no_error_handling(CODE
LOWscripts/stubsabot.py723async def create_or_update_pull_request(*, title: str, body: str, branch_name: str, session: aiohttp.ClientSession) -> NCODE
LOWscripts/stubsabot.py745async def update_existing_pull_request(*, title: str, body: str, branch_name: str, session: aiohttp.ClientSession) -> inCODE
LOWscripts/stubsabot.py790def latest_commit_is_different_to_last_commit_on_origin(branch: str) -> bool:CODE
LOWscripts/stubsabot.py891async def suggest_typeshed_obsolete(obsolete: Obsolete, session: aiohttp.ClientSession, action_level: ActionLevel) -> NoSTRING
LOWlib/ts_utils/metadata.py61def get_oldest_supported_python() -> str:CODE
LOWlib/ts_utils/metadata.py94 def system_requirements_for_platform(self, platform: str) -> list[str]:CODE
LOWlib/ts_utils/metadata.py418def get_pypi_name_to_typeshed_name_mapping() -> Mapping[str, str]:CODE
LOWlib/ts_utils/metadata.py450def 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.py162 def supported_versions_for_module(self, module_name: str) -> tuple[VersionTuple, VersionTuple]:CODE
LOWlib/ts_utils/utils.py175def parse_stdlib_versions_file() -> SupportedVersions:CODE
LOWlib/ts_utils/utils.py223def get_all_testcase_directories() -> list[DistributionTests]:CODE
LOWlib/ts_utils/utils.py292def 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.py9def test_iscoroutinefunction_inspect(CODE
LOWstdlib/@tests/test_cases/check_inspect.py28def test_isgeneratorfunction_inspect(x: Callable[[str], object], y: object) -> None:CODE
LOWstdlib/@tests/test_cases/check_inspect.py35def test_isasyncgenfunction_inspect(x: Callable[[str], object], y: object) -> None: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.py221COMMENT
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.py255 except Exception:CODE
MEDIUMscripts/create_baseline_stubs.py225 print(f'Error: "{project}" is not installed', file=sys.stderr)CODE
LOWscripts/stubsabot.py627 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.py193CODE
LOWscripts/stubsabot.py543CODE
LOWscripts/stubsabot.py937CODE
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.py767async 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.py310 """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