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
- 9.2 s
- LLM review
- Reviewed by claude-haiku-5-5 (Anthropic): 13 of 13 warn and critical signals; 13 demoted to info.
- Disclude version
- 4.0.0
- Scanned (UTC)
- 2026-10-21 09:40
Signals
Ordered by severity, then signals introduced in this release. Hidden characters are shown as ⟨U+…⟩.
-
= = returnlikely benign Module-level __getattr__ that lazily imports submodules and caches them in globals().Reasoning
Lazy-loading module __getattr__ pattern using importlib.import_module and globals() caching is a standard idiom for deferred imports in a large package; no malicious payload or obfuscation.
-
"""Prints the current file path and line number.""" =likely benign Debug helper that reads the current frame to report file path and line number.Reasoning
inspect.currentframe is used to print the current file and line number for debugging/replay logging; ordinary introspection with no suspicious behavior.
-
= . + 1likely benign Test code reading the caller's line number to validate warning emission location.Reasoning
Test helper uses currentframe().f_lineno to compute the call line for asserting warning locations; a normal testing technique.
-
== b ) assert ==likely benign Test assertion comparing decoded tokens against a UTF-8 byte literal containing unicode text.Reasoning
The hex escapes encode a UTF-8 test string (Chinese characters, emoji) used to verify token decoding; expected in unicode test fixtures, with no execution or hidden payload.
-
=likely benign Test fixture of raw binary bytes used to exercise bytes transformers.Reasoning
Byte literal is test fixture data for bytes transformation tests; it is a random-looking binary sample used as input, with no decoding into execution. The payload shape is expected for such tests.
-
info
warn→ info by reviewpayload-bytes-literalgoogle/genai/tests/types/test_bytes_internal.py:36:5=likely benign Test fixture of raw binary bytes for internal bytes type tests.Reasoning
Same binary byte fixture duplicated across test files for testing bytes handling; no execution or decoding pipeline present.
-
=likely benign Test fixture of raw binary bytes for bytes type tests.Reasoning
Duplicate binary byte fixture in a type test; benign test data consistent with the other bytes tests.
-
= None return None =likely benign Lazy loader for optional ClientSession import, caching None on ImportError.Reasoning
Lazy optional-import pattern for the MCP dependency: on ImportError it caches None in globals. Standard, benign handling of optional dependencies.
-
return None = returnlikely benign Caches the lazily imported ClientSession symbol into module globals.Reasoning
Same lazy optional-import idiom caching the ClientSession class in globals; no malicious behavior.
-
= None return None =likely benign Lazy loader for optional CallToolResult import with None fallback.Reasoning
Lazy optional-import for CallToolResult with None fallback; standard dependency-guard pattern.
-
return None = returnlikely benign Caches lazily imported CallToolResult symbol in module globals.Reasoning
Caches the lazily imported CallToolResult into globals; benign optional-dependency handling.
-
= None return None =likely benign Lazy loader for optional mcp_types module with None fallback.Reasoning
Lazy optional import of mcp_types with None fallback on ImportError; standard pattern.
-
return None = returnlikely benign Caches lazily imported mcp_types module in module globals.Reasoning
Caches the lazily imported mcp_types module in globals and returns it; benign and consistent with the surrounding lazy-import code.
-
= """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.
&&