PyPI / google-genai / 2.32.0
google-genai 2.32.0
- Source
- https://github.com/googleapis/python-genai
- Artifact scanned
google_genai-2.32.0-py3-none-any.whl- Compared with
google_genai-2.31.0-py3-none-any.whl(0 signals introduced since)- Files
- 594 scanned, 5 skipped (binary, oversized, or unrecognised)
- Signals
- 0 critical · 0 warn · 16 info
- Scan time
- 9.1 s
- LLM review
- Reviewed by claude-haiku-5-5 (Anthropic): 13 of 13 warn and critical signals; 13 demoted to info.
- Disclude version
- 4.3.0
- Scanned (UTC)
- 2026-10-23 09:39
Signals
Ordered by severity, then signals introduced in this release. Hidden characters are shown as ⟨U+…⟩.
-
= = returnlikely benign Lazy submodule loader via module-level __getattr__ in the google.genai package.Reasoning
This is the standard PEP 562 module __getattr__ lazy-loading pattern: it imports a submodule by name relative to the package and caches it in globals. The name is constrained to the package's own submodules, so there is no attacker-controlled dynamic execution.
-
"""Prints the current file path and line number.""" =likely benign Debug helper that reads the current frame to report file and line number.Reasoning
inspect.currentframe is used to print the current file path and line number for debugging/replay output. This is ordinary logging-style introspection with no network, execution, or concealment.
-
= . + 1likely benign Test utility reading the frame's line number to validate warning call sites.Reasoning
Test helper uses the caller's frame line number to check warning locations in captured warnings. This is standard test tooling.
-
== b ) assert ==likely benign UTF-8 byte literal in a token-computation test that round-trips a unicode string.Reasoning
The byte literal is the UTF-8 encoding of a Chinese/English/emoji test string, as the following assertion decodes it back to _UNICODE_STRING. It is a deliberate multi-byte unicode test fixture, not obfuscated code.
-
=likely benign Binary test fixture of raw bytes for testing bytes transformers.Reasoning
The byte literal is a fixed test vector used to exercise bytes transformation, which is the purpose of a bytes-handling test. Binary-looking content in a test fixture is expected, and the file is a test module within the SDK.
-
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 vector as the other bytes tests, used to verify bytes type handling. No execution or decoding of hidden payloads occurs in the snippet.
-
=likely benign Binary test fixture for bytes type tests.Reasoning
Identical binary test vector used for bytes type tests in the SDK. It is test data with no payload-delivery behavior shown.
-
= None return None =likely benign Lazy optional import of MCP ClientSession via module globals caching.Reasoning
This is the lazy-import __getattr__ pattern: optional MCP symbols are imported on demand and cached in globals, setting None on ImportError. It is a standard optional-dependency idiom.
-
return None = returnlikely benign Caches lazily imported ClientSession in module globals.Reasoning
Caches the lazily imported ClientSession into module globals and returns it, part of the standard lazy optional-dependency pattern for MCP types.
-
= None return None =likely benign Lazy optional import of MCP CallToolResult via module globals.Reasoning
Same optional MCP import idiom: lazily imports CallToolResult and caches it in globals, with None fallback on ImportError.
-
return None = returnlikely benign Caches lazily imported CallToolResult in module globals.Reasoning
Caches the lazily loaded CallToolResult in module globals and returns it, consistent with the optional-dependency pattern.
-
= None return None =likely benign Lazy optional import of mcp_types cached in globals.Reasoning
Lazy import of the mcp_types module with None fallback, a standard optional-dependency idiom in this SDK.
-
return None = returnlikely benign Caches lazily imported mcp_types module and falls through to AttributeError.Reasoning
Caches and returns the lazily imported mcp_types module, then raises AttributeError for unknown names. Standard module __getattr__ behavior with no malicious indicators.
-
= """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. 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.
|