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- 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+…⟩.
-
: = returnlikely benign 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.
-
: = returnlikely benign 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.
|