PyPI / google-genai / 2.31.0
google-genai 2.31.0
- Source
- https://github.com/googleapis/python-genai
- Tag scanned
v2.31.0- Compared with
v2.30.1(0 signals introduced since)- Files
- 612 scanned, 42 skipped (binary, oversized, or unrecognised)
- Signals
- 0 critical · 0 warn · 21 info
- Scan time
- 12.1 s
- LLM review
- Reviewed by claude-haiku-5-5 (Anthropic): 16 of 16 warn and critical signals; 16 demoted to info.
- Disclude version
- 4.0.0
- Scanned (UTC)
- 2026-10-15 16:41
Signals
Ordered by severity, then signals introduced in this release. Hidden characters are shown as ⟨U+…⟩.
-
const stopwords = -
likely benign Minified Snowball stemmer language data in docs static files.
Reasoning
Long line in a minified Snowball stemmer data file under docs static assets; minification produces long lines with no malicious content shown.
-
varlikely benign Minified English stemmer tables bundled with Sphinx docs.Reasoning
Minified stemmer algorithm tables, a standard Sphinx-bundled JS file; long line is typical of minification.
-
likely benign Minified Furo documentation theme script.
Reasoning
Minified Furo theme JavaScript for Sphinx docs; navigation and event code, no suspicious behavior shown.
-
= = returnlikely benign Lazy submodule import via module-level __getattr__ caching into globals.Reasoning
Standard lazy-loading module __getattr__ pattern using importlib with a module-local name; common and legitimate in the google-genai SDK.
-
"""Prints the current file path and line number.""" =likely benign Helper printing the caller's file path and line number via inspect.currentframe.Reasoning
Frame introspection used to print the current file and line in a replay client helper; a debugging/logging utility, not malicious.
-
= . + 1likely benign Test code using currentframe to record the call line for warning assertions.Reasoning
Test helper capturing the call line to assert warning locations; ordinary test utility.
-
== b ) assert ==likely benign UTF-8 byte literal used as expected output in a tokenizer unicode test.Reasoning
Hex escapes encode UTF-8 test strings (Chinese text, emoji) for a tokenizer unicode round-trip test; expected test data.
-
=likely benign Random binary test fixture bytes for transformer tests.Reasoning
Binary bytes fixture for testing bytes transformers in the SDK tests; the payload is test data and is not executed or decoded into anything dangerous.
-
info
warn→ info by reviewpayload-bytes-literalgoogle/genai/tests/types/test_bytes_internal.py:36:5=likely benign Binary test fixture for internal bytes type tests.Reasoning
Same binary test fixture as in other test files, used to exercise bytes handling; no execution path.
-
=likely benign Binary test fixture for bytes type tests.Reasoning
Binary test fixture for bytes type tests; benign test data with no execution.
-
= None return None =likely benign Lazy optional import of MCP ClientSession cached into module globals.Reasoning
Lazy optional-import pattern for MCP types that caches None or the imported class into globals; standard optional dependency handling.
-
return None = returnlikely benign Lazy optional import of ClientSession via globals assignment.Reasoning
Same lazy optional-dependency pattern returning ClientSession; no dynamic code execution or obfuscation.
-
= None return None =likely benign Lazy optional import of CallToolResult cached into globals.Reasoning
Lazy optional-import of MCP CallToolResult with globals caching; standard pattern.
-
return None = returnlikely benign Lazy import of CallToolResult via module globals.Reasoning
Same lazy import pattern for CallToolResult; benign module attribute resolution.
-
= None return None =likely benign Caches an optional mcp_types module (or None on ImportError) into module globals inside a lazy __getattr__ helper.Reasoning
The snippet is a lazy-import pattern inside a module-level __getattr__: when the optional mcp import fails, the name is cached as None in globals(), and on success the imported module is cached the same way. The raw attribute name is only used as a cache key, and the fallback raises AttributeError as normal. This is a common idiom for deferred optional dependencies, not obfuscation or a hidden execution path.
-
return None = returnlikely benign Returns and caches the lazily imported mcp_types module, otherwise raising AttributeError for unknown attributes.Reasoning
This is the same lazy-import function as the previous finding. It caches the successfully imported mcp_types module in globals() and returns it, then raises AttributeError for unknown names. The dynamic globals write is limited to a known optional module and does not execute attacker-controlled input.
-
= """Equivalent to [GoogleSQL](https://cloud.google.com/bigquery/docs/reference/standard-sql/string_functions#regexp_contains) `REGEX_CONTAINS(target, expression)`.""" = -
=None, =, ) -
: """Required. BigQuery URI to a table, up to 2000 characters long. Accepted forms: * BigQuery path. For example: `bq://projectId.bqDatasetId.bqTableId`."""
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.
&&