polars 2.1.0
- Source
- https://github.com/pola-rs/polars
- Artifact scanned
polars-2.1.0-py3-none-any.whl- Compared with
polars-2.0.0-py3-none-any.whl(0 signals introduced since)- Files
- 221 scanned, 5 skipped (binary, oversized, or unrecognised)
- Signals
- 0 critical · 1 warn · 5 info
- Scan time
- 10.2 s
- LLM review
- Reviewed by claude-haiku-5-5 (Anthropic): 6 of 6 warn and critical signals; 5 demoted to info.
- Disclude version
- 4.3.0
- Scanned (UTC)
- 2026-10-27 18:12
Signals
Ordered by severity, then signals introduced in this release. Hidden characters are shown as ⟨U+…⟩.
-
=likely benign Evaluates a predicate string with a restricted namespace to build a pyarrow filter expression.Reasoning
eval is applied to a pyarrow predicate string with a restricted globals dictionary. Evaluating predicate strings is a known risk, but here it appears to translate a filter expression from the Delta table into a pyarrow expression, which is the expected behaviour. The snippet is truncated and does not show the source of the string.
-
= =likely benign Reads the caller's stack frame via inspect.currentframe and f_back.Reasoning
inspect.currentframe followed by f_back is a standard way to look up the calling frame. The snippet shows no decoding, process spawning, or network access, so this is ordinary library introspection.
-
= return Nonelikely benign Runs a configured shell command template with a temporary file substituted in, likely to open the file in a viewer.Reasoning
subprocess.run with shell=True runs a command built from a template where %file% is replaced by a temp file name. This looks like a user-configured viewer or open command, which is a legitimate pattern. Shell=True with a non-literal string is still risky, and the snippet does not show where cmd comes from, so this is not fully settled.
-
# https://stackoverflow.com/questions/17407119/python-inspect-stack-is-slow = = 0likely benign Walks the call stack with currentframe to find the warning stack level.Reasoning
The comment links to a Stack Overflow discussion on inspect.stack being slow, and the code walks frames with a counter. This is the usual approach for choosing the stacklevel of a warning. No malicious behaviour is visible.
-
=likely benign Iterates up the call stack via f_back to inspect calling frames.Reasoning
A loop over frame.f_back until None is a caller-walking pattern, here used to inspect the calling context. Nothing in the snippet is dynamic execution or exfiltration.
-
"""Check the module version against a minimum required version.""" = : | None = Nonelikely benign Dynamically imports a database driver module by name to check its version.Reasoning
__import__ is used to load a driver module for a version check, wrapped in suppress(AttributeError). The module_name is presumably drawn from a fixed set of known database driver names, which is a common pattern for optional dependencies. The snippet does not show the source of module_name, so this is not fully certain.
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.
|