PyPI / typing-extensions / 4.16.0
typing-extensions 4.16.0
- Source
- https://github.com/python/typing_extensions
- Artifact scanned
typing_extensions-4.16.0-py3-none-any.whl- Compared with
typing_extensions-4.15.0-py3-none-any.whl(1 signals introduced since)- Files
- 1 scanned, 4 skipped (binary, oversized, or unrecognised)
- Signals
- 0 critical · 0 warn · 4 info
- Scan time
- 4.0 s
- LLM review
- Reviewed by claude-haiku-5-5 (Anthropic): 4 of 4 warn and critical signals; 4 demoted to info.
- Disclude version
- 4.3.0
- Scanned (UTC)
- 2026-10-22 23:03
Signals
Ordered by severity, then signals introduced in this release. Hidden characters are shown as ⟨U+…⟩.
-
return # For platforms without _getframe() passlikely benign Caller-module lookup via sys._getframe in the typing_extensions library, guarded for platforms without it.Reasoning
sys._getframe usage in typing_extensions' sys_getframe-based helper to determine module name (caller's __name__) is a standard, documented pattern in the typing_extensions library. The try/except for AttributeError/ValueError is explicitly for platforms lacking _getframe. The 'anti-analysis' co-occurrence heuristic is weak here; this is a well-known legitimate library file.
-
= # - Catch AttributeError: not all Python implementations have sys._getframe() # - Catch ValueError: maybe we're called from an unexpected modulelikely benign Caller frame retrieval with explicit fallback handling in typing_extensions.Reasoning
Snippet shows sys._getframe(2) wrapped in try/except with comments explaining platform and unexpected-module fallbacks. This is the standard caller-frame lookup in typing_extensions (e.g. for NamedTuple/TypedDict module detection), not anti-analysis behavior.
-
= returnlikely benign eval of string annotations when resolving type hints in typing_extensions.Reasoning
eval is applied to string annotation values inside get_type_hints-style evaluation of forward references, which is the documented behavior of typing annotation resolution. Input is developer-supplied annotations, not network or attacker data. Legitimate in this library context, though eval is inherently a dynamic-execution sink.
-
= = = True =likely benign Evaluation of ForwardRef code objects to resolve type annotations in typing_extensions.Reasoning
eval of a compiled forward-reference code object during ForwardRef evaluation, mirroring the standard typing module. The code originates from annotation strings in source, consistent with legitimate typing behavior.
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.
|