PyPI / typing-inspection / 0.4.4

typing-inspection 0.4.4

Source
https://github.com/pydantic/typing-inspection
Artifact scanned
typing_inspection-0.4.4-py3-none-any.whl (wheel · 14.4 KB · SHA-256 65b8397ba37c…)
Compared with
typing_inspection-0.4.3-py3-none-any.whl (0 signals introduced since)
Files
4 scanned, 5 skipped (binary, oversized, or unrecognised)
Signals
0 critical · 0 warn · 2 info
Scan time
4.8 s
LLM review
Reviewed by claude-haiku-5-5 (Anthropic): 2 of 2 warn and critical signals; 2 demoted to info.
Disclude version
4.3.0
Scanned (UTC)
2026-10-23 00:21

Signals

Ordered by severity, then signals introduced in this release. Hidden characters are shown as ⟨U+…⟩.

  1. info warn → info by review dynamic-execution typing_inspection/typing_objects.py:112:5

    `exec` called on a non-literal expression (ast pass, confidence 0.70)

        locals_: dict[str, Any] = {}
        exec(func_code, globals_, locals_)
        return locals_[function_name]
    likely benign LLM, confidence 0.85 A typing-inspection helper calls exec on a generated function-source string and returns the resulting function from a locals dict.
    Reasoning

    The snippet shows exec running a function body built from a string (func_code) into a locals dict, then returning a named entry. This matches the code-generation pattern a typing-helper library uses to create functions with fixed signatures. The file is a known typing utility package, and nothing in the snippet shows network access, decoding of an encoded payload, or process spawning. The exec is non-literal, so it warrants a look, but the context points to a benign template-generation pattern.

  2. info warn → info by review dynamic-execution typing_inspection/typing_objects.py:153:5

    `exec` called on a non-literal expression (ast pass, confidence 0.70)

        locals_: dict[str, Any] = {}
        exec(func_code, globals_, locals_)
        return locals_[function_name]
    likely benign LLM, confidence 0.85 A second exec call in the same typing-inspection helper builds a function from source text and returns it, following the same generation pattern.
    Reasoning

    This is the same exec-and-return pattern as the other finding in the same file, at a different location. It has the same benign reading: a library generating a function from a constructed source template, with no shown evidence of malicious payload handling.

Reproduce This Scan

Run disclude locally to verify. These commands scan the published file; the "new in this release" marks come from comparing it with the previous release's file, which they don't repeat. Add --format sarif for SARIF output. Add --llm (with an API key in the environment) to include the LLM review.

cargo install disclude --version 4.3.0
curl -fsSL -o typing_inspection-0.4.4-py3-none-any.whl https://files.pythonhosted.org/packages/67/81/4add07e5172b7ac40d8ed5ff580409a7801a4fe26d529bdd915401dabfbe/typing_inspection-0.4.4-py3-none-any.whl
printf '%s  %s\n' 65b8397ba37ccbce054456aaccddfc91e6e3083c92824df348d96ca832f3f147 typing_inspection-0.4.4-py3-none-any.whl | shasum -a 256 -c -
unzip -q typing_inspection-0.4.4-py3-none-any.whl -d pkg
disclude scan --untrusted --severity info pkg