PyPI / proto-plus / 1.29.0

proto-plus 1.29.0

Source
https://github.com/googleapis/google-cloud-python
Tag scanned
proto-plus-v1.29.0
Directory
packages/proto-plus (only this part of the repository was scanned)
Compared with
proto-plus-v1.28.4 (0 signals introduced since)
Files
88 scanned, 5 skipped (binary, oversized, or unrecognised)
Signals
0 critical · 0 warn · 1 info
Scan time
2.3 s
LLM review
Reviewed by claude-haiku-5-5 (Anthropic): 1 of 1 warn and critical signal; 1 demoted to info.
Disclude version
4.0.0
Scanned (UTC)
2026-10-14 18:28

Signals

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

  1. info warn → info by review frame-introspection packages/proto-plus/tests/test_modules.py:98:13

    `inspect.currentframe` — call-stack frame introspection (ast pass, confidence 0.70)

        # getattr, this is reasonably easy to shim over.
        frame = inspect.currentframe()
        with mock.patch.object(inspect, "getmodule") as getmodule:
            getmodule.side_effect = lambda *a: View(frame.f_locals)
    likely benign LLM, confidence 0.93 Test code captures the current stack frame to build a mock side effect for inspect.getmodule.
    Reasoning

    The snippet is inside a test file, using inspect.currentframe() to capture the caller's frame so a mock side_effect can expose its locals. This is a common testing idiom for mocking inspect.getmodule in test code; it does not execute anything, exfiltrate data, or hide behavior from a reader. The frame-introspection signal is accurate but the usage is legitimate.

Reproduce This Scan

Run disclude locally to verify. 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.0.0
git clone https://github.com/googleapis/google-cloud-python google-cloud-python && cd google-cloud-python
git checkout proto-plus-v1.29.0
disclude scan --severity info --diff proto-plus-v1.28.4 packages/proto-plus