PyPI / google-genai / 2.32.0
google-genai 2.32.0
- Source
- https://github.com/googleapis/python-genai
- Tag scanned
v2.32.0- Compared with
v2.31.0(0 signals introduced since)- Files
- 604 scanned, 22 skipped (binary, oversized, or unrecognised)
- Signals
- 0 critical · 0 warn · 16 info
- Scan time
- 11.6 s
- LLM review
- Reviewed by claude-haiku-5-5 (Anthropic): 13 of 13 warn and critical signals; 13 demoted to info.
- Disclude version
- 4.1.0
- Scanned (UTC)
- 2026-10-22 06:45
Signals
Ordered by severity, then signals introduced in this release. Hidden characters are shown as ⟨U+…⟩.
-
= = returndismissed Lazy submodule loader in the package __init__ that imports a named submodule and caches it in globals().Reasoning
This is the standard PEP 562 module __getattr__ pattern: it lazily imports a submodule by name, caches it in globals(), and raises AttributeError otherwise. It is a normal lazy-loading idiom with no execution of untrusted data.
-
"""Prints the current file path and line number.""" =dismissed Uses frame introspection to print the current file path and line number in a replay client helper.Reasoning
inspect.currentframe() is used to read the current file and line number for a debug or replay print. This is benign diagnostic code and does not hide behavior.
-
= . + 1dismissed Test helper reads the caller's line number via inspect.currentframe() to check warnings.Reasoning
In a test helper, the current frame's line number is used to locate the call site for warning assertions. This is ordinary test scaffolding.
-
== b ) assert ==dismissed Test assertion containing a UTF-8 byte literal of mixed Unicode text for token decoding checks.Reasoning
The hex escapes encode a UTF-8 test string with CJK characters and emoji, compared against decoded token bytes. The high entropy reflects multibyte Unicode test data, not a hidden payload.
-
=likely benign Test module constant holding a binary byte sequence used as a transformer input.Reasoning
This is a fixed binary test fixture in a test module for bytes transformers. It is data only, with no decoding, execution, or network use in the snippet, and sample binary blobs are expected in such tests.
-
info
warn→ info by reviewpayload-bytes-literalgoogle/genai/tests/types/test_bytes_internal.py:36:5=likely benign Test constant containing raw binary bytes for internal bytes-type tests.Reasoning
The same fixed binary test fixture appears here, a plain bytes constant in a unit test with no runtime action. It is consistent with byte-handling tests.
-
=likely benign Test constant with a binary byte sequence for bytes-type behavior tests.Reasoning
This is an identical binary test constant in a bytes-type test. It is static test data with no evident decoding or execution path.
-
= None return None =dismissed Lazy optional import of ClientSession via globals() in a module __getattr__, falling back to None.Reasoning
This is a module-level __getattr__ that lazily imports an optional MCP ClientSession, caching None on ImportError. It is a standard optional-dependency pattern.
-
return None = returndismissed Caches and returns the lazily imported ClientSession class.Reasoning
Caches the lazily imported ClientSession in module globals and returns it, which is the same benign lazy-loading idiom.
-
= None return None =dismissed Lazy optional import of CallToolResult via globals() with ImportError fallback.Reasoning
Lazy optional import of CallToolResult from the MCP types with a None fallback on ImportError. This is a normal optional-dependency pattern.
-
return None = returndismissed Caches and returns the lazily imported CallToolResult class.Reasoning
Caches and returns the lazily imported CallToolResult, consistent with the module's lazy-loading design.
-
= None return None =dismissed Lazy optional import of the mcp_types module via globals() with ImportError fallback.Reasoning
Lazy optional import of the mcp_types module with None fallback on ImportError. This is benign optional-dependency handling.
-
return None = returndismissed Caches and returns the lazily imported mcp_types module, else raises AttributeError.Reasoning
Caches and returns the lazily imported mcp_types module, ending in an AttributeError for unknown names. This is standard lazy loading.
-
= """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.
&&