AI Slop Code RIsk Monitor

python/typeshed

Collection of library stubs for Python, with static types

59.4 High pattern signal View on GitHub

Maintenance and Governance Review

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.

59.4
Adjusted Signal
59.4
Raw Pattern Score
100%
Time Factor
2026-10-10
Last Push
5.1K
Stars
Python
Language
15.2K
Lines of Code
159
Files
383
Pattern Hits
2026-10-12
Scan Date
0.03
HC Hit Rate

Risk Review · v3

Use each vector to guide manual verification of the underlying findings.

Cognitive Ownership Risk 29.4/100 · MEDIUM

Can maintainers explain intent, assumptions, and trade-offs? 95 finding(s).

Hallucinated Dependency & Supply Chain Risk 23.3/100 · LOW

Are imports declared and package/API names verified? 81 finding(s).

Agent Over-Engineering Ratio 92.4/100 · CRITICAL

Are wrappers, guards, and repeated structures necessary? 272 finding(s).

PR Review Velocity Impact 93.1/100 · CRITICAL

Which changes need focused human review? 383 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

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.

Severity Breakdown

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.

CRITICAL 0HIGH 5MEDIUM 204LOW 174

Directory Score Breakdown

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.

Pattern Findings

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.

Decorative Section Separators195 hits · 682 pts
SeverityFileLineSnippetContext
MEDIUMlib/ts_utils/utils.py87# ====================================================================COMMENT
MEDIUMlib/ts_utils/utils.py89# ====================================================================COMMENT
MEDIUM⚡lib/ts_utils/utils.py118# ====================================================================COMMENT
MEDIUM⚡lib/ts_utils/utils.py120# ====================================================================COMMENT
MEDIUM⚡lib/ts_utils/utils.py130# ====================================================================COMMENT
MEDIUM⚡lib/ts_utils/utils.py132# ====================================================================COMMENT
MEDIUMlib/ts_utils/utils.py149# ====================================================================COMMENT
MEDIUMlib/ts_utils/utils.py151# ====================================================================COMMENT
MEDIUMlib/ts_utils/utils.py200# ====================================================================COMMENT
MEDIUMlib/ts_utils/utils.py202# ====================================================================COMMENT
MEDIUMlib/ts_utils/utils.py277# ====================================================================COMMENT
MEDIUMlib/ts_utils/utils.py279# ====================================================================COMMENT
MEDIUM⚡lib/ts_utils/utils.py295# ====================================================================COMMENT
MEDIUM⚡lib/ts_utils/utils.py297# ====================================================================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
MEDIUM⚡stdlib/@tests/stubtest_allowlists/common.txt1# ============================================COMMENT
MEDIUM⚡stdlib/@tests/stubtest_allowlists/common.txt3# ============================================COMMENT
MEDIUM⚡stdlib/@tests/stubtest_allowlists/common.txt12# ===============================================================COMMENT
MEDIUM⚡stdlib/@tests/stubtest_allowlists/common.txt14# ===============================================================COMMENT
MEDIUM⚡stdlib/@tests/stubtest_allowlists/common.txt20# ======================================================================COMMENT
MEDIUM⚡stdlib/@tests/stubtest_allowlists/common.txt22# ======================================================================COMMENT
MEDIUM⚡stdlib/@tests/stubtest_allowlists/common.txt27# =============================================================================COMMENT
MEDIUM⚡stdlib/@tests/stubtest_allowlists/common.txt29# =============================================================================COMMENT
MEDIUMstdlib/@tests/stubtest_allowlists/common.txt127# =====================================COMMENT
MEDIUMstdlib/@tests/stubtest_allowlists/common.txt129# =====================================COMMENT
MEDIUMstdlib/@tests/stubtest_allowlists/common.txt153# ==========================================================COMMENT
MEDIUMstdlib/@tests/stubtest_allowlists/common.txt155# ==========================================================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
MEDIUM⚡stdlib/@tests/stubtest_allowlists/darwin.txt1# ============================================COMMENT
MEDIUM⚡stdlib/@tests/stubtest_allowlists/darwin.txt3# ============================================COMMENT
MEDIUM⚡stdlib/@tests/stubtest_allowlists/darwin.txt13# ==========================================COMMENT
MEDIUM⚡stdlib/@tests/stubtest_allowlists/darwin.txt15# ==========================================COMMENT
MEDIUMstdlib/@tests/stubtest_allowlists/darwin.txt28# ==========================================================COMMENT
MEDIUMstdlib/@tests/stubtest_allowlists/darwin.txt30# ==========================================================COMMENT
MEDIUM⚡stdlib/@tests/stubtest_allowlists/darwin-py312.txt36# ============COMMENT
MEDIUM⚡stdlib/@tests/stubtest_allowlists/darwin-py312.txt38# ============COMMENT
MEDIUM⚡stdlib/@tests/stubtest_allowlists/darwin-py312.txt46# =============================================================COMMENT
MEDIUM⚡stdlib/@tests/stubtest_allowlists/darwin-py312.txt48# =============================================================COMMENT
MEDIUM⚡stdlib/@tests/stubtest_allowlists/darwin-py312.txt57# ================COMMENT
MEDIUM⚡stdlib/@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
MEDIUM⚡stdlib/@tests/stubtest_allowlists/darwin-py311.txt49# ============COMMENT
MEDIUM⚡stdlib/@tests/stubtest_allowlists/darwin-py311.txt51# ============COMMENT
MEDIUM⚡stdlib/@tests/stubtest_allowlists/darwin-py311.txt59# =============================================================COMMENT
MEDIUM⚡stdlib/@tests/stubtest_allowlists/darwin-py311.txt61# =============================================================COMMENT
135 more matches not shown…
Unused Imports81 hits · 81 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.py324def concurrently_run_testcases(CODE
LOWtests/stubtest_third_party.py203def setup_gdb_stubtest_command(venv_dir: Path, stubtest_cmd: list[str], formatter: StatusLineFormatter) -> bool:CODE
LOWtests/stubtest_third_party.py297def setup_uwsgi_stubtest_command(dist: Path, venv_dir: Path, stubtest_cmd: list[str], formatter: StatusLineFormatter) ->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
LOW⚡scripts/stubsabot.py505 def describe_public_files_added(self) -> str:CODE
LOW⚡scripts/stubsabot.py511 def describe_typeshed_files_deleted(self) -> str:CODE
LOW⚡scripts/stubsabot.py517 def describe_typeshed_files_modified(self) -> str:CODE
LOWscripts/stubsabot.py125 def releases_in_descending_order(self) -> Iterator[PypiReleaseDownload]:CODE
LOWscripts/stubsabot.py233def all_py_files_in_source_are_in_py_typed_dirs(source: zipfile.ZipFile | tarfile.TarFile) -> bool:CODE
LOWscripts/stubsabot.py281async def release_contains_py_typed(release_to_download: PypiReleaseDownload, *, session: aiohttp.ClientSession) -> boolCODE
LOWscripts/stubsabot.py285async def find_first_release_with_py_typed(pypi_info: PypiInfo, *, session: aiohttp.ClientSession) -> PypiReleaseDownloaCODE
LOWscripts/stubsabot.py457 def runtime_definitely_has_consistent_directory_structure_with_typeshed(self) -> bool:CODE
LOWscripts/stubsabot.py598def obsolete_more_than_n_months(since_date: datetime.date) -> bool:CODE
LOWscripts/stubsabot.py604def parse_no_longer_updated_from_archive(source: zipfile.ZipFile | tarfile.TarFile) -> bool:CODE
LOWscripts/stubsabot.py627async def has_no_longer_updated_release(release_to_download: PypiReleaseDownload, *, session: aiohttp.ClientSession) -> CODE
LOWscripts/stubsabot.py642async def determine_action_no_error_handling(CODE
LOWscripts/stubsabot.py734async def create_or_update_pull_request(*, title: str, body: str, branch_name: str, session: aiohttp.ClientSession) -> NCODE
LOWscripts/stubsabot.py773async def update_existing_pull_request(*, title: str, body: str, branch_name: str, session: aiohttp.ClientSession) -> inCODE
LOWscripts/stubsabot.py784async def update_pull_request_label(*, pr_number: int, session: aiohttp.ClientSession) -> None:CODE
LOWscripts/stubsabot.py798def has_non_stubsabot_commits(branch: str) -> bool:CODE
LOWscripts/stubsabot.py812def latest_commit_is_different_to_last_commit_on_origin(branch: str) -> bool:CODE
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.py164 def supported_versions_for_module(self, module_name: str) -> tuple[VersionTuple, VersionTuple]:CODE
LOWlib/ts_utils/utils.py177def parse_stdlib_versions_file() -> SupportedVersions:CODE
LOWlib/ts_utils/utils.py225def get_all_testcase_directories() -> list[DistributionTests]:CODE
LOW⚡lib/ts_utils/utils.py300def 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
LOWstdlib/@tests/test_cases/typing/check_MutableMapping.py7def check_update_method__int_key() -> None:CODE
4 more matches not shown…
Over-Commented Block16 hits · 15 pts
SeverityFileLineSnippetContext
LOWpyproject.toml181 ###COMMENT
LOWpyproject.toml221 "ANN2", # Missing return type annotation for ...COMMENT
LOWtests/regr_test.py121def setup_testcase_dir(package: DistributionTests, tempdir: Path, verbosity: Verbosity) -> None: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_types.py81 # pyright and mypy infer different types hereCOMMENT
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
Empty Error Handlers2 hits · 10 pts
SeverityFileLineSnippetContext
HIGHtests/stubtest_third_party.py410except KeyboardInterrupt:CODE
HIGH…@tests/test_cases/itertools/check_itertools_recipes.py176except exception:CODE
Slop Phrases3 hits · 9 pts
SeverityFileLineSnippetContext
MEDIUM⚡stdlib/@tests/test_cases/check_importlib.py30 return None # simplified mock for demonstration purposes onlyCODE
MEDIUM⚡stdlib/@tests/test_cases/check_importlib.py36 return cls # simplified mock for demonstration purposes onlyCODE
MEDIUM⚡stdlib/@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.py242 except Exception:CODE
MEDIUMscripts/create_baseline_stubs.py225 print(f'Error: "{project}" is not installed', file=sys.stderr)CODE
LOWscripts/stubsabot.py638 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 Nesting7 hits · 6 pts
SeverityFileLineSnippetContext
LOWtests/check_typeshed_structure.py147CODE
LOWtests/regr_test.py171CODE
LOWtests/regr_test.py324CODE
LOWtests/stubtest_third_party.py24CODE
LOWscripts/stubsabot.py204CODE
LOWscripts/stubsabot.py554CODE
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.py784async 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.py298 """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