rich 15.0.0
- Source
- https://github.com/Textualize/rich
- Artifact scanned
rich-15.0.0-py3-none-any.whl- Compared with
rich-14.3.4-py3-none-any.whl(0 signals introduced since)- Files
- 100 scanned, 5 skipped (binary, oversized, or unrecognised)
- Signals
- 0 critical · 0 warn · 3 info
- Scan time
- 5.3 s
- LLM review
- Reviewed by claude-haiku-5-5 (Anthropic): 3 of 3 warn and critical signals; 3 demoted to info.
- Disclude version
- 4.3.0
- Scanned (UTC)
- 2026-10-23 01:36
Signals
Ordered by severity, then signals introduced in this release. Hidden characters are shown as ⟨U+…⟩.
-
= =likely benign Rich's Console obtains the current stack frame via inspect.currentframe, a routine call for caller introspection.Reasoning
This is `inspect.currentframe()` with a fallback to `currentframe()`, a common pattern in rich's Console for finding the caller's frame, for example to report the calling module or line in logging and log_locals. Frame introspection alone is not malicious, and the snippet shows no exec, network or process activity.
-
assert is not None = None # type: ignore[attr-defined]likely benign Rich's pretty printer sets builtins._ around console output to mimic the interactive REPL's last-value convention.Reasoning
In rich's pretty printing, the `_` builtin is temporarily set to None and then to the last printed value. This mirrors the REPL's sys.displayhook convention so that `_` refers to the last result in interactive sessions. It is a documented, intentional behavior of the library, not a supply-chain implant, though it does touch a global builtin.
-
) = # type: ignore[attr-defined]likely benign Rich's pretty printer assigns the printed value to builtins._, matching REPL displayhook behavior.Reasoning
This is the second half of the same `builtins._` save-and-restore logic in rich's pretty printer, assigning the printed value back to `_` as the REPL displayhook does. It is consistent with the library's documented interactive-display behavior and contains no payload or unexpected execution.
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.
|